[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: [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

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

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

2013-02-18 Thread Goffredo Baroncelli
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 kreij...@inwind.it --- Makefile |3

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

2013-02-18 Thread Goffredo Baroncelli
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 |2 +- cmds-fi-disk_usage.c

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

2013-02-18 Thread Goffredo Baroncelli
is a '=', the the text is replace by a sequence of '=' to fill the column width. The function void table_free(struct string_table *) frees all the data associated to the table. The function void table_dump(struct string_table *tab) prints the table on stdout. Signed-off-by: Goffredo

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

2013-02-18 Thread Goffredo Baroncelli
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.in @@ -29,6 +29,9 @@ btrfs \- control a btrfs

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

2013-02-18 Thread Goffredo Baroncelli
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 a/cmds-device.c b/cmds-device.c index 198ad68

[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

[PATCH][BTRFS] raid5/6: chunk allocation

2013-02-17 Thread Goffredo Baroncelli
to fragmentation problem when different raid profiles where used together. BR G.Baroncelli Signed-off-by: Goffredo Baroncelli kreij...@inwind.it diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index c372264..88d17b4 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -3724,25

Re: [PATCH 2/6] Btrfs-progs: add btrfsck functionality to btrfs

2013-02-12 Thread Goffredo Baroncelli
in the release note to notify this change. Unfortunately btrfsck is old; now we must provide an alternative file to overwrite this binary in order to avoid the mismatch above when the user is used to recompile the binary from the source. BR Goffredo -- gpg @keyserver.linux.it: Goffredo Baroncelli

Re: [PATCH] Btrfs-progs: check out if the swap device

2013-02-12 Thread Goffredo Baroncelli
to be not limited by the fact that the check fails. I am thinking to a rescue scenario like boot in a single mode where not al filesystem are mounted. I am referring to all the safety check not this one only. BR G.Baroncelli [...] -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key

Re: [PATCH 2/6] Btrfs-progs: add btrfsck functionality to btrfs

2013-02-12 Thread Goffredo Baroncelli
On 02/12/2013 11:52 PM, David Sterba wrote: On Tue, Feb 12, 2013 at 07:01:33PM +0100, Goffredo Baroncelli wrote: On 02/12/2013 06:37 PM, Filipe Brandenburger wrote: Hi, On Tue, Feb 12, 2013 at 8:39 AM, David Sterba dste...@suse.cz wrote: +# For backward compatibility, 'btrfs' changes

Re: btrfs and LVM snapshots (Re: kernel BUG at fs/btrfs/extent-tree.c:1772)

2013-02-10 Thread Goffredo Baroncelli
. Regards -- 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

Re: [PATCH 6/6] Btrfs-progs: add the rescue section to btrfs

2013-02-08 Thread Goffredo Baroncelli
, +argv[optind], i, sb.generation, filename); +close(fd); +} [...] -- 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 2/6] Btrfs-progs: add btrfsck functionality to btrfs

2013-02-08 Thread Goffredo Baroncelli
{ + usage_command_group(btrfs_cmd_group, 0, 0); [...] -- 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: Btrfs-progs: Merge btrfs-restore, btrfsck, btrfs-select-super, btrfs-dump-super and btrfs-debug-tree in to btrfs

2013-02-08 Thread Goffredo Baroncelli
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 unsubscribe

[BTRFS][PATCH] Removed the 'subvolrootid' mount option.

2013-02-02 Thread Goffredo Baroncelli
, - subvol_rootid, fs_devices); + fs_devices); if (error) { kfree(subvol_name); return ERR_PTR(error); -- 1.7.10.4 -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64

[BTRFS-PROGS][PATCH] remove __attribute_const__ from raid6.c

2013-02-02 Thread Goffredo Baroncelli
--enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.7.2 (Debian 4.7.2-5) The patch below fixed that: Signed-off-by: Goffredo Baroncelli kreij...@inwind.it

Re: [PATCH] Btrfs-progs: Exit if not running as root

2013-01-25 Thread Goffredo Baroncelli
be prevented from running the program without the root/non-root status of it being relevant. [1] Passing user_subvol_rm_allowed in option -- 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

Re: [PATCH 01/10] Btrfs-progs: move open_file_or_dir() to utils.c

2013-01-24 Thread Goffredo Baroncelli
programs. I checked the debian package, and to me seems that there is no need of {btrfsctl,btrfs-vol,btrfs-show} BR Goffredo -- 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

Re: [PATCH 01/10] Btrfs-progs: move open_file_or_dir() to utils.c

2013-01-24 Thread Goffredo Baroncelli
On 01/24/2013 08:42 PM, Eric Sandeen wrote: On 1/24/13 11:57 AM, Goffredo Baroncelli wrote: On 01/24/2013 10:23 AM, Stefan Behrens wrote: On Wed, 23 Jan 2013 22:39:29 -0600, Eric Sandeen wrote: instead of renaming keeping the btrfsctl.c copy There is a new momentum to improve the Btrfs

Re: [PATCH 05/13] Add btrfs-show-super

2013-01-21 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 5F7D

Re: [PATCH 00/11 V3] add show command to the subvol sub command

2013-01-14 Thread Goffredo Baroncelli
: 256 Generation (Gen): 75774 Gen at creation:0 Parent: 5 Top Level: 5 Snapshot(s): I expected also from test1 and test2 something. BR G.Baroncelli -- gpg @keyserver.linux.it: Goffredo Baroncelli

[PATCH][v2] Btrfs: wipe all the superblock [redhat bugzilla 889888]

2013-01-09 Thread Goffredo Baroncelli
-by: Goffredo Baroncelli kreij...@inwind.it ChangeLog V1 - V2Removed the three different superblock and put all the info in the same array (Thanks to Karel Zak for the suggestion) -- Btrfs has three superblock. The first one is placed

Re: Btrfs: wipe all the superblock [redhat bugzilla 889888]

2013-01-08 Thread Goffredo Baroncelli
Hi Karel, On 01/08/2013 07:01 PM, Karel Zak wrote: On Sun, Jan 06, 2013 at 07:28:55PM +0100, Goffredo Baroncelli wrote: If the first superblock is valid except that the magic field is zeroed, btrfs skips the check of the other superblocks. If the first superblock is fully invalid, btrfs

Re: Btrfs: wipe all the superblock [redhat bugzilla 889888]

2013-01-08 Thread Goffredo Baroncelli
Hi Günter, On 01/08/2013 04:48 PM, Günter Gersdorf wrote: Am 06.01.2013 19:28, schrieb Goffredo Baroncelli: You can pull the change from: http://cassiopea.homelinux.net/git/util-linux.git from the branch btrfs-wipefs After applying this patch, findfs and blkid didn't find

Re: Btrfs: wipe all the superblock [redhat bugzilla 889888]

2013-01-07 Thread Goffredo Baroncelli
Hi David, On 01/07/2013 05:33 PM, David Sterba wrote: On Sun, Jan 06, 2013 at 07:28:55PM +0100, Goffredo Baroncelli wrote: Currently wipefs doesn't clear all the superblock of btrfs. Only the first one is cleared. Btrfs has three superblocks. The first one is placed at 64KB, the second

Re: Btrfs: wipe all the superblock [redhat bugzilla 889888]

2013-01-07 Thread Goffredo Baroncelli
would allow more than three super-block, in the 7TB case, the super-block at 1TB would appeared 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

Re: Option LABEL

2013-01-06 Thread Goffredo Baroncelli
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 5F7D 17B2 0EDA 9B37 8B82 E0B5 -- To unsubscribe from

Re: BUG btrfs fi show displays stale btrfs volume

2013-01-06 Thread Goffredo Baroncelli
to zero also the other superblocks. I will start to update the wiki; then I will give a look to wipefs to improve it. 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

Re: BUG btrfs fi show displays stale btrfs volume

2013-01-06 Thread Goffredo Baroncelli
On 01/06/2013 05:26 PM, Goffredo Baroncelli wrote: Hi Chris [...] I will start to update the wiki; then I will give a look to wipefs to improve it. Hello I updated the wiki page: https://btrfs.wiki.kernel.org/index.php/Problem_FAQ#What_if_I_don.27t_have_wipefs_at_hand.3F - What

Btrfs: wipe all the superblock [redhat bugzilla 889888]

2013-01-06 Thread Goffredo Baroncelli
btrfs filesystem show /dev/loop0 Btrfs Btrfs v0.19 Br G.Baroncelli You can pull the change from: http://cassiopea.homelinux.net/git/util-linux.git from the branch btrfs-wipefs Signed-off-by: Goffredo Baroncelli kreij...@inwind.it -- From

Re: [RFC PATCH v9 2/2] Btrfs: set/change the label of a mounted file system

2013-01-06 Thread Goffredo Baroncelli
Reviewed-by: Goffredo Baroncelli kreij...@inwind.it On 01/05/2013 03:48 AM, Jeff Liu wrote: With this new ioctl(2) BTRFS_IOC_SET_FSLABEL, we can set/change the label of a mounted file system. Signed-off-by: Jie Liu jeff@oracle.com Signed-off-by: Anand Jain anand.j...@oracle.com

Re: [RFC PATCH v9 1/2] Btrfs: Add a new ioctl to get the label of a mounted file system

2013-01-06 Thread Goffredo Baroncelli
(BTRFS_IOCTL_MAGIC, 52, \ struct btrfs_ioctl_get_dev_stats) #endif -- 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: btrfs df confusion

2012-12-27 Thread Goffredo Baroncelli
/thread/nol2gcjky4cxndhv#query:+page:1+mid:xqnyqp7slb7rrach+state:results -- 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: [RFC PATCH v7 1/2] Btrfs: Add a new ioctl to get the label of a mounted file system

2012-12-24 Thread Goffredo Baroncelli
Hi Jeff, On 12/24/2012 09:07 AM, Jeff Liu wrote: On 12/22/2012 01:36 AM, Goffredo Baroncelli wrote: On 12/21/2012 07:42 AM, Jeff Liu wrote: [...] I don't think we should replace strlen() with strnlen() since it's totally wrong if the length of label is more than BTRFS_LABEL_SIZE -1, we can

Re: incomplete erase of btrfs with wipefs

2012-12-24 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: [RFC PATCH v7 1/2] Btrfs: Add a new ioctl to get the label of a mounted file system

2012-12-21 Thread Goffredo Baroncelli
On 12/21/2012 07:42 AM, Jeff Liu wrote: Hi Goffredo, On 12/21/2012 04:18 AM, Goffredo Baroncelli wrote: HI Jeff, On 12/20/2012 09:43 AM, Jeff Liu wrote: With the new ioctl(2) BTRFS_IOC_GET_FSLABEL we can fetch the label of a mounted file system. Signed-off-by: Jie Liu jeff

Re: [RFC PATCH v7 1/2] Btrfs: Add a new ioctl to get the label of a mounted file system

2012-12-20 Thread Goffredo Baroncelli
BTRFS_IOC_GET_FSLABEL _IOR(BTRFS_IOCTL_MAGIC, 49, \ +char[BTRFS_LABEL_SIZE]) #define BTRFS_IOC_GET_DEV_STATS _IOWR(BTRFS_IOCTL_MAGIC, 52, \ struct btrfs_ioctl_get_dev_stats) #endif -- gpg @keyserver.linux.it: Goffredo Baroncelli

Re: [RFC PATCH v7 2/2] Btrfs: Add a new ioctl to set/change the label of a mounted file system

2012-12-20 Thread Goffredo Baroncelli
On 12/20/2012 09:43 AM, Jeff Liu wrote: With the new ioctl(2) BTRFS_IOC_SET_FSLABEL, we can set/change the label of a mounted file system. Signed-off-by: Jie Liu jeff@oracle.com Signed-off-by: Anand Jain anand.j...@oracle.com Cc: Miao Xie mi...@cn.fujitsu.com Cc: Goffredo Baroncelli

Re: [RFC PATCH V6 2/2] Btrfs: Add a new ioctl to change the label of a mounted file system

2012-12-18 Thread Goffredo Baroncelli
, label, BTRFS_LABEL_SIZE-1) ? 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

Re: How to remove btrfs information

2012-11-17 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 00/26] Btrfs: Add device replace code

2012-11-08 Thread Goffredo Baroncelli
Hi Stefan, great work. However I have a suggestion: what about putting all the command under 'device' sub commands: something like: - btrfs device replace old new /path - btrfs device status /path Where btrfs device status would show only the status of the replacing operation; but in the

Re: [PATCH 00/26] Btrfs: Add device replace code

2012-11-08 Thread Goffredo Baroncelli
On 11/08/2012 06:31 PM, Stefan Behrens wrote: On Thu, 8 Nov 2012 13:50:19 +0100, Goffredo Baroncelli wrote: [...] I think that so replace would be the natural extension to the add and delete subcommands. btrfs device replace old new path was also my first idea. It used to be like

Re: [PATCH][BTRFS-PROGS] Enhance btrfs fi df

2012-11-03 Thread Goffredo Baroncelli
On 11/02/2012 08:05 PM, Gabriel wrote: On Fri, 02 Nov 2012 13:02:32 +0100, Goffredo Baroncelli wrote: On 2012-11-02 12:18, Martin Steigerwald wrote: [...] We could use Chunk(s) capacity instead of total/size ? I would like an opinion from a english people point of view.. This is easy to fix

Re: [PATCH][BTRFS-PROGS] Enhance btrfs fi df

2012-11-03 Thread Goffredo Baroncelli
/dev/dm-4 1.00TB- 2x 100.00MB 4.00MB -300.00MB GB P.S: The raid5 is composed by (4+1) x 1T and (2+1) x 0.5TB, supposing the disks as 2x 1.5TB and 3x2Tb. -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA

Re: [PATCH][BTRFS-PROGS] Enhance btrfs fi df

2012-11-03 Thread Goffredo Baroncelli
On 11/02/2012 11:06 PM, Hugo Mills wrote: non-integer with the RAID-5/6 code (which is due Real Soon Now). Hi Hugo, do you have more information about raid ? When it will land on the btrfs earth ? :-) -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5

[PATCH][BTRFS-PROGS] Enhance btrfs fi df

2012-11-02 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

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

2012-11-02 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 2/8] Create the man page entry for the command btrfs fi df

2012-11-02 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 9222580..27d0160 100644 --- a/man

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

2012-11-02 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- cmds-fi-disk_usage.c | 662 +- cmds-fi-disk_usage.h |2 + cmds-filesystem.c|2 + utils.c | 15 ++ utils.h

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

2012-11-02 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 | 140 ++ cmds-fi-disk_usage.h |4 ++ 3 files changed, 147 insertions(+) diff --git

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

2012-11-02 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 eabf0a8..a411ff8 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -44,6

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

2012-11-02 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 27d0160..eabf0a8 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8

[PATCH 4/8] Move scrub_fs_info() and scrub_dev_info() in utils.c

2012-11-02 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Move scrub_fs_info() and scrub_dev_info() in utils.c because these will be used by the command btrfs filesystem disk-usage and btrfs device disk-usage. Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- cmds-scrub.c | 87

[PATCH 3/8] Move open_file_or_dir() in utils.c

2012-11-02 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Due to the moving of the scrub_fs_info() and scrub_device_info() in utils.h the function open_file_or_dir() is moved in utils.c too, in order to avoid the including of commands.h. Moreover in btrfsctl.c the function open_file_or_dir() is renamed

Re: [PATCH][BTRFS-PROGS] Enhance btrfs fi df

2012-11-02 Thread Goffredo Baroncelli
an opinion from a english people point of view.. GB -- 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

[PATCH][BTRFS-PROGS][V1] btrfs-show-super: a tool to dump superblock

2012-11-02 Thread Goffredo Baroncelli
://cassiopea.homelinux.net/git/btrfs-progs-unstable.git branch super-block-dump -- 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

[PATCH] Add btrfs-show-super

2012-11-02 Thread Goffredo Baroncelli
Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- Makefile |5 +- btrfs-show-super.c | 284 2 files changed, 288 insertions(+), 1 deletion(-) create mode 100644 btrfs-show-super.c diff --git a/Makefile b/Makefile index

Re: [PATCH][BTRFS-PROGS] Enhance btrfs fi df

2012-11-02 Thread Goffredo Baroncelli
On 11/02/2012 08:05 PM, Gabriel wrote: On Fri, 02 Nov 2012 13:02:32 +0100, Goffredo Baroncelli wrote: On 2012-11-02 12:18, Martin Steigerwald wrote: Metadata, DUP is displayed as 3,50GB on the device level and as 1,75GB in total. I understand the logic behind this, but this could be a bit

[PATCH][BTRFS-PROGS][V2] btrfs-show-super: a tool to dump superblock

2012-11-02 Thread Goffredo Baroncelli
://cassiopea.homelinux.net/git/btrfs-progs-unstable.git branch super-block-dump Changelog: v1-v2 Patch cleanup (removed unnecessary spaces to be compliant to the kernel coding style) -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610

[PATCH] Add btrfs-show-super

2012-11-02 Thread Goffredo Baroncelli
Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- Makefile |5 +- btrfs-show-super.c | 284 2 files changed, 288 insertions(+), 1 deletion(-) create mode 100644 btrfs-show-super.c diff --git a/Makefile b/Makefile index

Re: [Request for review] [RFC] Add label support for snapshots and subvols

2012-11-01 Thread Goffredo Baroncelli
that these labels could be changed (like xattr). ? These info should be associated to the inode of the subvolume root. We could use a specific name in the system namespace, like system.btrfslabel even tough I didn't see any advantage to using the user namespace... -- gpg @keyserver.linux.it: Goffredo

Re: [PATCH v5 1/3] Btrfs-progs: move open_file_or_dir() to utils.c

2012-10-31 Thread Goffredo Baroncelli
the issue of the perror, I renamed in btrfsctl.c the function open_file_or_dir() in btrfsctl_open_file_or_dir() in order to avoid name collision. G.Baroncelli -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5

Re: [RFC][V2] New attempt to a better btrfs fi df

2012-10-30 Thread Goffredo Baroncelli
On 2012-10-30 10:42, Michael Kjörling wrote: On 29 Oct 2012 23:21 +0100, from kreij...@gmail.com (Goffredo Baroncelli): Hi all, [...] One thing, though; what is the difference between unused and unallocated? If there is no difference, I feel the same word should be used throughout. I had

[PATCH][BTRFS-PROGS][V3] Update to parse_size()

2012-10-29 Thread Goffredo Baroncelli
the patch from http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git branch parse_size Signed-off-by: Goffredo Baroncelli kreij...@inwind.it Changelog: V3: Corrected few code style issues; replace a wrong prefix with suffix in the man page. Added Signed-off-by in every patch

[PATCH 2/4] parse_size(): replace atoll() with strtoull()

2012-10-29 Thread Goffredo Baroncelli
Replace the function atoll with strtoull(); Check that the suffix for the parse_size() input is of only one character. Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- utils.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/utils.c b

[PATCH 4/4] Update the man page with the new prefixes.

2012-10-29 Thread Goffredo Baroncelli
Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- man/btrfs.8.in |3 +++ man/mkfs.btrfs.8.in |3 +++ 2 files changed, 6 insertions(+) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 9222580..3564e6a 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -184,6 +184,9

[PATCH 3/4] parse_size(): add new suffixes

2012-10-29 Thread Goffredo Baroncelli
Add new suffixes in parse_size() function. New suffixes are: T as terabyte, P as petabyte, E as exabyte. Note these units are multiply of 2 . Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- utils.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/utils.c b/utils.c index

[PATCH 1/4] Move parse_size() to utils.[hc]

2012-10-29 Thread Goffredo Baroncelli
Move the function from cmds-filesystem.c and mkfs.c to utils.c Signed-off-by: Goffredo Baroncelli kreij...@inwind.it --- cmds-filesystem.c | 26 -- mkfs.c| 31 --- utils.c | 26 ++ utils.h

Re: [PATCH] Btrfs-progs: add btrfs-show-super tool

2012-10-29 Thread Goffredo Baroncelli
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2012-10-29 12:00, Stefan Behrens wrote: On Tue, 23 Oct 2012 21:45:08 +0200, Goffredo Baroncelli wrote: On 2012-10-19 09:18, Stefan Behrens wrote: Just a small program to print the fields of a super block. Signed-off-by: Stefan Behrens sbehr

[RFC][V2] New attempt to a better btrfs fi df

2012-10-29 Thread Goffredo Baroncelli
the BTRFS_IOC_TREE_SEARCH to get the chunk info; so that is unavoidable) - -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG

Re: [RFC] New attempt to a better btrfs fi df

2012-10-28 Thread Goffredo Baroncelli
System,RAID1: 8.00MB Plus we can have also Data+Metadata... 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

Re: [RFC] New attempt to a better btrfs fi df

2012-10-28 Thread Goffredo Baroncelli
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2012-10-25 21:21, Goffredo Baroncelli wrote: Hi all, this is a new attempt to improve the output of the command btrfs fi df. Below you can see another iteration. I tried to address all the cwillu requests, which to me make sense. I thought

Re: Naming of (bootable) subvolumes

2012-10-28 Thread Goffredo Baroncelli
it would be suitable to be used as root filesystem. -- 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: [RFC] New attempt to a better btrfs fi df

2012-10-28 Thread Goffredo Baroncelli
On 2012-10-28 11:33, Martin Steigerwald wrote: Am Sonntag, 28. Oktober 2012 schrieb Goffredo Baroncelli: [...] $ sudo ./btrfs fi df /mnt/btrfs1/ Path: /mnt/btrfs1 Summary: Disk_size: 21.00GB Disk_allocated: 1.83GB Disk_unallocated:19.17GB Used

Re: [RFC] New attempt to a better btrfs fi df

2012-10-28 Thread Goffredo Baroncelli
On 2012-10-28 11:38, Martin Steigerwald wrote: Am Sonntag, 28. Oktober 2012 schrieb Goffredo Baroncelli: On 2012-10-28 00:38, Hugo Mills wrote: On Sun, Oct 28, 2012 at 12:30:44AM +0200, Martin Steigerwald wrote: Am Samstag, 27. Oktober 2012 schrieb Michael Kjörling: On 27 Oct 2012 18:43 +0200

Re: [RFC] New attempt to a better btrfs fi df

2012-10-28 Thread Goffredo Baroncelli
On 2012-10-28 12:18, Michael Kjörling wrote: On 28 Oct 2012 11:59 +0100, from kreij...@gmail.com (Goffredo Baroncelli): On 2012-10-28 11:38, Martin Steigerwald wrote: But still if if can be arbitrarily long due to that per object replication config, a vertical output might and leaving

[RFC] New attempt to a better btrfs fi df

2012-10-25 Thread Goffredo Baroncelli
2.69GB /dev/vdd 2.24GB - -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6 5F7D 17B2 0EDA 9B37 8B82 E0B5 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http

Re: [PATCH 5/5] Update the man page with the new prefixes.

2012-10-25 Thread Goffredo Baroncelli
On 2012-10-25 18:13, David Sterba wrote: Hi, one minor typo On Tue, Oct 23, 2012 at 07:51:55PM +0200, Goffredo Baroncelli wrote: --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -184,6 +184,9 @@ defragment operations. \fB-t size\fP defragment only files at least \fIsize\fR bytes big

Re: device delete, error removing device [SOLVED]

2012-10-25 Thread Goffredo Baroncelli
that not everything is working. The complaints raise the attention level. -- 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

Re: [RFC] New attempt to a better btrfs fi df

2012-10-25 Thread Goffredo Baroncelli
the_underscores_between_all_the_words; it doesn't make parsing significantly easier, and it's an eyesore) :-) we can work on that. * Three coats of blue paint plus a clear-coat is the One True Paint-Job. . -- gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it Key fingerprint BBF5 1610 0B64 DAC6

Re: [RFC] New attempt to a better btrfs fi df

2012-10-25 Thread Goffredo Baroncelli
want a confirmation. 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

Re: device delete, error removing device [SOLVED]

2012-10-24 Thread Goffredo Baroncelli
On 2012-10-24 21:13, Chris Murphy wrote: On Oct 24, 2012, at 12:06 PM, Goffredo Baroncelli kreij...@gmail.com wrote: I was able to reproduce it: - I filled the filesystem until I got No space left on device. I didn't even need to get that far. So it seems that I spread all

[PATCH][BTRFS-PROGS][V2] Update to parse_size()

2012-10-23 Thread Goffredo Baroncelli
the patch from http://cassiopea.homelinux.net/git/btrfs-progs-unstable.git branch parse_size Signed-off-by: Goffredo Baroncelli kreij...@inwind.it Changelog: V1: avoid to change the parse_size argument; better check of a wrong suffix; force strtoull to use a decimal base

[PATCH 2/5] parse_size(): replace atoll() with strtoull()

2012-10-23 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Replace the function atoll with strtoull() --- utils.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index 705be7b..732c782 100644 --- a/utils.c +++ b/utils.c @@ -1243,6 +1243,6 @@ u64 parse_size(char *s

[PATCH 5/5] Update the man page with the new prefixes.

2012-10-23 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it --- man/btrfs.8.in |3 +++ man/mkfs.btrfs.8.in |3 +++ 2 files changed, 6 insertions(+) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 9222580..33bd78d 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -184,6 +184,9 @@ defragment

[PATCH 4/5] parse_size(): add new suffixes

2012-10-23 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Add new suffixes in parse_size() function. New suffixes are: T as terabyte, P as petabyte, E as exabyte. Note these units are multiply of 2 . --- utils.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/utils.c b/utils.c index e61cdea

[PATCH 3/5] parse_size(): check for invalid suffix

2012-10-23 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Check that the suffix for the parse_size() input is of only one character. --- utils.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/utils.c b/utils.c index 732c782..e61cdea 100644 --- a/utils.c +++ b

[PATCH 1/5] Move parse_size() to utils.[hc]

2012-10-23 Thread Goffredo Baroncelli
From: Goffredo Baroncelli kreij...@inwind.it Move the function from cmds-filesystem.c and mkfs.c to utils.c --- cmds-filesystem.c | 26 -- mkfs.c| 31 --- utils.c | 26 ++ utils.h

<    1   2   3   4   5   6   7   8   9   10   >