[sheepdog] [PATCH] dog: add to output missing members of sd_inode in dump-inode

Liu Yuan namei.unix at gmail.com
Mon Mar 2 10:39:02 CET 2015


On Mon, Mar 02, 2015 at 06:34:11PM +0900, Saeki Masaki wrote:
> 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
> 
> 
> -- 
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> https://lists.wpkg.org/mailman/listinfo/sheepdog

Applied thanks.

Yuan



More information about the sheepdog mailing list