Re: [PATCH 1/3] xfstests 264: add a copy and reserve test

2011-11-02 Thread Christoph Hellwig
On Thu, Nov 03, 2011 at 11:08:55AM +0800, WuBo wrote: > This test is a stress test. It creates a set of threads for coping small > files > into disk. I use a 2G disk for test, the ENOSPC arises usually but the disk > is > not full under kenerl 3.0 with intel64. It seems like you really want to

[PATCH 3/3] xfstests 266: add a write and reserve test

2011-11-02 Thread WuBo
This test is for write-posix test. If writing a file when the disk is almost full, the posix wants the call to write as much as possible but not none. quote the POSIX: If a write() requests that more bytes be written than there is room for (for example, [XSI] [Option Start] the process' file size

[PATCH 2/3] xfstests 265: add a prealloc and reserve test

2011-11-02 Thread WuBo
This test is for preallocation test. If the disk is full, just with a prealloc file has some free space that prealloc early. We need to check whether the write to the free space is success or not. Signed-off-by: Wu Bo --- 265 | 107 +++

[PATCH 1/3] xfstests 264: add a copy and reserve test

2011-11-02 Thread WuBo
This test is a stress test. It creates a set of threads for coping small files into disk. I use a 2G disk for test, the ENOSPC arises usually but the disk is not full under kenerl 3.0 with intel64. Signed-off-by: Wu Bo --- 264 | 158

[PATCH 0/3] xfstests: Add a group of reservation space test

2011-11-02 Thread WuBo
This patch set add a group of reservation space test. Especailly for btrfs. It includes three parts: copy workload, prealloc and write posix. For test 264, I hope it's usefull for Josef's reserve improve work. For test 265 and 266, the current btrfs is not pass yet. TO avoid fill the huge disk, I

Re: [PATCH v8 1/8] btrfs: added helper functions to iterate backrefs

2011-11-02 Thread Li Zefan
(as this is going to be merged into mainline..) > +/* > + * calls iterate() for every inode that references the extent identified by > + * the given parameters. will use the path given as a parameter and return it > + * released. > + * when the iterator function returns a non-zero value, iteration

WARNING: at fs/btrfs/free-space-cache.c:305

2011-11-02 Thread Tsutomu Itoh
In integration-scrub branch, following warning messages were displayed by running xfstests. # btrfs fi sh /dev/sdd4 Label: none uuid: 8f28d85c-e37c-4c1b-adef-2627ca59be78 Total devices 2 FS bytes used 31.49MB devid1 size 9.31GB used 9.31GB path /dev/sdd4 devid2 siz

Re: Warnings and crash

2011-11-02 Thread Chris Mason
On Thu, Nov 03, 2011 at 12:02:31AM +0100, David Sterba wrote: > This one happened again, exactly same sequence of warnings and the crash > at the end (same stack traces). It was in integration-scrub branch, ie. > with all fixes on top. > > (I have captured sysrq-w, /proc/pid/stack of all processes

Re: Warnings and crash

2011-11-02 Thread David Sterba
This one happened again, exactly same sequence of warnings and the crash at the end (same stack traces). It was in integration-scrub branch, ie. with all fixes on top. (I have captured sysrq-w, /proc/pid/stack of all processes and have the dmesg logs if anybody is interested.) david -- To unsubs

Re: Fwd: [PATCH] Btrfs-progs: mention libattr dependency in INSTALL file

2011-11-02 Thread Andrew Benton
On Wed, 2 Nov 2011 20:52:28 + Leonidas Spyropoulos wrote: > This might interest you. Thanks > -- Forwarded message -- > From: Ilya Dryomov > Date: Wed, Nov 2, 2011 at 8:42 PM > Subject: Re: [PATCH] Btrfs-progs: mention libattr dependency in INSTALL file > To: linux-btrfs@vg

Re: [BTRFS-PROG][PATCH 1/7] Correct xstrip() function

2011-11-02 Thread Hugo Mills
On Wed, Nov 02, 2011 at 10:22:41PM +0100, Goffredo Baroncelli wrote: > this is the first of 7 patches, which improve the man page of the btrfs > command. > I added some basic text fro the man page for the "filesystem restriper *" and > the "quota/qgroup *" commands. I put in CC the writer hoping

[BTRFS-PROG][PATCH 7/7] Test for man page

2011-11-02 Thread Goffredo Baroncelli
This test checks that the man page cites all the btrfs commands Comments are welcome. BR G.Baroncelli Signed-off-by: Goffredo Baroncelli --- test/003s.sh | 40 1 files changed, 40 insertions(+), 0 deletions(-) create mode 100755 test/003s.sh diff --

[PATCH 4/7] get-default man page

2011-11-02 Thread Goffredo Baroncelli
Add the man page info for the "btrfs subvolume get-default" command. This command was not mentioned in the man page before. Comments are welcome. BR G.Baroncelli Signed-off-by: Goffredo Baroncelli --- btrfs_cmds.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff

[BTRFS-PROG][PATCH 3/7] The man/btrfs.8.in man page is auto-generated

2011-11-02 Thread Goffredo Baroncelli
Warn that the man/btrfs.8.in man page is auto-generated Comments are welcome. BR G.Baroncelli Signed-off-by: Goffredo Baroncelli --- btrfs.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/btrfs.c b/btrfs.c index 4235d54..d7ece5b 100644 --- a/btrfs.c +++ b/btrfs.c

[PATCH 6/7] qgroup/quota info for man page

2011-11-02 Thread Goffredo Baroncelli
Add qgroup/quota btrfs commands info for man page. Arne, please could you be so kindly to take care of these info for the man page from now onwards ? I extract the text both from your pdf and your email. May be something was wrong because I am not familiar with the qgroup/quota commands. After

[BTRFS-PROGS][PATCH 5/7] btrfs filesystem restriper man page added

2011-11-02 Thread Goffredo Baroncelli
Added "btrfs filesystem restriper *" commands to the man page Ilya, could you be so kindly to take care of these info for the man page from now onwards ? After merging this patch you can see this text in the man page doing: make man/btrfs.8.in man man/btrfs.8.in Don't hesitate to contact me fo

[BTRFS-PROG][PATCH 2/7] helpextract.c: removed some static buffer

2011-11-02 Thread Goffredo Baroncelli
Removed some static buffer, and replaced by a dynamic memory allocation in order to support bigger text. Comments are welcome. BR G.Baroncelli Signed-off-by: Goffredo Baroncelli --- helpextract.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/helpextract.c

[BTRFS-PROG][PATCH 1/7] Correct xstrip() function

2011-11-02 Thread Goffredo Baroncelli
Hi all, this is the first of 7 patches, which improve the man page of the btrfs command. I added some basic text fro the man page for the "filesystem restriper *" and the "quota/qgroup *" commands. I put in CC the writer hoping that they will care to maintain aligned the documentation with the

Re: [RFC] [PROGS] Regression tests

2011-11-02 Thread Goffredo Baroncelli
Hi hugo On Sunday, 30 October, 2011 21:44:56 Hugo Mills wrote: > Add a shell-script based test harness for performing regression tests > on btrfs tools. This is not intended as a test system for kernel > issues, but instead to put the userspace tools through their paces. > > Currently implemented

Re: [PATCH] Btrfs-progs: mention libattr dependency in INSTALL file

2011-11-02 Thread Ilya Dryomov
On Wed, Nov 02, 2011 at 05:14:33PM +0200, Ilya Dryomov wrote: > Signed-off-by: Ilya Dryomov > --- > INSTALL |3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/INSTALL b/INSTALL > index 6afbd90..11c388b 100644 > --- a/INSTALL > +++ b/INSTALL > @@ -19,7 +19,8 @@ insmod

[PATCH] Btrfs: be smarter about committing the transaction in reserve_metadata_bytes

2011-11-02 Thread Josef Bacik
Because of the overcommit stuff I had to make it so that we committed the transaction all the time in reserve_metadata_bytes in case we had overcommitted because of delayed items. This was because previously we had no way of knowing how much space was reserved for delayed items. Now that we have

Re: [RFC] [PROGS] Regression tests

2011-11-02 Thread Goffredo Baroncelli
Hi hugo On Sunday, 30 October, 2011 21:44:56 Hugo Mills wrote: > Add a shell-script based test harness for performing regression tests > on btrfs tools. This is not intended as a test system for kernel > issues, but instead to put the userspace tools through their paces. > > Currently implemented

[PATCH] Btrfs: make a delayed_block_rsv for the delayed item insertion

2011-11-02 Thread Josef Bacik
I've been hitting warnings in use_block_rsv when running the delayed insertion stuff. It's because we will readjust global block rsv based on what is in use, which means we could end up discarding reservations that are for the delayed insertion stuff. So instead create a seperate block rsv for th

Re: what does "scrub" mean?

2011-11-02 Thread Helmut Hullen
Hallo, Arne, Du meintest am 02.11.11: >> # btrfs scrub status /srv/MM >> >> scrub status for 120b036a-883f-46aa-bd9a-cb6a1897c8d2 >> scrub resumed at Wed Nov 2 17:02:07 2011 and was aborted after >> 16519 secondstotal bytes scrubbed: 1.79TB with 61 errors >> error details: read

Re: what does "scrub" mean?

2011-11-02 Thread Arne Jansen
On 11/02/2011 06:41 PM, Helmut Hullen wrote: > Hallo, > > I'd like to get some explanations ... > > > # btrfs filesystem show > > Label: 'MMedia' uuid: 120b036a-883f-46aa-bd9a-cb6a1897c8d2 > Total devices 3 FS bytes used 3.80TB > devid1 size 1.82TB used 1.29TB path /dev/sdg1 >

what does "scrub" mean?

2011-11-02 Thread Helmut Hullen
Hallo, I'd like to get some explanations ... # btrfs filesystem show Label: 'MMedia' uuid: 120b036a-883f-46aa-bd9a-cb6a1897c8d2 Total devices 3 FS bytes used 3.80TB devid1 size 1.82TB used 1.29TB path /dev/sdg1 devid3 size 1.81TB used 1.29TB path /dev/sdc1

All green (Re: new integration-danger branch pushed out (kernel))

2011-11-02 Thread David Sterba
Hi, all reported issues are fixed with the updated branch, thanks! david -- 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] Btrfs-progs: mention libattr dependency in INSTALL file

2011-11-02 Thread Helmut Hullen
Hallo, Ilya, Du meintest am 02.11.11: > The Btrfs utility programs require libuuid to build. This can be > found in the e2fsprogs sources, and is usually available as libuuid > or e2fsprogs-devel from various distros. The other dependency is > libattr +(libattr1-dev in Debian-based distros).

[PATCH v3] btrfs: do not allow mounting non-subvolumes via subvol option

2011-11-02 Thread David Sterba
ts ID 262 . This patch makes mount fail with EINVAL with a message in syslog. Signed-off-by: David Sterba --- v2->v3: dropped unused setting of error variable branch with v3: hotfixes-2002/josef/for-chris in my repo fs/btrfs/super.c | 18 ++ 1 files changed, 18 inse

[PATCH] Btrfs-progs: mention libattr dependency in INSTALL file

2011-11-02 Thread Ilya Dryomov
Signed-off-by: Ilya Dryomov --- INSTALL |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/INSTALL b/INSTALL index 6afbd90..11c388b 100644 --- a/INSTALL +++ b/INSTALL @@ -19,7 +19,8 @@ insmod btrfs.ko The Btrfs utility programs require libuuid to build. This can be fou

Re: btrfs-progs

2011-11-02 Thread Leonidas Spyropoulos
Hi, On Tue, Nov 1, 2011 at 4:34 PM, Andrew Benton wrote: > Hello, > > I've just pulled btrfs-progs from the new git repo > git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git > However, when I come to make it fails like so: > > gcc -Wp,-MMD,./.btrfsctl.o.d,-MT,btrfsctl.o -Wall -D_

Re: https://btrfs.wiki.kernel.org/index.php/Main_Page

2011-11-02 Thread Leonidas Spyropoulos
On Wed, Nov 2, 2011 at 10:22 AM, Hugo Mills wrote: > On Wed, Nov 02, 2011 at 10:00:19AM +, Leonidas Spyropoulos wrote: >> On Mon, Oct 17, 2011 at 2:17 PM, Hugo Mills wrote: >> > On Mon, Oct 17, 2011 at 09:07:53PM +0800, Anand Jain wrote: >> >> >> >>  Does not load. Wondering if this should wo

Re: Warnings (was: Re: new integration-danger branch pushed out (kernel))

2011-11-02 Thread David Sterba
On Tue, Nov 01, 2011 at 08:56:15PM -0400, Chris Mason wrote: > > xfstests/083 and 089 cause the following warnings. I've seen them before > > when > > testing josef/for-chris and josef/master branches (reported on irc). > > Ok, just a status update on my end. Josef and I have the block group > w

Re: scrub: Inappropriate ioctl for device

2011-11-02 Thread David Sterba
On Tue, Nov 01, 2011 at 08:36:00PM +0100, Helmut Hullen wrote: > The bundle uses the devices /dev/sdb1, /dev/sdc1 and /dev/sdg1, "btrfs > filesystem show" shows these informations. > > Mounting doesn't work immediately; most times I have to run the "mount" > command three times - strange. I o

Re: https://btrfs.wiki.kernel.org/index.php/Main_Page

2011-11-02 Thread Hugo Mills
On Wed, Nov 02, 2011 at 10:00:19AM +, Leonidas Spyropoulos wrote: > On Mon, Oct 17, 2011 at 2:17 PM, Hugo Mills wrote: > > On Mon, Oct 17, 2011 at 09:07:53PM +0800, Anand Jain wrote: > >> > >>  Does not load. Wondering if this should work or has been moved ? > > > >   It's a victim of the kern

Re: https://btrfs.wiki.kernel.org/index.php/Main_Page

2011-11-02 Thread Leonidas Spyropoulos
On Mon, Oct 17, 2011 at 2:17 PM, Hugo Mills wrote: > On Mon, Oct 17, 2011 at 09:07:53PM +0800, Anand Jain wrote: >> >>  Does not load. Wondering if this should work or has been moved ? > >   It's a victim of the kernel.org hack. Nobody seems to have a spare > copy, but the database on kernel.org s

Re: [PATCH 1/2] LSEEK: BTRFS: Avoid i_mutex for SEEK_{CUR,SET,END}

2011-11-02 Thread Christoph Hellwig
Andres, can you check with Chris that the btrfs changes made it to his tree? The core lseek changes from Andi are in mainline now, but I think these bits are better off going through Chrises btrfs tree. On Sat, Oct 01, 2011 at 10:49:27PM +0200, Andres Freund wrote: > > Don't need the i_mutex for