mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Print the fs last-mounted time too.
Reviewed by: mckusick Approved by: mckusick (mentor) Sponsored by: Netflix
This commit is contained in:
parent
7f5e007d04
commit
a9d9cfff01
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360559
|
@ -156,7 +156,7 @@ dumpfsid(void)
|
|||
static int
|
||||
dumpfs(const char *name)
|
||||
{
|
||||
time_t fstime;
|
||||
time_t fstime, fsmtime;
|
||||
int64_t fssize;
|
||||
int32_t fsflags;
|
||||
int i;
|
||||
|
@ -165,8 +165,10 @@ dumpfs(const char *name)
|
|||
case 2:
|
||||
fssize = afs.fs_size;
|
||||
fstime = afs.fs_time;
|
||||
printf("magic\t%x (UFS2)\ttime\t%s",
|
||||
afs.fs_magic, ctime(&fstime));
|
||||
fsmtime = afs.fs_mtime;
|
||||
printf("magic\t%x (UFS2)\n", afs.fs_magic);
|
||||
printf("last mounted time\t%s", ctime(&fsmtime));
|
||||
printf("last modified time\t%s", ctime(&fstime));
|
||||
printf("superblock location\t%jd\tid\t[ %08x %08x ]\n",
|
||||
(intmax_t)afs.fs_sblockloc, afs.fs_id[0], afs.fs_id[1]);
|
||||
printf("ncg\t%d\tsize\t%jd\tblocks\t%jd\n",
|
||||
|
|
Loading…
Reference in a new issue