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.
This commit is contained in:
parent
2bb69a4847
commit
76863c5104
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23838
@ -111,7 +111,7 @@ main(argc, argv)
|
|||||||
rval = cmdloop();
|
rval = cmdloop();
|
||||||
sblock.fs_clean = 0; /* mark it dirty */
|
sblock.fs_clean = 0; /* mark it dirty */
|
||||||
sbdirty();
|
sbdirty();
|
||||||
ckfini();
|
ckfini(0);
|
||||||
printf("*** FILE SYSTEM MARKED DIRTY\n");
|
printf("*** FILE SYSTEM MARKED DIRTY\n");
|
||||||
printf("*** BE SURE TO RUN FSCK TO CLEAN UP ANY DAMAGE\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");
|
printf("*** IF IT WAS MOUNTED, RE-MOUNT WITH -u -o reload\n");
|
||||||
|
@ -130,15 +130,15 @@ printstat(cp, inum, dp)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
printf("I=%lu MODE=%o SIZE=%qu", inum, dp->di_mode, dp->di_size);
|
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],
|
printf("\n\tMTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
|
||||||
dp->di_mtime.tv_nsec);
|
dp->di_mtimensec);
|
||||||
p = ctime(&dp->di_ctime.tv_sec);
|
p = ctime((time_t *)&dp->di_ctime);
|
||||||
printf("\n\tCTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
|
printf("\n\tCTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
|
||||||
dp->di_ctime.tv_nsec);
|
dp->di_ctimensec);
|
||||||
p = ctime(&dp->di_atime.tv_sec);
|
p = ctime((time_t *)&dp->di_atime);
|
||||||
printf("\n\tATIME=%15.15s %4.4s [%d nsec]\n", &p[4], &p[20],
|
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))
|
if (pw = getpwuid(dp->di_uid))
|
||||||
printf("OWNER=%s ", pw->pw_name);
|
printf("OWNER=%s ", pw->pw_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user