Skip to content

Commit

Permalink
Display SA layout number and size
Browse files Browse the repository at this point in the history
  • Loading branch information
dweeezil committed Sep 13, 2014
1 parent 098a24d commit 495b189
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/zdb/zdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1637,6 +1637,7 @@ dump_znode(objset_t *os, uint64_t object, void *data, size_t size)
sa_bulk_attr_t bulk[13];
int idx = 0;
int error;
sa_hdr_phys_t *sahdr = data;

if (!sa_loaded) {
uint64_t sa_attrs = 0;
Expand Down Expand Up @@ -1707,6 +1708,8 @@ dump_znode(objset_t *os, uint64_t object, void *data, size_t size)
z_mtime = (time_t)modtm[0];
z_ctime = (time_t)chgtm[0];

(void) printf("\tSA hdrsize %d\n", SA_HDR_SIZE(sahdr));
(void) printf("\tSA layout %d\n", SA_HDR_LAYOUT_NUM(sahdr));
(void) printf("\tpath %s\n", path);
dump_uidgid(os, uid, gid);
(void) printf("\tatime %s", ctime(&z_atime));
Expand Down

0 comments on commit 495b189

Please sign in to comment.