Commit Graph

18 Commits

Author SHA1 Message Date
David Anderson 13a5b9bf3e change multiple-inclusion guard names to BOINC_FILENAME_H 2017-04-07 23:54:49 -07:00
David Anderson c75d81f4c4 client: prioritize network (including GUI RPC) over async file ops
This is an effort to make the Manager responsive even when
lots of VM jobs are starting up.
2016-08-27 00:44:10 -07:00
Rom Walton 59b5bf2f71 client: Cleanup low hanging fruit with regards to cleaning up strcpy and strcat use.
Use safe_strcpy and safe_strcat when dealing with non-pointer data types.
2016-02-15 23:34:18 -05:00
Christian Beer 676b650570 initialize fields in constructors
fixes defect found by cppcheck
2015-10-20 14:17:52 +02:00
Christian Beer 96ae6e5c98 initialize fields in constructors
fixes CID 28030 found by Coverity Scan
2015-10-19 18:46:14 +02:00
David Anderson 6b5285ba04 client: more MAXPATHLEN fixes 2013-08-22 17:06:09 -07:00
David Anderson 24e8133e4b - tabs -> spaces 2013-04-02 17:23:37 -07:00
David Anderson 32a08d27d9 - C++ code: use MAXPATHLEN for char arrays that hold paths
svn path=/trunk/boinc/; revision=25659
2012-05-09 16:11:50 +00:00
David Anderson e7e52a57ad - client: set file ownership and permissions after an async verify.
This was presumably the cause of the recent Einstein@home problem.
- client: set file ownership and permissions after an async copy.
- client: set file ownership and permissions after a
    regular (non-async) copy.

    The latter 2 bugs would affect a VM app that copies
    its executable to slot/x/shared


svn path=/trunk/boinc/; revision=25468
2012-03-21 18:36:00 +00:00
David Anderson d2cf999563 - client: on startup, check file size as well as existence
- client: add <async_file_debug> log flag
- client: do decompress (both sync and async) to a temp file,
    then rename
- client: if a file's status is VERIFY_PENDING on startup,
    set it to NOT_PRESENT; that will trigger a verify
- client: do async copy only if size is above threshold


svn path=/trunk/boinc/; revision=25222
2012-02-09 00:47:04 +00:00
David Anderson 541f6dd1f3 - client: bug fix for async file ops:
set up files in slot dir when starting an app,
		whether or not it's the first time

svn path=/trunk/boinc/; revision=25221
2012-02-08 21:14:34 +00:00
David Anderson 3a4e85bff3 - client: async file stuff
- set threshold at 10 MB for doing things asynchronously
		- don't count VERIFY_PENDING as failure

svn path=/trunk/boinc/; revision=25215
2012-02-08 00:45:37 +00:00
David Anderson b5a1175d95 - client: async file stuff.
async decompress/verify seems to be working

svn path=/trunk/boinc/; revision=25211
2012-02-07 00:35:55 +00:00
David Anderson ea2e64cef5 - client: async file stuff
svn path=/trunk/boinc/; revision=25209
2012-02-06 22:57:36 +00:00
David Anderson 223be7e62d - async verify
svn path=/trunk/boinc/; revision=25207
2012-02-06 20:41:26 +00:00
David Anderson cdd40fcc10 - client: intermediate checkin for async file verification
svn path=/trunk/boinc/; revision=25202
2012-02-06 06:06:44 +00:00
David Anderson 540a16e2f0 - transitioner: fix bug that cause invalid SQL query
svn path=/trunk/boinc/; revision=25197
2012-02-04 00:18:37 +00:00
David Anderson 4adba7ee4e - client: first pass at async file copy feature.
When a large file is copied from a project dir to a slot dir,
    it's copied in chunks,
    interleaved with other polling activities such as GUI RPCs.
    That way the manager doesn't freeze while large copies
    (e.g. VM images) are happening


svn path=/trunk/boinc/; revision=25192
2012-02-03 18:33:39 +00:00