diff options
author | Peter Wemm <peter@FreeBSD.org> | 1997-03-13 12:42:22 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1997-03-13 12:42:22 +0000 |
commit | 76863c5104cb843bc2898f368984f83397e1be95 (patch) | |
tree | fe28b48e9110d3d9fc1d41578468ee8abbc10cc7 /sbin | |
parent | 2bb69a4847769d1342bc0a336a48237472a9bccc (diff) | |
download | src-76863c5104cb843bc2898f368984f83397e1be95.tar.gz src-76863c5104cb843bc2898f368984f83397e1be95.zip |
Make this compile. Mostly use the new names for the ctime/atime/mtime
stamps in the inodes and call one of fsck's utility funcs with a new arg.
Notes
Notes:
svn path=/head/; revision=23838
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/fsdb/fsdb.c | 2 | ||||
-rw-r--r-- | sbin/fsdb/fsdbutil.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c index 39935812ac32..208507765f15 100644 --- a/sbin/fsdb/fsdb.c +++ b/sbin/fsdb/fsdb.c @@ -111,7 +111,7 @@ main(argc, argv) rval = cmdloop(); sblock.fs_clean = 0; /* mark it dirty */ sbdirty(); - ckfini(); + ckfini(0); printf("*** FILE SYSTEM MARKED DIRTY\n"); printf("*** BE SURE TO RUN FSCK TO CLEAN UP ANY DAMAGE\n"); printf("*** IF IT WAS MOUNTED, RE-MOUNT WITH -u -o reload\n"); diff --git a/sbin/fsdb/fsdbutil.c b/sbin/fsdb/fsdbutil.c index 2ea7d6c02f66..8d064bca851d 100644 --- a/sbin/fsdb/fsdbutil.c +++ b/sbin/fsdb/fsdbutil.c @@ -130,15 +130,15 @@ printstat(cp, inum, dp) break; } printf("I=%lu MODE=%o SIZE=%qu", inum, dp->di_mode, dp->di_size); - p = ctime(&dp->di_mtime.tv_sec); + p = ctime((time_t *)&dp->di_mtime); printf("\n\tMTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20], - dp->di_mtime.tv_nsec); - p = ctime(&dp->di_ctime.tv_sec); + dp->di_mtimensec); + p = ctime((time_t *)&dp->di_ctime); printf("\n\tCTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20], - dp->di_ctime.tv_nsec); - p = ctime(&dp->di_atime.tv_sec); + dp->di_ctimensec); + p = ctime((time_t *)&dp->di_atime); printf("\n\tATIME=%15.15s %4.4s [%d nsec]\n", &p[4], &p[20], - dp->di_atime.tv_nsec); + dp->di_atimensec); if (pw = getpwuid(dp->di_uid)) printf("OWNER=%s ", pw->pw_name); |