[sheepdog] [PATCH] dog: add to output missing members of sd_inode in dump-inode
Saeki Masaki
saeki.masaki at po.ntts.co.jp
Mon Mar 2 10:34:11 CET 2015
In "dog vdi object dump-inode", some members of sd_inode structure is not output.
This patch add to output missing members.
- vdi_size
- vm_state_size
Reviewed-by: Yuuki Nagahara <yuuki_nagahara at bip.co.jp>
Signed-off-by: Masaki Saeki <saeki.masaki at po.ntts.co.jp>
---
dog/vdi.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dog/vdi.c b/dog/vdi.c
index 15a382a..6be3304 100644
--- a/dog/vdi.c
+++ b/dog/vdi.c
@@ -2798,6 +2798,8 @@ static int vdi_object_dump_inode(int argc, char **argv)
printf("create_time: %"PRIx64"\n", inode->create_time);
printf("snap_ctime: %"PRIx64"\n", inode->snap_ctime);
printf("vm_clock_nsec: %"PRIx64"\n", inode->vm_clock_nsec);
+ printf("vdi_size: %"PRIu64"\n", inode->vdi_size);
+ printf("vm_state_size: %"PRIu64"\n", inode->vm_state_size);
printf("copy_policy: %d\n", inode->copy_policy);
printf("store_policy: %d\n", inode->store_policy);
printf("nr_copies: %d\n", inode->nr_copies);
--
1.7.1
More information about the sheepdog
mailing list