DragonFly-2.3.1.328.g0e9fa master bin/cpdup cpdup.c

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jun 20 19:42:17 PDT 2009


commit 0e9fad5e47425d0753278b41e5169f5b8c50799d
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Jun 20 19:25:26 2009 -0700

    cpdup - Do not create a .tmp file and rename if the target does not exist.
    
    * When copying if the target does not exist use the target's actual name
      instead of the name of a temporary file.
    
      This helps filesystems (aka HAMMER) which use hashed directories.  Inode
      numbers can be selected by the FS on the basis of the file-name in
      order to maintain directory-order linearity.  If the copy program creates
      the target file with one name and then renames it to the real name,
      however, the feature is lost and we get one big scramble again.

Summary of changes:
 bin/cpdup/cpdup.c |   38 ++++++++++++++++++++++++++------------
 1 files changed, 26 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0e9fad5e47425d0753278b41e5169f5b8c50799d


-- 
DragonFly BSD source repository





More information about the Commits mailing list