aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsdb/fsdbutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/fsdb/fsdbutil.c')
-rw-r--r--sbin/fsdb/fsdbutil.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sbin/fsdb/fsdbutil.c b/sbin/fsdb/fsdbutil.c
index 474ac82f1b9a..d50c6c00d331 100644
--- a/sbin/fsdb/fsdbutil.c
+++ b/sbin/fsdb/fsdbutil.c
@@ -156,6 +156,12 @@ printstat(const char *cp, ino_t inum, union dinode *dp)
}
printf("I=%lu MODE=%o SIZE=%ju", (u_long)inum, DIP(dp, di_mode),
(uintmax_t)DIP(dp, di_size));
+ if (sblock.fs_magic != FS_UFS1_MAGIC) {
+ t = _time64_to_time(dp->dp2.di_birthtime);
+ p = ctime(&t);
+ printf("\n\tBTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
+ dp->dp2.di_birthnsec);
+ }
if (sblock.fs_magic == FS_UFS1_MAGIC)
t = _time32_to_time(dp->dp1.di_mtime);
else