MFV 316855
7900 zdb shouldn't print the path of a znode at verbosity < 5 Reviewed by: Paul Dagnelie <pcd@delphix.com> Reviewed by: Matt Ahrens <mahrens@delphix.com> Approved by: Dan McDonald <danmcd@omniti.com> Author: Alan Somers <asomers@freebsd.org> illumos/illumos-gate@e548d2fa41 https://www.illumos.org/issues/7900 MFC after: 3 weeks Sponsored by: Spectra Logic Corp
This commit is contained in:
parent
656074ea60
commit
07bb15b440
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316856
@ -1718,23 +1718,19 @@ dump_znode(objset_t *os, uint64_t object, void *data, size_t size)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
error = zfs_obj_to_path(os, object, path, sizeof (path));
|
|
||||||
if (error != 0) {
|
|
||||||
(void) snprintf(path, sizeof (path), "\?\?\?<object#%llu>",
|
|
||||||
(u_longlong_t)object);
|
|
||||||
}
|
|
||||||
if (dump_opt['d'] < 3) {
|
|
||||||
(void) printf("\t%s\n", path);
|
|
||||||
(void) sa_handle_destroy(hdl);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
z_crtime = (time_t)crtm[0];
|
z_crtime = (time_t)crtm[0];
|
||||||
z_atime = (time_t)acctm[0];
|
z_atime = (time_t)acctm[0];
|
||||||
z_mtime = (time_t)modtm[0];
|
z_mtime = (time_t)modtm[0];
|
||||||
z_ctime = (time_t)chgtm[0];
|
z_ctime = (time_t)chgtm[0];
|
||||||
|
|
||||||
(void) printf("\tpath %s\n", path);
|
if (dump_opt['d'] > 4) {
|
||||||
|
error = zfs_obj_to_path(os, object, path, sizeof (path));
|
||||||
|
if (error != 0) {
|
||||||
|
(void) snprintf(path, sizeof (path),
|
||||||
|
"\?\?\?<object#%llu>", (u_longlong_t)object);
|
||||||
|
}
|
||||||
|
(void) printf("\tpath %s\n", path);
|
||||||
|
}
|
||||||
dump_uidgid(os, uid, gid);
|
dump_uidgid(os, uid, gid);
|
||||||
(void) printf("\tatime %s", ctime(&z_atime));
|
(void) printf("\tatime %s", ctime(&z_atime));
|
||||||
(void) printf("\tmtime %s", ctime(&z_mtime));
|
(void) printf("\tmtime %s", ctime(&z_mtime));
|
||||||
|
Loading…
Reference in New Issue
Block a user