STAF fails to copy files that are 4GB or greater in size. 4GB minus 1 byte is fine. Tested on 3.4.23 and 3.4.18 on FreeBSD 11. Steps to reproduce:
$ cd /tmp $ mkdir src $ mkdir dest $ cd src/ $ truncate -s 4294967296 4gfile $ truncate -s 4294967295 4gminus1file $ staf local fs copy directory /tmp/src todirectory /tmp/dest recurse Error submitting request, RC: 51 Additional info --------------- Name RC OS RC --------------- -- ------ /tmp/src/4gfile 18 <None>
This is a duplicate of Feature Request #438 "Enhance FS COPY to accommodate files > 4GB" at https://sourceforge.net/p/staf/feature-requests/438/
Section "9.8.5.3 COPY DIRECTORY" in the STAF User's Guide at http://staf.sourceforge.net/current/STAFUG.htm#HDRFSSRV states in the "Notes" that there are some limitations when copying a directory including that it only supports copying files whose size < 4 GB:
If you submitted a FS COPY FILE request or FS GET FILE request (instead of a FS COPY DIRECTORY request), you get more information about the cause of the RC 18. For example:
I'll use this bug to update the help for RC 51 (Directory Copy Error) so that the "Note:" mentions that more details about why a specific file could not be copied may be provided by submitting a COPY FILE request instead of a COPY DIRECTORY request as this could be helpful in debugging if you didn't see the note in the STAF User's Guide about the size limitation when copying files. That is, change the output from:
to:
Last edit: Sharon Lucas 2016-12-30
Here's a cvs diff of the changes:
Last edit: Sharon Lucas 2016-12-30
Closing this bug as the file size limitation for FS COPY requests is documented.
When support for files >= 4GB is added, it will be implemented via Feature Request #438 "Enhance FS COPY to accommodate files > 4GB" at https://sourceforge.net/p/staf/feature-requests/438/