[PATCH 5/8] Add command btrfs filesystem disk-usage

2013-02-18 Thread Goffredo Baroncelli
Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- cmds-fi-disk_usage.c | 434 +- cmds-fi-disk_usage.h |2 + cmds-filesystem.c|2 + utils.c | 58 +++ utils.h |3 + 5 files changed, 498

[PATCH 8/8] Create a new entry in btrfs man page for btrfs device disk-usage.

2013-02-18 Thread Goffredo Baroncelli
Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- man/btrfs.8.in |8 1 file changed, 8 insertions(+) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 50dc510..e60c81f 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -46,6 +46,8 @@ btrfs \- control a btrfs filesystem

[PATCH][BTRFS-PROGS] Enhance btrfs fi df with raid5/6 support

2013-02-18 Thread Goffredo Baroncelli
: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 3/8] Create the man page entry for the command btrfs fi df

2013-02-18 Thread Goffredo Baroncelli
Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- man/btrfs.8.in | 49 + 1 file changed, 49 insertions(+) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 94f4ffe..e2f86ea 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -31,6 +31,8

Re: [PATCH 1/8] Add some helpers to manage the strings allocation/deallocation.

2013-02-18 Thread Goffredo Baroncelli
On 02/19/2013 12:08 AM, Zach Brown wrote: On Mon, Feb 18, 2013 at 10:04:26PM +0100, Goffredo Baroncelli wrote: This patch adds some helpers to manage the strings allocation and deallocation. The function string_list_add(char *) adds the passed string to a list; the function string_list_free

Re: [PATCH 1/8] Add some helpers to manage the strings allocation/deallocation.

2013-02-19 Thread Goffredo Baroncelli
(456) ); Right? - z -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More

Re: [PATCH 1/8] Add some helpers to manage the strings allocation/deallocation.

2013-02-19 Thread Goffredo Baroncelli
) ); #define pty_fmt %llu%s #define pty_arg(v) scale(v), unit_string(v) printf(pty_fmt, pty_arg(v)); The kernel used to print ipv4 addresses like this before it grew its own %pI4 format specifier. - z -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key

Re: [PATCH] Btrfs: fix max chunk size on raid5/6

2013-02-21 Thread Goffredo Baroncelli
, dev_stripes); The logic to me seems correct. However my fear is that a 16MB boundary is too low. I would felt better with a round-up to 128MB. So the stripe size would vary from 128MB to 1GB in step of 128MB. The combination wouldn't be too high. -- gpg @keyserver.linux.it: Goffredo Baroncelli

[PATCH V2][BTRFS-PROGS] Enhance btrfs fi df with raid5/6 support

2013-02-23 Thread Goffredo Baroncelli
issue v2 2013/02/23 Fix uncorrct not enough memory handling in patch #1. Thanks to Zac to highlight it. -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send

[PATCH 1/8] Add some helpers to manage the strings allocation/deallocation.

2013-02-23 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it This patch adds some helpers to manage the strings allocation and deallocation. The function string_list_add(char *) adds the passed string to a list; the function string_list_free() frees all the strings together. Signed-off-by: Goffredo Baroncelli

[PATCH 2/8] Enhance the command btrfs filesystem df.

2013-02-23 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Enhance the command btrfs filesystem df to show space usage information for a mount point(s). It shows also an estimation of the space available, on the basis of the current one used. Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- Makefile

[PATCH 4/8] Add helpers functions to handle the printing of data in tabular format.

2013-02-23 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it This patch adds some functions to manage the printing of the data in tabular format. The function struct string_table *table_create(int columns, int rows) creates an (empty) table. The functions char *table_printf(struct string_table

[PATCH 3/8] Create the man page entry for the command btrfs fi df

2013-02-23 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- man/btrfs.8.in | 49 + 1 file changed, 49 insertions(+) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 94f4ffe..e2f86ea 100644 --- a/man

[PATCH 5/8] Add command btrfs filesystem disk-usage

2013-02-23 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- cmds-fi-disk_usage.c | 434 +- cmds-fi-disk_usage.h |2 + cmds-filesystem.c|2 + utils.c | 58 +++ utils.h

[PATCH 6/8] Create entry in man page for btrfs filesystem disk-usage

2013-02-23 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- man/btrfs.8.in | 13 + 1 file changed, 13 insertions(+) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index e2f86ea..50dc510 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8

[PATCH 7/8] Add btrfs device disk-usage command

2013-02-23 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- cmds-device.c|3 ++ cmds-fi-disk_usage.c | 141 ++ cmds-fi-disk_usage.h |4 ++ 3 files changed, 148 insertions(+) diff --git

[PATCH 8/8] Create a new entry in btrfs man page for btrfs device disk-usage.

2013-02-23 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- man/btrfs.8.in |8 1 file changed, 8 insertions(+) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 50dc510..e60c81f 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -46,6

Re: Needed change in Wiki

2013-02-24 Thread Goffredo Baroncelli
: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/8] Add some helpers to manage the strings allocation/deallocation.

2013-02-25 Thread Goffredo Baroncelli
Hi Eric, On 02/25/2013 03:20 AM, Eric Sandeen wrote: On 2/23/13 7:46 AM, Goffredo Baroncelli wrote: From: Goffredo Baroncelli kreij...@inwind.it This patch adds some helpers to manage the strings allocation and deallocation. The function string_list_add(char *) adds the passed string

Re: [PATCH 1/8] Add some helpers to manage the strings allocation/deallocation.

2013-02-25 Thread Goffredo Baroncelli
of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line

Re: [PATCH 16/17] btrfs-progs: fix fd leak in cmd_subvol_set_default

2013-02-26 Thread Goffredo Baroncelli
@keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

Re: [PATCH 17/17] btrfs-progs: replace strtok_r with strsep

2013-02-26 Thread Goffredo Baroncelli
(this_char, profiles)) { -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH 01/17] btrfs-progs: Unify size-parsing

2013-02-26 Thread Goffredo Baroncelli
); -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH, RFC] btrfs-progs: require mkfs -f force option to overwrite filesystem or partition table

2013-02-26 Thread Goffredo Baroncelli
in uncommon case (like *re*format a disk or a test-suite)... However I think that '-f' is good for mkfs.btrfs. Ciao, -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send

Re: Needed change in Wiki

2013-02-26 Thread Goffredo Baroncelli
. Not sure which version introduced the function required here. Which error is returned when you try to compile with the 2.17.2 ? HTH Anand -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5

Re: [PATCH 16/17] btrfs-progs: fix fd leak in cmd_subvol_set_default

2013-02-26 Thread Goffredo Baroncelli
On 02/26/2013 09:10 PM, Eric Sandeen wrote: On 2/26/13 12:46 PM, Goffredo Baroncelli wrote: Hi Eric, On 02/25/2013 11:54 PM, Eric Sandeen wrote: Rearrange cmd_subvol_set_default() slightly so we don't have to close the fd on an error return. While we're at it, fix whitespace remove magic

Re: [PATCH 01/17] btrfs-progs: Unify size-parsing

2013-02-26 Thread Goffredo Baroncelli
On 02/26/2013 09:17 PM, Eric Sandeen wrote: On 2/26/13 12:50 PM, Goffredo Baroncelli wrote: On 02/25/2013 11:54 PM, Eric Sandeen wrote: cmds-qgroup.c contained a parse_limit() function which duplicates much of the functionality of parse_size. The only unique behavior is to handle none

[PATCH V3][BTRFS-PROGS] Enhance btrfs fi df with raid5/6 support

2013-03-10 Thread Goffredo Baroncelli
Hi all, This is the third attempt of my patches related to show how the data are stored in a btrfs filesystem. I rebased all the patches on the latest mason git. I tried to address the Zach concern abou the using of the string_list_add() in the df_pretty_sizes(): string_list_add() is removed

[PATCH 1/8] Add some helpers to manage the strings allocation/deallocation.

2013-03-10 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it This patch adds some helpers to manage the strings allocation and deallocation. The function string_list_add(char *) adds the passed string to a list; the function string_list_free() frees all the strings together. Signed-off-by: Goffredo Baroncelli

[PATCH 2/8] Enhance the command btrfs filesystem df.

2013-03-10 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Enhance the command btrfs filesystem df to show space usage information for a mount point(s). It shows also an estimation of the space available, on the basis of the current one used. Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- Makefile

[PATCH 3/8] Create the man page entry for the command btrfs fi df

2013-03-10 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- man/btrfs.8.in | 49 + 1 file changed, 49 insertions(+) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 94f4ffe..e2f86ea 100644 --- a/man

[PATCH 4/8] Add helpers functions to handle the printing of data in tabular format.

2013-03-10 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it This patch adds some functions to manage the printing of the data in tabular format. The function struct string_table *table_create(int columns, int rows) creates an (empty) table. The functions char *table_printf(struct string_table

[PATCH 6/8] Create entry in man page for btrfs filesystem disk-usage

2013-03-10 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- man/btrfs.8.in | 13 + 1 file changed, 13 insertions(+) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index e2f86ea..50dc510 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8

[PATCH 8/8] Create a new entry in btrfs man page for btrfs device disk-usage.

2013-03-10 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- man/btrfs.8.in |8 1 file changed, 8 insertions(+) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 50dc510..e60c81f 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -46,6

[PATCH 7/8] Add btrfs device disk-usage command

2013-03-10 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- cmds-device.c|3 ++ cmds-fi-disk_usage.c | 141 ++ cmds-fi-disk_usage.h |3 ++ 3 files changed, 147 insertions(+) diff --git

[PATCH 5/8] Add command btrfs filesystem disk-usage

2013-03-10 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- cmds-fi-disk_usage.c | 432 ++ cmds-fi-disk_usage.h |3 + cmds-filesystem.c|2 + utils.c | 58 +++ utils.h

Re: [PATCH 5/5] Add man page description for nCmSpP replication levels

2013-03-10 Thread Goffredo Baroncelli
. -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH 0/5] [RFC] RAID-level terminology change

2013-03-10 Thread Goffredo Baroncelli
something. This means DUP (two copy on the same disk); I understand that only reading the code. -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH 1/8] Add some helpers to manage the strings allocation/deallocation.

2013-03-10 Thread Goffredo Baroncelli
info at http://vger.kernel.org/majordomo-info.html -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord

Re: [PATCH 0/5] [RFC] RAID-level terminology change

2013-03-10 Thread Goffredo Baroncelli
compatibility RAID6 means p=2, m=* RAID5 means p=1, m=* more verbose but also more familiar to the administrator. What do you think ? -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5

Re: [PATCH V3][BTRFS-PROGS] Enhance btrfs fi df with raid5/6 support

2013-03-10 Thread Goffredo Baroncelli
On 03/10/2013 02:19 PM, Martin Steigerwald wrote: Am Sonntag, 10. März 2013 schrieb Martin Steigerwald: Am Sonntag, 10. März 2013 schrieb Goffredo Baroncelli: Hi all, Hi Goffredo, This is the third attempt of my patches related to show how the data are stored in a btrfs filesystem. I

Re: [PATCH 5/5] Add man page description for nCmSpP replication levels

2013-03-10 Thread Goffredo Baroncelli
On 03/10/2013 06:20 PM, Hugo Mills wrote: On Sun, Mar 10, 2013 at 03:01:12PM +0100, Goffredo Baroncelli wrote: Hi Hugo, could you please add also to the btrfs man page a section where are described the nCmSpP levels ? Thanks. GB On 03/09/2013 09:31 PM, Hugo Mills wrote: Signed-off

Re: [PATCH 0/5] [RFC] RAID-level terminology change

2013-03-10 Thread Goffredo Baroncelli
. -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6

Re: Moving...

2013-04-03 Thread Goffredo Baroncelli
regards. -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [bug] btrfs fi df doesn't show raid type after balance

2013-04-03 Thread Goffredo Baroncelli
-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from

Re: [patch 00/13] sysfs publishing patchset

2013-10-29 Thread Goffredo Baroncelli
/skinny_metadata features/extended_iref -Jeff -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- gpg @keyserver.linux.it: Goffredo Baroncelli

[no subject]

2013-10-29 Thread Goffredo Baroncelli
help -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [patch 00/13] sysfs publishing patchset

2013-10-29 Thread Goffredo Baroncelli
consumed ( == number-of-disk * size-of-chunk ). In fact it seems that disk_total == total_bytes... Ok looking at the kernel code (update_space_info() in extent-tree.c) it seems that the info contained in space_info is bogus in case of RAID5/RAID6 -- gpg @keyserver.linux.it: Goffredo Baroncelli

[RFC][PATCH] BTRFS_PROG: mount.btrfs helper

2013-11-03 Thread Goffredo Baroncelli
to remove the btrfs command from the initramfs, and all the related scripts (in my debian both udev and btrfs-tools packages contains three udev rules for btrfs). Comments are welcome. -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2

[PATCH] Provide mount.btrfs helper

2013-11-03 Thread Goffredo Baroncelli
This patch provides a mount.btrfs helper for the mount command to mounting a btrfs filesystem. A btrfs filesystem could span several disks. This helper scans all the partition to discover all the disks required to mount a filesystem. So it is not necessary any-more to scan the partitions to mount

Re: [RFC][PATCH] BTRFS_PROG: mount.btrfs helper

2013-11-03 Thread Goffredo Baroncelli
On 2013-11-03 22:23, Jeff Mahoney wrote: On 11/3/13, 1:38 PM, Goffredo Baroncelli wrote: Hi all, this patch provides a mount.btrfs helper for the mount command to mounting a btrfs filesystem. A btrfs filesystem could spans several disks. This helper scans all the partition to discover all

Re: Question about btrfs as root filesystem

2013-11-08 Thread Goffredo Baroncelli
On 2013-11-08 18:44, Chris Murphy wrote: On Nov 8, 2013, at 5:55 AM, Goffredo Baroncelli kreij...@libero.it kreij...@libero.it wrote: Instead of using set-default, I am used to rename the subvolume. I.E. I assume that the root filesystem is a subvolume always called __active. When I

Re: Btrfs resize problem after device add/delete

2013-11-09 Thread Goffredo Baroncelli
majordomo info at http://vger.kernel.org/majordomo-info.html -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message

btrfs subvolume list: what is the meaning of top level

2013-11-09 Thread Goffredo Baroncelli
/sub6 I expected that in the line 4, the top level should be 258; the same for the line 6: top level should be 260. So my question is: what is the meaning of the top level value ? Thanks. BR G.Baroncelli -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5

Re: btrfs subvolume list: what is the meaning of top level

2013-11-09 Thread Goffredo Baroncelli
On 2013-11-09 21:18, Chris Murphy wrote: On Nov 9, 2013, at 11:10 AM, Goffredo Baroncelli kreij...@inwind.it wrote: 1ID 256 gen 5 top level 5 path sub1 2ID 257 gen 6 top level 5 path dir/sub2 3 ID 258 gen 8 top level 5 path dir/sub3 4ID 259 gen 8 top level 5 path

Re: btrfs subvolume list: what is the meaning of top level

2013-11-09 Thread Goffredo Baroncelli
On 2013-11-10 08:38, Goffredo Baroncelli wrote: On 2013-11-09 21:18, Chris Murphy wrote: [..] Chris, many thanks, not it is clear. s/not/now/ Sorry :-) GB -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82

Re: [RFC PATCH] Btrfs: add support for inode properties

2013-11-12 Thread Goffredo Baroncelli
) syscall ? I noticed that you implemented the Compression properties set/get: is this from chattr -c ? [... cut other lines ... ] G.Baroncelli -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5

Re: [PATCH V2] Btrfs: add support for inode properties

2013-11-13 Thread Goffredo Baroncelli
there are the following calls: btrfs_update_iflags(inode); inode_inc_iversion(inode); inode-i_ctime = CURRENT_TIME; ret = btrfs_update_inode(trans, root, inode); btrfs_end_transaction(trans, root); +} [...] GB -- gpg @keyserver.linux.it: Goffredo

Re: Does btrfs raid1 actually provide any resilience?

2013-11-14 Thread Goffredo Baroncelli
of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line

BUG: btrfsRe: Does btrfs raid1 actually provide any resilience?

2013-11-14 Thread Goffredo Baroncelli
On 2013-11-14 19:22, Goffredo Baroncelli wrote: On 2013-11-14 12:02, Lutz Vieweg wrote: Hi, on a server that so far uses an MD RAID1 with XFS on it we wanted to try btrfs, instead. But even the most basic check for btrfs actually providing resilience against one of the physical storage

Mixed and raid [was Re: BUG: btrfsRe: Does btrfs raid1 actually provide any resilience?]

2013-11-14 Thread Goffredo Baroncelli
for the attention. BR G.Baroncelli [1] btrfs-progs: avoid write to the disk before sure to create fs 71d6bd3c8d70fb682c7fd50796f587ce1f1cf6f8 . [2] btrfs-progs: mkfs should check for small vol well before cdbc10729266c03aeb2eb812c17a3ef6c1ceae26 -- gpg @keyserver.linux.it: Goffredo Baroncelli

Re: BUG: btrfsRe: Does btrfs raid1 actually provide any resilience?

2013-11-14 Thread Goffredo Baroncelli
On 2013-11-14 22:22, Chris Murphy wrote: On Nov 14, 2013, at 1:47 PM, Goffredo Baroncelli kreij...@libero.it wrote: Instead if I use the btrfs-progs c652e4efb8e2dd7... I got [snip] Data+Metadata: total=8.00MB, used=28.00KB Note the absence of any RAID1 profile. What happens

Re: [PATCH] btrfs-progs: for mixed group check opt before default raid profile is enforced

2013-11-14 Thread Goffredo Baroncelli
With mixed block groups data and metadata profiles must be the same BR G.Baroncelli -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body

Re: Mixed and raid [was Re: BUG: btrfsRe: Does btrfs raid1 actually provide any resilience?]

2013-11-14 Thread Goffredo Baroncelli
On 2013-11-15 08:12, Duncan wrote: Goffredo Baroncelli posted on Thu, 14 Nov 2013 22:21:22 +0100 as excerpted: after some tests and looking at the code I discovered that the current mkfs.btrfs doesn't allow any raid profile other than SINGLE for data and meta-data when the mixed metadata

[PATCH] BTRFS-PROG: prefix with ERROR the mkfs error messages

2013-11-15 Thread Goffredo Baroncelli
Prefix with ERROR: the error messages of mkfs Add the ERROR prefix to the error messages of mkfs, to align it to the btrfs main utility style. The patch also increase the buffer size of test_dev_for_mkfs() and test_num_disk_vs_raid() for the error message from 100 to 150 because the former

[PATCH] Prefix with ERROR: the error messages of mkfs

2013-11-15 Thread Goffredo Baroncelli
Add the ERROR prefix to the error messages of mkfs, to align it to the btrfs main utility style. The patch increase the buffer size of test_dev_for_mkfs() and test_num_disk_vs_raid() for the error message from 100 to 150 because the former become too small. Signed-off-by: Goffredo Baroncelli

[PATCH] BTRFS-PROG: recursively subvolume snapshot and delete

2013-11-16 Thread Goffredo Baroncelli
Hi All, the following patches implement the recursively snapshotting and deleting of a subvolume. To snapshot recursively you must pass the -R switch: # btrfs subvolume create sub1 Create subvolume './sub1' # btrfs subvolume create sub1/sub2 Create subvolume 'sub1/sub2' # btrfs subvolume

[PATCH 1/7] Recursive btrfs sub snapshot/delete: create get_root_info() function

2013-11-16 Thread Goffredo Baroncelli
Move some code from cmd_subvol_show() to get_root_info(). This is a preparation for the introducing of traverse_list_subvol_rec() function. Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- btrfs-list.c | 95 btrfs-list.h

[PATCH 3/7] recursive btrfs snapshot/delete: create traverse_list_subvol_rec()

2013-11-16 Thread Goffredo Baroncelli
Create the traverse_list_subvol_rec() function. Its aim is to permit to process recursively the filesystems subvolumes. Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- btrfs-list.c | 121 +++ btrfs-list.h | 3 ++ 2 files changed

[PATCH 2/7] recursive btrfs sub snapshot/delete: create pathjoin() function

2013-11-16 Thread Goffredo Baroncelli
The pathjoin() function creates a path from a list of strings. Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- utils.c | 63 +++ utils.h | 1 + 2 files changed, 64 insertions(+) diff --git a/utils.c b/utils.c index f499023

[PATCH 7/7] Document the -R switch for the btrfs subvolume delete command.

2013-11-16 Thread Goffredo Baroncelli
Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- man/btrfs.8.in | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index aee1f70..5ed5277 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -8,7 +8,7 @@ btrfs \- control a btrfs

[PATCH 4/7] recursive btrfs subvol delete

2013-11-16 Thread Goffredo Baroncelli
Add the -R switch to allow to delete recursively a subvolume. Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- cmds-subvolume.c | 107 +-- 1 file changed, 89 insertions(+), 18 deletions(-) diff --git a/cmds-subvolume.c b/cmds

[PATCH 6/7] btrfs subvolume snapshot -R: update man page

2013-11-16 Thread Goffredo Baroncelli
Update man page of btrfs subvolume snapshot, documenting the -R switch. Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- man/btrfs.8.in | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index b620348..aee1f70 100644 --- a/man/btrfs

[PATCH 5/7] recursively btrfs subvolume snapshot

2013-11-16 Thread Goffredo Baroncelli
Add a '-R' switch to btrfs subvolume snapshot to allow a recursively subvolume snapshotting. Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- cmds-subvolume.c | 213 +++ 1 file changed, 167 insertions(+), 46 deletions(-) diff --git

Re: [PATCH V2] Btrfs: add support for inode properties

2013-11-19 Thread Goffredo Baroncelli
Hi Filipe On 2013-11-19 17:06, Filipe David Manana wrote: On Wed, Nov 13, 2013 at 6:59 PM, Goffredo Baroncelli kreij...@libero.it wrote: Hi Filipe, my comments below On 2013-11-13 02:21, Filipe David Borba Manana wrote: This change adds infrastructure to allow for generic properties

Re: [PATCH 0/5] Add support for object properties

2013-11-23 Thread Goffredo Baroncelli
in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send

Re: [PATCH] BTRFS-PROG: recursively subvolume snapshot and delete

2013-11-25 Thread Goffredo Baroncelli
Hi all, nobody is interested in these new features ? On 2013-11-16 18:09, Goffredo Baroncelli wrote: Hi All, the following patches implement the recursively snapshotting and deleting of a subvolume. To snapshot recursively you must pass the -R switch: # btrfs subvolume create sub1

Re: [PATCH] BTRFS-PROG: recursively subvolume snapshot and delete

2013-11-28 Thread Goffredo Baroncelli
Hi David, On 2013-11-28 19:31, David Sterba wrote: On Sat, Nov 16, 2013 at 06:09:00PM +0100, Goffredo Baroncelli wrote: the following patches implement the recursively snapshotting and deleting of a subvolume. Nice feature, but can we try to make the snapshot creation atomic? This would

Re: [PATCH] BTRFS-PROG: recursively subvolume snapshot and delete

2013-11-29 Thread Goffredo Baroncelli
On 2013-11-29 19:07, David Sterba wrote: On Thu, Nov 28, 2013 at 08:23:13PM +0100, Goffredo Baroncelli wrote: Definetely you are right. In fact this is true also for other tools like tar: they complaint if you remove/move/rename a file during the copy. We can work to increase the robustness

Re: [PATCH] Btrfs: relocate csums properly with prealloc extents

2013-11-29 Thread Goffredo Baroncelli
-rc1 to come out with this patch in it before I could queue it up. Don't worry, it's not lost. The patch landed in 3.12.2 -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send

Re: btrfs raid1 and btrfs raid10 arrays NOT REDUNDANT

2014-01-04 Thread Goffredo Baroncelli
for RAID1, 4, 5, 6, 10 or multipath arrays, as only these have interesting state. RAID0 or Linear never have missing, spare, or failed drives, so there is nothing to monitor. Best regards GB -- gpg @keyserver.linux.it: Goffredo Baroncelli

Re: [PATCH RFCv2] new ioctl TREE_SEARCH_V2

2014-01-27 Thread Goffredo Baroncelli
-kernelspace transition, which seems be one of the goal of your patch. BR G.Baroncelli [1] http://www.spinics.net/lists/linux-btrfs/msg07617.html -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe

Re: [PATCH RFCv2] new ioctl TREE_SEARCH_V2

2014-01-27 Thread Goffredo Baroncelli
are overridden. I repeat, the search is still performed linearity (ok, some values could be skipped but this is a further optimization); I want only to avoid kernel space returning out of range data. BR Goffredo -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint

Re: Provide a better free space estimate on RAID1

2014-02-06 Thread Goffredo Baroncelli
, it would be a better estimation than the actual one. BR G.Baroncelli -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body

Re: [PATCH] btrfs: introduce BTRFS_IOC_GET_DEVS

2014-02-06 Thread Goffredo Baroncelli
-- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: Provide a better free space estimate on RAID1

2014-02-08 Thread Goffredo Baroncelli
On 02/07/2014 05:40 AM, Roman Mamedov wrote: On Thu, 06 Feb 2014 20:54:19 +0100 Goffredo Baroncelli kreij...@libero.it wrote: [...] Even I am not entirely convinced, I update the Roman's PoC in order to take in account all the RAID levels. I performed some tests with 7 48.8GB disks. Here my

[PATCH][V2] Re: Provide a better free space estimate on RAID1

2014-02-08 Thread Goffredo Baroncelli
On 02/07/2014 05:40 AM, Roman Mamedov wrote: On Thu, 06 Feb 2014 20:54:19 +0100 Goffredo Baroncelli kreij...@libero.it wrote: [...] Even I am not entirely convinced, I update the Roman's PoC in order to take in account all the RAID levels. The filesystem test is composed by 7 51GB disks

[PATCH][V3] Provide a better free space estimate [was]Re: Provide a better free space estimate on RAID1

2014-02-09 Thread Goffredo Baroncelli
On 02/07/2014 05:40 AM, Roman Mamedov wrote: On Thu, 06 Feb 2014 20:54:19 +0100 Goffredo Baroncelli kreij...@libero.it wrote: [...] As Roman pointed out, df show the raw space available. However when a RAID level is used, the space available to the user is less. This patch try to address

Re: What to do about df and btrfs fi df

2014-02-10 Thread Goffredo Baroncelli
-- disk space allocated for data and metdata block group I hope that this would work better when we have a filesystem composed by small (inlined) files or when we will have per-subvolume RAID levels. -- gpg @keyserver.linux.it: Goffredo Baroncelli

Re: What to do about df and btrfs fi df

2014-02-10 Thread Goffredo Baroncelli
space. Other that there is an indication of an estimation of the free space, with the pessimistic and optimistic values. [1] See [PATCH V3][BTRFS-PROGS] Enhance btrfs fi df with raid5/6 support dated 03/10/2013 01:17 PM -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key

Re: What to do about df and btrfs fi df

2014-02-11 Thread Goffredo Baroncelli
On 02/11/2014 02:14 PM, Josef Bacik wrote: On 02/10/2014 05:26 PM, Goffredo Baroncelli wrote: On 02/10/2014 05:41 PM, Josef Bacik wrote: = New and improved btrfs fi df = [...] Hi Josef The problem I had with this patch was it didn't give me a way to get the original output. I

Re: What to do about df and btrfs fi df

2014-02-11 Thread Goffredo Baroncelli
On 02/11/2014 07:33 PM, Josef Bacik wrote: On 02/11/2014 01:20 PM, Goffredo Baroncelli wrote: On 02/11/2014 02:14 PM, Josef Bacik wrote: On 02/10/2014 05:26 PM, Goffredo Baroncelli wrote: On 02/10/2014 05:41 PM, Josef Bacik wrote: = New and improved btrfs fi df = [...] Hi

Re: What to do about df and btrfs fi df

2014-02-12 Thread Goffredo Baroncelli
with a dedicated patch. Hugo. -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More

Re: What to do about df and btrfs fi df

2014-02-12 Thread Goffredo Baroncelli
): 113402084997 (Max: 123134189568, min: 62460008448) Data to disk ratio: 92 % I wish there was more you know. Kind Regards, Kostia BR G.Baroncelli -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA

Re: Extend BTRFS_IOC_DEVICES_READY for degraded RAID

2015-01-05 Thread Goffredo Baroncelli
/linux-btrfs/msg39706.html -- gpg @keyserver.linux.it: Goffredo Baroncelli kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More

Re: price to pay for nocow file bit?

2015-01-08 Thread Goffredo Baroncelli
this behaviour be optional? I dont mind some fragmentation if i can keep having checksums and the ability for raid 1 to repair those files. I agree with Konstantinos's request: please let this behavior optional. BR G.Baroncelli -- gpg @keyserver.linux.it: Goffredo Baroncelli kreijackATinwind.it Key

Re: price to pay for nocow file bit?

2015-01-07 Thread Goffredo Baroncelli
I am trying to understand the pros and cons of turning this bit on, before I can make this change. So far I see one big pro, but I wonder if there's any major con I should think about? Nope there's no real con other than you don't get csums, but that doesn't really matter for you.

Re: Is it safe or useful to use NOCOW flag and autodefrag mount option at same time?

2015-03-17 Thread Goffredo Baroncelli
understood correctly ? BR G.Baroncelli -- gpg @keyserver.linux.it: Goffredo Baroncelli kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org

Re: [systemd-devel] systemd and nested Btrfs subvolumes

2015-03-20 Thread Goffredo Baroncelli
be not true if a cp --reflink is used. [1] http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg42333.html [2] http://comments.gmane.org/gmane.comp.file-systems.btrfs/30119 [3] btrfs find-new and btrfs send do that -- gpg @keyserver.linux.it: Goffredo Baroncelli

Re: [systemd-devel] systemd and nested Btrfs subvolumes

2015-03-20 Thread Goffredo Baroncelli
be not true if a cp --reflink is used. [1] http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg42333.html [2] http://comments.gmane.org/gmane.comp.file-systems.btrfs/30119 [3] btrfs find-new and btrfs send do that -- gpg @keyserver.linux.it: Goffredo Baroncelli

<    2   3   4   5   6   7   8   9   10   >