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

看板DFBSD_commit作者時間16年前 (2009/06/21 11:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1AFQ9v00 (DFBSD_commit)