diff options
author | mckusick <mckusick@FreeBSD.org> | 2002-07-17 02:03:19 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2002-07-17 02:03:19 +0000 |
commit | 3abb526f86a27b005f352fb91f605228876fa8f7 (patch) | |
tree | 5b5d1d91499a541486f56f84b49c10edeafd66b2 /sbin/dump/traverse.c | |
parent | 9498a983a938cec96851b64642f0b62bba7d1827 (diff) | |
download | FreeBSD-src-3abb526f86a27b005f352fb91f605228876fa8f7.zip FreeBSD-src-3abb526f86a27b005f352fb91f605228876fa8f7.tar.gz |
Change utimes to set the file creation time (for filesystems that
support creation times such as UFS2) to the value of the
modification time if the value of the modification time is older
than the current creation time. See utimes(2) for further details.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sbin/dump/traverse.c')
-rw-r--r-- | sbin/dump/traverse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dump/traverse.c b/sbin/dump/traverse.c index 733ac26..4cbce6e 100644 --- a/sbin/dump/traverse.c +++ b/sbin/dump/traverse.c @@ -407,8 +407,8 @@ dumpino(union dinode *dp, ino_t ino) spcl.c_atimensec = dp->dp1.di_atimensec; spcl.c_mtime = _time32_to_time(dp->dp1.di_mtime); spcl.c_mtimensec = dp->dp1.di_mtimensec; - spcl.c_createtime = 0; - spcl.c_createtimensec = 0; + spcl.c_birthtime = 0; + spcl.c_birthtimensec = 0; spcl.c_rdev = dp->dp1.di_rdev; spcl.c_file_flags = dp->dp1.di_flags; spcl.c_uid = dp->dp1.di_uid; @@ -420,8 +420,8 @@ dumpino(union dinode *dp, ino_t ino) spcl.c_atimensec = dp->dp2.di_atimensec; spcl.c_mtime = _time64_to_time(dp->dp2.di_mtime); spcl.c_mtimensec = dp->dp2.di_mtimensec; - spcl.c_createtime = _time64_to_time(dp->dp2.di_createtime); - spcl.c_createtimensec = dp->dp2.di_creatensec; + spcl.c_birthtime = _time64_to_time(dp->dp2.di_birthtime); + spcl.c_birthtimensec = dp->dp2.di_birthnsec; spcl.c_rdev = dp->dp2.di_rdev; spcl.c_file_flags = dp->dp2.di_flags; spcl.c_uid = dp->dp2.di_uid; |