Re: Undelete files / directory

2014-08-28 Thread Jean-Denis Girard
Le 28/08/2014 11:51, Chris Murphy a écrit : > Ahh yes. So you'll see here that there's a new build for you not yet in > updates repo. btrfs-progs-3.16-1.fc20.x86_64 installed, but it doesn't change anything: [jdg@tiare tmp]$ btrfs-find-root x220_home.img Super think's the tree root is at 1152308

Re: Undelete files / directory

2014-08-28 Thread Chris Murphy
On Aug 27, 2014, at 12:04 PM, Jean-Denis Girard wrote: > I'm on Fedora 20, with kernel 3.15.10-200.fc20.x86_64, and > btrfs-progs-3.14.2-3.fc20.x86_64. Ahh yes. So you'll see here that there's a new build for you not yet in updates repo. http://koji.fedoraproject.org/koji/buildinfo?buildID=57

Re: Undelete files / directory

2014-08-28 Thread Chris Murphy
On Aug 28, 2014, at 3:23 PM, Jean-Denis Girard wrote: > So this seems fine; why is btrfs-find-root not working for me? Don't know. btrfs-progs 3.16 is current in git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git master branch. It's already built since yesterday in koji for

Re: Undelete files / directory

2014-08-28 Thread Chris Murphy
On Aug 28, 2014, at 11:04 AM, Jean-Denis Girard wrote: > Hi Chris, > > Thanks for your detailed answer. > > Le 28/08/2014 06:25, Chris Murphy a écrit : >> 9. btrfs-find-root /dev/sdc >> Super think's the tree root is at 29917184, chunk root 20987904 >> Well block 4194304 seems great, but gener

Re: Undelete files / directory

2014-08-28 Thread Jean-Denis Girard
Le 28/08/2014 10:21, Chris Murphy a écrit : > What do you get for [root@x220 ~]# btrfs-debug-tree -R /dev/mapper/home root tree: 115230801920 level 1 chunk tree: 131072 level 1 extent tree key (EXTENT_TREE ROOT_ITEM 0) 115230806016 level 2 device tree key (DEV_TREE ROOT_ITEM 0) 115191881728 leve

Re: Undelete files / directory

2014-08-28 Thread Chris Murphy
On Aug 28, 2014, at 11:04 AM, Jean-Denis Girard wrote: > Hi Chris, > > Thanks for your detailed answer. > > Le 28/08/2014 06:25, Chris Murphy a écrit : >> 9. btrfs-find-root /dev/sdc >> Super think's the tree root is at 29917184, chunk root 20987904 >> Well block 4194304 seems great, but gener

Re: fallocate fail on btrfs

2014-08-28 Thread Duncan
G. Richard Bellamy posted on Thu, 28 Aug 2014 07:48:04 -0700 as excerpted: > School is in again... and my goodness I learned a lot in this go-around. Don't worry, I did too. =:^) I consider myself an admin (as I believe everyone should who administrates their own systems, it's a big responsibi

Re: Undelete files / directory

2014-08-28 Thread Jean-Denis Girard
Hi Chris, Thanks for your detailed answer. Le 28/08/2014 06:25, Chris Murphy a écrit : > 9. btrfs-find-root /dev/sdc > Super think's the tree root is at 29917184, chunk root 20987904 > Well block 4194304 seems great, but generation doesn't match, have=2, want=9 > level 0 > Well block 4243456 see

Re: Undelete files / directory

2014-08-28 Thread Chris Murphy
Line 84 "$dir/restore" -i -t $id -m "$regex" "$dev" $out I don't see a -m option for btrfs restore, maybe use --path-regex instead. I just did this without the script and it worked: 1. mkfs.btrfs /dev/sdc 2. mount /dev/sdc /mnt 3. mkdir /mnt/pics 4. scp IMG_3327.tif :/mnt/pics/

Re: fallocate fail on btrfs

2014-08-28 Thread G. Richard Bellamy
On Thu, Aug 28, 2014 at 2:12 AM, Duncan <1i5t5.dun...@cox.net> wrote: > Holger Hoffstätte posted on Wed, 27 Aug 2014 23:33:55 + as excerpted: > >> On Wed, 27 Aug 2014 15:58:49 -0700, G. Richard Bellamy wrote: >> >>> [..snip..] >> >> I can use fallocate on btrfs as you tried in your first post,

[PATCH 06/15 v2] btrfs: new case to run btrfs subvolume create/delete operations and device replace simultaneously

2014-08-28 Thread Eryu Guan
Run btrfs subvolume create/mount/umount/delete and device replace operation simultaneously, with fsstress running in background. Signed-off-by: Eryu Guan --- tests/btrfs/064 | 131 tests/btrfs/064.out | 2 + tests/btrfs/group | 1 +

[PATCH 12/15 v2] btrfs: new case to run device replace and remount with different compress algorithms simultaneously

2014-08-28 Thread Eryu Guan
Run btrfs replace operations and remount with different compress algorithms simultaneously with fsstress running in background. Signed-off-by: Eryu Guan --- tests/btrfs/070 | 131 tests/btrfs/070.out | 2 + tests/btrfs/group | 1 + 3

[PATCH 03/15 v2] btrfs: new test to run btrfs balance and defrag operations simultaneously

2014-08-28 Thread Eryu Guan
Run btrfs balance and defrag operations simultaneously with fsstress running in background. Signed-off-by: Eryu Guan --- common/rc | 18 tests/btrfs/061 | 130 tests/btrfs/061.out | 2 + tests/btrfs/group | 1 + 4

[PATCH 08/15 v2] btrfs: new case to run btrfs subvolume create/delete and defrag operations simultaneously

2014-08-28 Thread Eryu Guan
Run btrfs subvolume create/mount/umount/delete and btrfs defrag operations simultaneously, with fsstress running in backgound. Signed-off-by: Eryu Guan --- tests/btrfs/066 | 131 tests/btrfs/066.out | 2 + tests/btrfs/group | 1 + 3

[PATCH 09/15 v2] btrfs: new case to run subvolume create/delete and remount with defferent compress algorithms

2014-08-28 Thread Eryu Guan
Run btrfs subvolume create/mount/umount/delete and remount with different compress algorithms simultaneously, with fsstress running in background. Signed-off-by: Eryu Guan --- tests/btrfs/067 | 130 tests/btrfs/067.out | 2 + tests/btrfs

[PATCH 07/15 v2] btrfs: new case to run btrfs subvolume create/delete operations and scrub simultaneously

2014-08-28 Thread Eryu Guan
Run btrfs subvolume create/mount/umount/delete and btrfs scrub operation simultaneously, with fsstress running in background. Signed-off-by: Eryu Guan --- tests/btrfs/065 | 129 tests/btrfs/065.out | 2 + tests/btrfs/group | 1 + 3 f

[PATCH 13/15 v2] btrfs: new case to run btrfs scrub and defrag operations simultaneously

2014-08-28 Thread Eryu Guan
Run btrfs scrub and defrag operations simultaneously with fsstress running in background. Signed-off-by: Eryu Guan --- tests/btrfs/071 | 130 tests/btrfs/071.out | 2 + tests/btrfs/group | 1 + 3 files changed, 133 insertions(+) cre

[PATCH 10/15 v2] btrfs: new case to run device replace and scrub operations simultaneously

2014-08-28 Thread Eryu Guan
Run btrfs replace operations and scrub simultaneously with fsstress running in background. Signed-off-by: Eryu Guan --- tests/btrfs/068 | 131 tests/btrfs/068.out | 2 + tests/btrfs/group | 1 + 3 files changed, 134 insertions(+) cr

[PATCH 02/15 v2] btrfs: new test to run btrfs balance and scrub simultaneously

2014-08-28 Thread Eryu Guan
Run btrfs balance and scrub operations simultaneously with fsstress running in background. Signed-off-by: Eryu Guan --- common/rc | 8 tests/btrfs/060 | 128 tests/btrfs/060.out | 2 + tests/btrfs/group | 1 + 4 file

[PATCH 15/15 v2] btrfs: new case to run defrag and remount with different compress algorithms simultaneously

2014-08-28 Thread Eryu Guan
Run btrfs defrag operations and remount with different compress algorithms simultaneously with fsstress running in background. Signed-off-by: Eryu Guan --- tests/btrfs/073 | 130 tests/btrfs/073.out | 2 + tests/btrfs/group | 1 + 3

[PATCH 04/15 v2] btrfs: new case to run btrfs balance and remount with different compress algorithms

2014-08-28 Thread Eryu Guan
Run btrfs balance and remount with different compress algorithms simultaneously, with fsstress running in background. Signed-off-by: Eryu Guan --- common/rc | 10 tests/btrfs/062 | 128 tests/btrfs/062.out | 2 + tests/bt

[PATCH 05/15 v2] btrfs: new case to run btrfs balance and device replace operations simultaneously

2014-08-28 Thread Eryu Guan
Run btrfs balance and replace operations simultaneously with fsstress running in background. Signed-off-by: Eryu Guan --- common/rc | 56 ++ tests/btrfs/063 | 130 tests/btrfs/063.out | 2 + tests/btrfs/gro

[PATCH 01/15 v2] btrfs: new test to run btrfs balance and subvolume test simultaneously

2014-08-28 Thread Eryu Guan
Run btrfs balance and subvolume create/mount/umount/delete simultaneously, with fsstress running in background. Signed-off-by: Eryu Guan --- common/rc | 24 ++ tests/btrfs/059 | 129 tests/btrfs/059.out | 2 + tests/bt

[PATCH 11/15 v2] btrfs: new case to run device replace and defrag operations simultaneously

2014-08-28 Thread Eryu Guan
Run btrfs replace operations and defrag simultaneously with fsstress running in background. Signed-off-by: Eryu Guan --- tests/btrfs/069 | 133 tests/btrfs/069.out | 2 + tests/btrfs/group | 1 + 3 files changed, 136 insertions(+) c

[PATCH 14/15 v2] btrfs: new case to run btrfs scrub and remount with different compress algorithms simultaneously

2014-08-28 Thread Eryu Guan
Run btrfs scrub and remount with different compress algorithms simultaneously with fsstress running in background. Signed-off-by: Eryu Guan --- tests/btrfs/072 | 128 tests/btrfs/072.out | 2 + tests/btrfs/group | 1 + 3 files change

[PATCH 00/15 v2] xfstests: new btrfs stress test cases

2014-08-28 Thread Eryu Guan
This patchset add new stress test cases for btrfs by running two different btrfs operations simultaneously under fsstress to ensure btrfs doesn't hang or oops in such situations. btrfs scrub and btrfs check will be run after each test. The test matrix is the combination of 6 btrfs operations:

Re: Undelete files / directory

2014-08-28 Thread Duncan
Jean-Denis Girard posted on Wed, 27 Aug 2014 08:04:34 -1000 as excerpted: > Two days ago I mistakenly deleted a directory on a btrfs file system. As > soon as I realized, I cleanly unmounted the partition, and have not > touched it since then. I have no snapshot and no backup; I was on > vacations

Re: fallocate fail on btrfs

2014-08-28 Thread Duncan
Holger Hoffstätte posted on Wed, 27 Aug 2014 23:33:55 + as excerpted: > On Wed, 27 Aug 2014 15:58:49 -0700, G. Richard Bellamy wrote: > >> [..snip..] > > I can use fallocate on btrfs as you tried in your first post, with or > without --keep-size, and it does the right things without errors.

warning at at fs/btrfs/delayed-inode.c:655 while doing stress test

2014-08-28 Thread Masayoshi Mizuma
Hi, When I ran a stress test for Btrfs (v3.17-rc2), then I got the following warning messages repeatedly. I think the messages were outputted because btrfs_block_rsv_migrate() returned as ENOSPC. I'm not sure this is related to a bug or not... How to reproduce: 1. Create btrfs on a 5GB partition