Artifacts Associated With Ticket 3597000fffffffffffffffffffffffffffffffff
Ticket change [33e472a85e] (rid 106670) by bgriffin on 2012-12-17 19:22:19:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The [file copy] command does not define a return value, yet when copying across file systems, say from a Trofs file system to the unix file system, [file copy] will return the number of bytes copied. This return value inconsistency can be a nuisance.
- foundin initialized to: "obsolete: 8.5.13"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "bgriffin"
- subsystem initialized to: "37. File System"
- title initialized to: "[file copy] return value inconsistency"
- type initialized to: "Bug"
Ticket change [4995ad6473] (rid 100078) by ferrieux on 2012-12-18 04:00:44:
- icomment:
The discrepancy comes from a different attitude various parts of the code towards interp-passing: - TclCopyChannel (aka fcopy), which is used for the cross-fs case, takes an interp and is documented to set the result to the number of bytes transferred - The per-fs ->copyFileProc, used otherwise for performance reasons (and its ability to copy links), happens to take no interp, and to return only TCL_OK or TCL_ERROR. As a consequence, directly returning the number of bytes from copyFileProc seems out of reach within 8.x (compat). One possibility though, would be to stat() the just-copied source or dest file, but that's ugly, slow, and subject to race conditions. Any better idea appreciated.
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [0a781ae8db] (rid 113822) by ferrieux on 2012-12-18 04:03:49:
- icomment:
Another option is to use TSD (or a global in the unthreaded case). Not outstandingly elegant either.
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [bc114e66eb] (rid 129595) by dgp on 2013-03-19 21:35:14:
- closedate changed to: "2013-03-19T14:35:14"
- closer changed to: "dgp"
- icomment:
allow_comments - 1 fix committed.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"