Re: [RFC] btrfs fi df output [Was Re: BTRF - Storage Usage]

2012-09-28 Thread Hugo Mills
On Fri, Sep 28, 2012 at 09:17:59AM +0600, Roman Mamedov wrote: On Thu, 27 Sep 2012 23:02:35 +0200 Goffredo Baroncelli kreij...@libero.it wrote: Sorry for the space error: Below a more correct example $ btrfs filesystem disk-free / Summary: Total:

Re: [PATCH V5 1/2] Btrfs: cleanup duplicated division functions

2012-09-28 Thread David Sterba
On Fri, Sep 28, 2012 at 09:49:13AM +0800, Miao Xie wrote: diff --git a/fs/btrfs/math.h b/fs/btrfs/math.h new file mode 100644 index 000..4fef49f --- /dev/null +++ b/fs/btrfs/math.h @@ -0,0 +1,35 @@ + +/* + * Copyright (C) 2012 Fujitsu. All rights reserved. + * Written by Miao Xie

[PATCH] Btrfs-progs: make btrfs_list_setup_filter to modify a set filter

2012-09-28 Thread Anand jain
From: Anand Jain anand.j...@oracle.com Signed-off-by: Anand Jain anand.j...@oracle.com --- btrfs-list.c | 50 -- 1 files changed, 32 insertions(+), 18 deletions(-) diff --git a/btrfs-list.c b/btrfs-list.c index e5f0f96..b1c9714 100644 ---

[PATCH] Btrfs-progs: end user may like full path for the subvol list display

2012-09-28 Thread Anand jain
From: Anand Jain anand.j...@oracle.com Signed-off-by: Anand Jain anand.j...@oracle.com --- btrfs-list.c | 10 +- cmds-subvolume.c | 12 +--- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/btrfs-list.c b/btrfs-list.c index c53d016..9191b7c 100644 ---

[PATCH] Btrfs-progs: put find_mount_root() in commands.h

2012-09-28 Thread Anand jain
From: Anand Jain anand.j...@oracle.com Signed-off-by: Anand Jain anand.j...@oracle.com --- commands.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/commands.h b/commands.h index bb6d2dd..eb9147a 100644 --- a/commands.h +++ b/commands.h @@ -106,3 +106,6 @@ int

[PATCH] Btrfs: be smarter about dropping things from the tree log

2012-09-28 Thread Josef Bacik
When we truncate existing items in the tree log we've been searching for each individual item and removing them. This is unnecessary churn and searching, just keep track of the slot we are on and how many items we need to delete and delete them all at once. Thanks, Signed-off-by: Josef Bacik

Re: [RFC] btrfs fi df output [Was Re: BTRF - Storage Usage]

2012-09-28 Thread Goffredo Baroncelli
On 09/28/2012 05:17 AM, Roman Mamedov wrote: On Thu, 27 Sep 2012 23:02:35 +0200 Goffredo Baroncellikreij...@libero.it wrote: Sorry for the space error: Below a more correct example $ btrfs filesystem disk-free / Summary: Total: 135.00GB Allocated:

Re: [RFC] btrfs fi df output [Was Re: BTRF - Storage Usage]

2012-09-28 Thread Goffredo Baroncelli
Hi Hugo, On 09/28/2012 10:58 AM, Hugo Mills wrote: On Fri, Sep 28, 2012 at 09:17:59AM +0600, Roman Mamedov wrote: On Thu, 27 Sep 2012 23:02:35 +0200 Goffredo Baroncellikreij...@libero.it wrote: [...] So that you can use, say, read in the shell to extract data from each line. To that

Re: [PATCH] Btrfs: be smarter about dropping things from the tree log

2012-09-28 Thread Zach Brown
When we truncate existing items in the tree log we've been searching for each individual item and removing them. This is unnecessary churn and searching, just keep track of the slot we are on and how many items we need to delete and delete them all at once. Thanks, (speaking of unnecessary

Re: [RFC] btrfs fi df output [Was Re: BTRF - Storage Usage]

2012-09-28 Thread Roman Mamedov
On Fri, 28 Sep 2012 18:44:07 +0200 Goffredo Baroncelli kreij...@inwind.it wrote: This means that the ration of space physically allocated on the disk and the space available is 7GB/10GB = 0.7 . So on 135GB of disk, only 94GB are available. You assume metadata allocation will always grow

Re: [RFC] btrfs fi df output [Was Re: BTRF - Storage Usage]

2012-09-28 Thread Goffredo Baroncelli
On 09/28/2012 08:02 PM, Roman Mamedov wrote: On Fri, 28 Sep 2012 18:44:07 +0200 Goffredo Baroncellikreij...@inwind.it wrote: This means that the ration of space physically allocated on the disk and the space available is 7GB/10GB = 0.7 . So on 135GB of disk, only 94GB are available. You

Re: [RFC] btrfs fi df output [Was Re: BTRF - Storage Usage]

2012-09-28 Thread Hugo Mills
Hi, Goffredo, On Fri, Sep 28, 2012 at 07:27:16PM +0200, Goffredo Baroncelli wrote: On 09/28/2012 10:58 AM, Hugo Mills wrote: On Fri, Sep 28, 2012 at 09:17:59AM +0600, Roman Mamedov wrote: On Thu, 27 Sep 2012 23:02:35 +0200 Goffredo Baroncellikreij...@libero.it wrote: [...] [...]

Re: [RFC] btrfs fi df output [Was Re: BTRF - Storage Usage]

2012-09-28 Thread Hugo Mills
On Sat, Sep 29, 2012 at 12:02:23AM +0600, Roman Mamedov wrote: On Fri, 28 Sep 2012 18:44:07 +0200 Goffredo Baroncelli kreij...@inwind.it wrote: This means that the ration of space physically allocated on the disk and the space available is 7GB/10GB = 0.7 . So on 135GB of disk, only 94GB

Re: [RFC] btrfs fi df output [Was Re: BTRF - Storage Usage]

2012-09-28 Thread Goffredo Baroncelli
On 09/28/2012 10:13 PM, Hugo Mills wrote: Summary: Disk_size: 135.00 GiB Disk_allocated: 10.51 GiB Disk_unallocated: 124.49 GiB Used:2.59 GiB Free_(Estimated): 91.93 GiB

Re: [RFC] btrfs fi df output [Was Re: BTRF - Storage Usage]

2012-09-28 Thread Wade Cline
On 09/28/2012 01:20 PM, Hugo Mills wrote: On Sat, Sep 29, 2012 at 12:02:23AM +0600, Roman Mamedov wrote: On Fri, 28 Sep 2012 18:44:07 +0200 Goffredo Baroncellikreij...@inwind.it wrote: This means that the ration of space physically allocated on the disk and the space available is 7GB/10GB =

Re: [PATCH] btrfs-convert: show progress

2012-09-28 Thread Alfredo Esteban
2012/9/28 cwillu cwi...@cwillu.com On Thu, Sep 27, 2012 at 6:02 PM, Alfredo Esteban aedelato...@gmail.com wrote: Hello, I'm sending a patch to show progress of btrfs-convert command. I put a progress bar in the only heavy process: the btrfs metadata creation (due to CRC calculation):