git: cpdup(1): Some improvements.

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Oct 14 12:07:26 PDT 2017


commit 9d626b29a3bf154306d8096856d66541f8916722
Author: Sascha Wildner <saw at online.de>
Date:   Sat Oct 14 21:06:14 2017 +0200

    cpdup(1): Some improvements.
    
    * Make cpdup retry failed rmdirs after chflags. It already does this
      for remove().
    
    * When deciding whether to copy a file, cpdup should ignore the
      UF_ARCHIVE file flag. If that flag is supported by the destination
      file system but it's cleared on a source file, then multiple
      invocations of cpdup would all copy the source file because its
      flags wouldn't match. OTOH, if the destination filesystem doesn't
      support UF_ARCHIVE, then there's no point in cpdup setting it.
    
    Submitted-by:  Will Andrews <will at firepipe.net>
    Dragonfly-bug: https://bugs.dragonflybsd.org/issues/2987
                   https://bugs.dragonflybsd.org/issues/2988
                   https://bugs.dragonflybsd.org/issues/3067

Summary of changes:
 bin/cpdup/cpdup.c | 38 +++++++++++++++++++++++++++++++-------
 1 file changed, 31 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9d626b29a3bf154306d8096856d66541f8916722


-- 
DragonFly BSD source repository


More information about the Commits mailing list