[PATCH 3/3] xfstests: Fix setting FSTYP automatically

2014-04-08 Thread Lukas Czerner
iable as a fallback in the case that HOSTOS does not work and move the check to common/config. Signed-off-by: Lukas Czerner --- check | 8 common/config | 18 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/check b/check index 8f1a6e1..ed1834d 10

[PATCH 1/3] xfstests: Fix SCRATCH_DEV_POOL handling

2014-04-08 Thread Lukas Czerner
it would complain on the second run that SCRATCH_DEV is already set. Fix it by making sure that we call get_next_config() only once if there are no sections in the config file. Also make sure that we export SCRATCH_DEV in the case we're deducing it from SCRATCH_DEV_POOL. Signed-off-by:

[PATCH 2/3] xfstests: Unset SCRATCH_DEV when deduced from SCRATCH_DEV_POOL

2014-04-08 Thread Lukas Czerner
In the case that we already have sections in the config file we have to make sure that we unset SCRATCH_DEV if it has been deduced from the SCRATCH_DEV_POOL so that it does not complain about SCRATCH_DEV in this case. Signed-off-by: Lukas Czerner --- common/config | 8 +++- 1 file changed

[PATCH 3/3] Btrfs-progs: List all subvolumes by default

2012-12-11 Thread Lukas Czerner
about file system subvolumes including subvolume nesting without the need to parse additional information. Signed-off-by: Lukas Czerner --- btrfs-list.c |8 btrfs-list.h |2 +- cmds-subvolume.c |7 --- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/btrf

[PATCH 2/3] Btrfs-progs: add '-o' option into subvolume list command

2012-12-11 Thread Lukas Czerner
This commit introduces new option '-o' to list only subvolumes under the specified path. This does not change subvolume list behaviour. It has been default in the past and it is even with this commit. Signed-off-by: Lukas Czerner --- cmds-subvolume.c | 11 --- man/btrfs.8.i

[PATCH 1/3] Btrfs-progs: move path modification to filters

2012-12-11 Thread Lukas Czerner
ruction in resolve_root(). This gives us more flexibility in formatting path output. Signed-off-by: Lukas Czerner --- btrfs-list.c | 32 +++- btrfs-list.h |1 + cmds-subvolume.c | 11 +-- man/btrfs.8.in |3 ++- 4 files changed, 35 inserti

[PATCH] btrfs: get the device in write mode when deleting it

2012-12-07 Thread Lukas Czerner
When we're deleting the device we should get it in write mode since we're going to re-write the super block magic on that device. And it should fail if the device is read-only. Signed-off-by: Lukas Czerner --- fs/btrfs/volumes.c |2 +- 1 files changed, 1 insertions(+), 1 deletion

[PATCH] btrfs: Notify udev when removing device

2012-12-06 Thread Lukas Czerner
J_CHANGE event to the bdev kobject after successful device removal. Note that this does not affect device addition, because we will open the device prior the addition from userspace and udev will notice that and reread the device afterwards. Signed-off-by: Lukas Czerner --- fs/btrfs/volumes.

[PATCH] btrfs: Return EINVAL when length to trim is less than FSB

2012-10-16 Thread Lukas Czerner
Currently if len argument in btrfs_ioctl_fitrim() is smaller than one FSB we will continue and finally return 0 bytes discarded. However if the length to discard is smaller then file system block we should really return EINVAL. Signed-off-by: Lukas Czerner --- fs/btrfs/ioctl.c |3 ++- 1

Re: getdents - ext4 vs btrfs performance

2012-03-14 Thread Lukas Czerner
On Wed, 14 Mar 2012, Ted Ts'o wrote: > On Wed, Mar 14, 2012 at 09:12:02AM +0100, Lukas Czerner wrote: > > I kind of like the idea about having the separate btree with inode > > numbers for the directory reading, just because it does not affect > > allocation policy nor t

Re: getdents - ext4 vs btrfs performance

2012-03-14 Thread Lukas Czerner
On Wed, 14 Mar 2012, Yongqiang Yang wrote: > On Wed, Mar 14, 2012 at 4:12 PM, Lukas Czerner wrote: > > On Tue, 13 Mar 2012, Ted Ts'o wrote: > > > >> On Tue, Mar 13, 2012 at 04:22:52PM -0400, Phillip Susi wrote: > >> > > >> > I think a

Re: getdents - ext4 vs btrfs performance

2012-03-14 Thread Lukas Czerner
On Tue, 13 Mar 2012, Ted Ts'o wrote: > On Tue, Mar 13, 2012 at 04:22:52PM -0400, Phillip Susi wrote: > > > > I think a format change would be preferable to runtime sorting. > > Are you volunteering to spearhead the design and coding of such a > thing? Run-time sorting is backwards compatible, a

Re: getdents - ext4 vs btrfs performance

2012-03-09 Thread Lukas Czerner
On Wed, 29 Feb 2012, Jacek Luczak wrote: > Hi All, > > /*Sorry for sending incomplete email, hit wrong button :) I guess I > can't use Gmail */ > > Long story short: We've found that operations on a directory structure > holding many dirs takes ages on ext4. > > The Question: Why there's that h

Re: getdents - ext4 vs btrfs performance

2012-02-29 Thread Lukas Czerner
On Wed, 29 Feb 2012, Chris Mason wrote: > On Wed, Feb 29, 2012 at 02:31:03PM +0100, Jacek Luczak wrote: > > Hi All, > > > > Long story short: We've found that operations on a directory structure > > holding many dirs takes ages on ext4. > > > > The Question: Why there's that huge difference in e

Re: [PATCH] xfstests: fix 251's cp -axT problem

2012-01-11 Thread Lukas Czerner
On Wed, 11 Jan 2012, Christoph Hellwig wrote: > On Tue, Jan 10, 2012 at 07:39:20PM +0800, Liu Bo wrote: > > When I ran xfstests, 251 got failed cause "cp -axT" did not work as wish: > > cp: cannot overwrite directory `/mnt/scratch/1' with non-directory > > > > With this patch, 251 has passed. >

Re: System Storage Manager

2011-12-07 Thread Lukas Czerner
On Wed, 7 Dec 2011, Pádraig Brady wrote: > On 12/07/2011 10:20 AM, Lukas Czerner wrote: > > Hello everyone, > > > > I would like to introduce to you a new tool called System Storage > > Manager (ssm). It is supposed to provide easy to use command line > > inter

System Storage Manager

2011-12-07 Thread Lukas Czerner
Hello everyone, I would like to introduce to you a new tool called System Storage Manager (ssm). It is supposed to provide easy to use command line interface to manage your storage using various technologies like lvm, btrfs, encrypted volumes and possibly more. Background -- In more soph

[PATCH] btrfs: return EINVAL if start > total_bytes in fitrim ioctl

2011-09-05 Thread Lukas Czerner
+len is equal to the file system size in the worst case. Signed-off-by: Lukas Czerner --- fs/btrfs/ioctl.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 970977a..ad890ee 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c

Re: [PATCH 5/5] btrfs: use fs netlink interface for ENOSPC conditions

2011-08-18 Thread Lukas Czerner
On Thu, 18 Aug 2011, David Sterba wrote: > Hi, > > I see you are mixing a cleanup while adding a new feature. > > On Thu, Aug 18, 2011 at 02:18:26PM +0200, Lukas Czerner wrote: > > Register fs netlink interface and send proper warning if ENOSPC is > > encountered.

[PATCH 5/5] btrfs: use fs netlink interface for ENOSPC conditions

2011-08-18 Thread Lukas Czerner
Register fs netlink interface and send proper warning if ENOSPC is encountered. Note that we differentiate between enospc for metadata and enospc for data. Signed-off-by: Lukas Czerner Cc: Chris Mason Cc: linux-btrfs@vger.kernel.org --- fs/btrfs/extent-tree.c | 13 ++--- fs/btrfs

Re: [PATCH 2/8] ext4: remove i_alloc_sem abuse

2011-06-21 Thread Lukas Czerner
On Tue, 21 Jun 2011, Lukas Czerner wrote: > On Mon, 20 Jun 2011, Christoph Hellwig wrote: > > > Add a new rw_semaphore to protect page_mkwrite against truncate. Previous > > i_alloc_sem was abused for this, but it's going away in this series. > > > &g

Re: [PATCH 2/8] ext4: remove i_alloc_sem abuse

2011-06-21 Thread Lukas Czerner
On Mon, 20 Jun 2011, Christoph Hellwig wrote: > Add a new rw_semaphore to protect page_mkwrite against truncate. Previous > i_alloc_sem was abused for this, but it's going away in this series. > > Signed-off-by: Christoph Hellwig > > Index: linux-2.6/fs/ext4/inode.c > =

Re: [PATCH] Btrfs: Batched discard support for btrfs

2011-02-24 Thread Lukas Czerner
On Thu, 24 Feb 2011, Li Dongyang wrote: > On Monday, February 21, 2011 09:37:21 PM Lukas Czerner wrote: > > On Mon, 21 Feb 2011, Li Dongyang wrote: > > > Here is batched discard support for btrfs, several changes were made: > > > > > > btrfs_t

Re: [PATCH] Btrfs: Batched discard support for btrfs

2011-02-21 Thread Lukas Czerner
On Mon, 21 Feb 2011, Li Dongyang wrote: > Here is batched discard support for btrfs, several changes were made: > > btrfs_test_opt(root, DISCARD) is moved from btrfs_discard_extent > to callers, as we still want to trim the fs even it's not mounted > with -o discard. > btrfs_discard_extent now re