Skip to content
Tcl Source Code History Of Ticket 3597000fffffffff
Login

History Of Ticket 3597000fffffffff

Artifacts Associated With Ticket 3597000fffffffff

  1. Ticket change [33e472a85e] (rid 106670) by bgriffin on 2012-12-17 19:22:19:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. 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. 
      
    4. foundin initialized to: "obsolete: 8.5.13"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "bgriffin"
    10. subsystem initialized to: "37. File System"
    11. title initialized to: "[file copy] return value inconsistency"
    12. type initialized to: "Bug"
  2. Ticket change [4995ad6473] (rid 100078) by ferrieux on 2012-12-18 04:00:44:

    1. 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.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  3. Ticket change [0a781ae8db] (rid 113822) by ferrieux on 2012-12-18 04:03:49:

    1. icomment:
      Another option is to use TSD (or a global in the unthreaded case). Not outstandingly elegant either.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  4. Ticket change [bc114e66eb] (rid 129595) by dgp on 2013-03-19 21:35:14:

    1. closedate changed to: "2013-03-19T14:35:14"
    2. closer changed to: "dgp"
    3. icomment:
      
      
      allow_comments - 1
      
      fix committed.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"