DragonFly commits List (threaded) for 2009-06
DragonFly BSD
DragonFly commits List (threaded) for 2009-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 20 Jun 2009 19:40:48 -0700 (PDT)

commit 0e9fad5e47425d0753278b41e5169f5b8c50799d
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]