[PATCH 3/3] Btrfs-progs: cmd option to show or set the subvol label

2012-11-30 Thread Anand jain
From: Anand Jain Signed-off-by: Anand Jain --- cmds-subvolume.c | 37 + man/btrfs.8.in |6 ++ 2 files changed, 43 insertions(+), 0 deletions(-) diff --git a/cmds-subvolume.c b/cmds-subvolume.c index e3cdb1e..759eade 100644 --- a/cmds-subvolume.c

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

2012-11-30 Thread Anand jain
From: Anand Jain The definition of the function open_file_or_dir() is moved from common.c to utils.c in order to be able to share some common code between scrub and the device stats in the following step. That common code uses open_file_or_dir(). Since open_file_or_dir() makes use of the function

[PATCH 2/3] Btrfs-progs: add attribute label for subvol and snapshot

2012-11-30 Thread Anand jain
From: Anand Jain Signed-off-by: Anand Jain --- btrfslabel.c | 38 ++ btrfslabel.h |4 +++- ctree.h |1 + 3 files changed, 42 insertions(+), 1 deletions(-) diff --git a/btrfslabel.c b/btrfslabel.c index cb142b0..8c424e5 100644 --- a/btrfslabel.

[PATCH 0/3] Add subvol and snapshot attribute label

2012-11-30 Thread Anand jain
From: Anand Jain This patch set creates the attribute user.label in the root space, for the subvol and snapshots. Command to use will be btrfs subvol label [label] This patch is only for your kind review. And to evaluate both the approaches, as found during the survey. Thanks Anand Jain

Performance with lots of small files

2012-11-30 Thread M G Berberich
Hello, how would btrfs perform with 200M files on a 3TByte-disk with up to 18K files in a directory? Ext4 performs very, very poor, would btrfs do better? MfG bmg -- „Des is völlig wurscht, was heut beschlos- | M G Berberich sen wird: I bin sowieso dagegn!“ | berbe...@

[PATCH] Btrfs: put delayed iput tracking list inside in-memory inode

2012-11-30 Thread Liu Bo
This can save us a dynamic memory allocation/free. Signed-off-by: Liu Bo --- fs/btrfs/btrfs_inode.h |3 +++ fs/btrfs/inode.c | 36 +--- 2 files changed, 16 insertions(+), 23 deletions(-) diff --git a/fs/btrfs/btrfs_inode.h b/fs/btrfs/btrfs_inode.h ind

[PATCH] Btrfs: parse parent 0 into correct value in tracepoint

2012-11-30 Thread Liu Bo
Value 0 is not a tree id, so besides an upper limit, a lower limit is necessary as well while parsing root types of tracepoint. Signed-off-by: Liu Bo --- include/trace/events/btrfs.h |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/include/trace/events/btrfs.h b/include

Re: [PATCH] Btrfs: remove warning check in io_ctl_map_page

2012-11-30 Thread Wang Sheng-Hui
On 2012年11月30日 17:02, Liu Bo wrote: > On Fri, Nov 30, 2012 at 02:02:26PM +0800, shh...@gmail.com wrote: >> From: Wang Sheng-Hui >> >> io_ctl_map_page is called by many functions in free-space-cache. >> In some scenarios, the ->cur is not null, e.g. io_ctl_add_entry. >> Remove the check here. > >

[PATCH] Fix getopt on arm platforms

2012-11-30 Thread Lluís Batlle i Rossell
There, 'char' is unsigned, so once assigned '-1' from getopt, it gets the value 255. Then, it compared to '-1' gives false. --- cmds-scrub.c | 2 +- cmds-send.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmds-scrub.c b/cmds-scrub.c index 24be20f..c972e3b 100644 --- a/c

Re: [PATCH] Btrfs: remove warning check in io_ctl_map_page

2012-11-30 Thread Liu Bo
On Fri, Nov 30, 2012 at 02:02:26PM +0800, shh...@gmail.com wrote: > From: Wang Sheng-Hui > > io_ctl_map_page is called by many functions in free-space-cache. > In some scenarios, the ->cur is not null, e.g. io_ctl_add_entry. > Remove the check here. Hi Wang, Seems to be impossible according to