[PATCH 1/2] Update btrfs filesystem df command

2012-10-13 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it The command btrfs filesystem df is used to query the status of the chunks, how many space on the disk(s) are used by the chunks, how many space are available in the chunks, and an estimation of the free space of the filesystem. ---

[PATCH 1/2] Update btrfs filesystem df command

2012-10-13 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it The command btrfs filesystem df is used to query the status of the chunks, how many space on the disk(s) are used by the chunks, how many space are available in the chunks, and an estimation of the free space of the filesystem. ---

[PATCH 1/2] Update btrfs filesystem df command

2012-10-04 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it The command btrfs filesystem df is used to query the status of the chunks, how many space on the disk(s) are used by the chunks, how many space are available in the chunks, and an estimation of the free space of the filesystem. ---

[PATCH 1/2] Update btrfs filesystem df command

2012-10-03 Thread Goffredo Baroncelli
The command btrfs filesystem df is used to query the status of the chunks, how many space on the disk(s) are used by the chunks, how many space are available in the chunks, and an estimation of the free space of the filesystem. --- cmds-filesystem.c | 264

Re: [PATCH 1/2] Update btrfs filesystem df command

2012-10-03 Thread Ilya Dryomov
On Wed, Oct 03, 2012 at 01:43:15PM +0200, Goffredo Baroncelli wrote: The command btrfs filesystem df is used to query the status of the chunks, how many space on the disk(s) are used by the chunks, how many space are available in the chunks, and an estimation of the free space of the

Re: [PATCH 1/2] Update btrfs filesystem df command

2012-10-03 Thread Goffredo Baroncelli
On 10/03/2012 05:02 PM, Ilya Dryomov wrote: +static int cmd_disk_free(int argc, char **argv) +{ + + int flags=DF_SHOW_SUMMARY|DF_SHOW_DETAIL|DF_HUMAN_UNIT; + int i, more_than_one=0; + + if (check_argc_min(argc, 2)) + usage(cmd_disk_free_usage); + + for(i=1; i

Re: [PATCH 1/2] Update btrfs filesystem df command

2012-10-03 Thread Ilya Dryomov
On Wed, Oct 03, 2012 at 06:34:38PM +0200, Goffredo Baroncelli wrote: On 10/03/2012 05:02 PM, Ilya Dryomov wrote: On Wed, Oct 03, 2012 at 01:43:15PM +0200, Goffredo Baroncelli wrote: The command btrfs filesystem df is used to query the status of the chunks, how many space on the disk(s) are

[PATCH 1/2] Update btrfs filesystem df command

2012-10-03 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it The command btrfs filesystem df is used to query the status of the chunks, how many space on the disk(s) are used by the chunks, how many space are available in the chunks, and an estimation of the free space of the filesystem. ---

Re: [PATCH 1/2] Update btrfs filesystem df command

2012-10-03 Thread Goffredo Baroncelli
Hi, On 10/03/2012 07:20 PM, Ilya Dryomov wrote: filesystem_cmd_group_usage, NULL, { - { df, cmd_df, cmd_df_usage, NULL, 0 }, + { df, cmd_disk_free, cmd_disk_free_usage, NULL, 0 }, If this command is going to replace df, you should change the function name back

Re: [PATCH 1/2] Update btrfs filesystem df command

2012-10-03 Thread Ilya Dryomov
On Wed, Oct 03, 2012 at 07:22:31PM +0200, Goffredo Baroncelli wrote: From: Goffredo Baroncelli kreij...@inwind.it The command btrfs filesystem df is used to query the status of the chunks, how many space on the disk(s) are used by the chunks, how many space are available in the

Re: [PATCH 1/2] Update btrfs filesystem df command

2012-10-03 Thread Hugo Mills
On Wed, Oct 03, 2012 at 11:34:00PM +0300, Ilya Dryomov wrote: On Wed, Oct 03, 2012 at 07:22:31PM +0200, Goffredo Baroncelli wrote: [snip] +static const char * const cmd_disk_free_usage[] = { + btrfs filesystem df [-d|-s][-k] path [path..], + Show space usage information for a mount

Re: [PATCH 1/2] Update btrfs filesystem df command

2012-10-03 Thread Goffredo Baroncelli
On 10/03/2012 10:38 PM, Hugo Mills wrote: + if( !(flags (DF_SHOW_SUMMARY|DF_SHOW_DETAIL)) ){ + fprintf(stderr, btrfs filesystem df: it is not possible to specify -s AND -d\n); This doesn't look right at all. You are adding two switches and specifying both of them is