Commit Graph

88 Commits

Author SHA1 Message Date
a.visegradi 59b4837ea7 Fix compile error.
call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments

Reason (man 2 open):

     [mode] argument must be supplied when O_CREAT is specified in flags.

Solution: Create file with rw-rw-r-- mode.

git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2596 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:10:03 +01:00
atisu 6c10ad3a94 - prepare for new release (...)
- add support for sticky files on clients



git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2530 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:10:02 +01:00
atisu fb918d73e0 - revert to r2524 and new release: 0.12-1 broke handling of remote files
when invoked from previously compiled binaries/ libraries.



git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2527 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:10:01 +01:00
atisu 2910b42687 - introduced persistent on clients option for
input files: DC_FILE_PERSISTENT_CLIENT 
   (not documented/ unofficial)
 - added static prefix for replace_regex() (it should not be exposed)



git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2525 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:10:01 +01:00
zfarkas d6c45c9496 Get rid of some warnings, update the docs (now complete).
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2463 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:10:00 +01:00
zfarkas 2cb497ec58 Remove DC_addWURemoteInput and DC_addWUInputAdvanced, merge into va_arg'ized
DC_addWUInput.


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2406 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:59 +01:00
zfarkas 1397ae1a2b Added support for "remote" files at least in BOINC.
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2385 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:59 +01:00
atisu d284b92e1f - Fix typo: DC_LogicalFile does not exist.
- Condor backend: add support for comma separated list of 
   input (%I) and output (%O) files in submit template.
   When there is no shared filesystem among the cluster nodes,
   Condor needs a list of files ('transfer_input_files' parameter)
   to copy them to the nodes.



git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2344 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:59 +01:00
smith 39e5415019 Adding new public function DC_addWUInputAdvanced to support the definition of physical file name and its hash.
Implemented only for boinc. Other backends drop error.



git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2321 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:58 +01:00
smith 0d28e98f9f DC_addWUInput function is modified to receive externally generated hash for the input file. This hash is received and stored under boinc in a file with the same name and extension ".md5".
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2315 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:58 +01:00
gombasg 8bf1e61da7 Remove references to Condor from the local backend
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2277 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:57 +01:00
gombasg 89e2644dfe Add the missing API functions to the local backend
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2246 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:57 +01:00
gombasg f2830d1ba3 Make internal symbols hidden
We now have to start to care about ABI compatibility now that shared
libraries are being used. So ensure that internal symbols are not
visible outside of the library.

git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2243 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:57 +01:00
gombasg 85e1529d55 Rename libraries from libdc-* to libdcapi-*
Lintian complained about the shared library packages having a different
name than the enclosed libraries. Since nobody has been using the shared
libraries yet, and all software depending on DC-API should get the name
of the libraries from pkg-config, this change is the less distruptive.

git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2241 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:57 +01:00
gombasg de84a39d4a Enable shared libraries for BOINC and local master
Condor does not have a shared library, and shared libraries on the
client side would be problematic ATM. Also add a debug package.

git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@2236 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:56 +01:00
gombasg 543fc55e60 _DC_copyFile() no longer preserves errno, adjust all callers
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1941 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:55 +01:00
gombasg c8a08ab33a More 'make distcheck' fixes
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1052 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:52 +01:00
gombasg 1a329951fc Include local_wu.h in the distribution
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1050 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:52 +01:00
gombasg eccfdfdaff Include the header, not the source file
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1038 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:52 +01:00
drotos 249dd1abdf master side of message passing
redesign of event handling


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1036 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:51 +01:00
gombasg b2b28af755 Move the definition of DC_PhysicalFile to dc_common.h so dc_internal.h can be
included on the client side too


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1033 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:51 +01:00
drotos 3759718634 implement slave side of message passing
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1030 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:51 +01:00
drotos ff1e7f0d43 move state_name utility to master
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1029 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:51 +01:00
drotos 4b110b9fd2 do not remove slave's workdir when LeaveFiles config option is
specified (for debugging purposes)


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1028 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:51 +01:00
drotos 5dc0495ab2 handle checkpoint file correctly by DC_resolveFileName
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1027 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:51 +01:00
drotos b6be464d63 remove client_path from wu structure
use Executable config param as name of the executable
fix getWUState to return the real state


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1026 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:51 +01:00
drotos f3e316ef5e message sending
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1024 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:50 +01:00
drotos 924b9bac7f noise
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1023 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:50 +01:00
drotos 38135b7d7c handling of configuration parameters
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1022 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:50 +01:00
drotos c890457fdc call common initialization
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1021 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:50 +01:00
drotos 723a2c900e compile new files
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1020 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:50 +01:00
drotos 6a2d024c25 initial checkin
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1019 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:50 +01:00
drotos b55413dd23 (c), svn info, formatting style
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1018 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:50 +01:00
drotos 87b4bd6c43 missing API functions
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1017 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:50 +01:00
drotos 745715b2ce macros used by utilities
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1016 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:50 +01:00
drotos 6109ae8ba4 do not install localy used header files
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1015 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:50 +01:00
drotos 103c7c549b some utils
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1014 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:50 +01:00
drotos 16ed6e17e8 include svn info
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1013 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:50 +01:00
drotos 608570dffd (c) and svn info, formatting style for emacs
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1012 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:50 +01:00
drotos 1919989ed2 rename header files
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1011 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:49 +01:00
drotos e7651eede5 fix sign of header
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1010 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:49 +01:00
drotos a839efce51 use better file names
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@1009 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:49 +01:00
gombasg e0f18d7cbc Small fixes to make 'make distcheck' work
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@816 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:40 +01:00
balaton 858ecf349f Update local implementation of resolvFileName to match API docs
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@728 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:36 +01:00
gombasg ca2ab1d0be New helper functions: DC_getCfgBool(), DC_getClientCfgBool()
Move _DC_createPhysicalFile() and _DC_destroyPhysicalFile() to common/util.c


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@679 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:33 +01:00
gombasg 72c085d77b Add the location of the header files to the pkg-config files
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@586 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:28 +01:00
gombasg 04bab74d60 Removed testcase, it is available as apps/uppercase-demo now
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@575 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:28 +01:00
gombasg ab2761ab91 Rename symbols so there are no conflicts between the client and the master
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@574 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:28 +01:00
gombasg 21a94ef352 Move the definitions of common configuration keys to dc_internal.h
git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@570 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:27 +01:00
gombasg de652249dc Move the definiton of logical names for stdout/stderr/client log to dc_common.h
and rename them to DC_LABEL_*


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@569 a7169a2c-3604-0410-bc95-c702d8d87f7a
2013-12-02 11:09:27 +01:00