Re: [PATCH 1/2 resend] btrfs-progs: v4, move out print in cmd_df to another function

2013-09-13 Thread Anand Jain
all of them were considered, v5 sent out. Thanks, Anand - path = argv[1]; + switch (flag BTRFS_BLOCK_GROUP_TYPE_MASK) { + case BTRFS_BLOCK_GROUP_DATA: + return data; + case BTRFS_BLOCK_GROUP_SYSTEM: + return system; + case

Re: [PATCH 1/2 resend] btrfs-progs: v4, move out print in cmd_df to another function

2013-09-12 Thread David Sterba
On Fri, Sep 06, 2013 at 05:37:52PM +0800, Anand Jain wrote: +static char *group_type_str(u64 flag) { - struct btrfs_ioctl_space_args *sargs, *sargs_orig; - u64 count = 0, i; - int ret; - int fd; - int e; - char *path; - DIR *dirstream = NULL; - - if

[PATCH 1/2 resend] btrfs-progs: v4, move out print in cmd_df to another function

2013-09-06 Thread Anand Jain
This is a prepatory work for the following btrfs fi show command fixes. So that we have a function get_df to get the fs sizes v4: fixes checkpatch.pl errors as suggested by Wang v3: accepts Zach review comments v2: combined the other patches as below and rebase btrfs-progs: get string for the