Re: [PATCH] xfstests 276: fix error 'FIBMAP: Invalid argument'

2013-05-26 Thread Zhi Yong Wu
HI, This issue still exists when xfstests is run on debian although xfstests has contained this patch. root@debian-i386:/home/zwu/xfstests# git describe linux-v3.8-122-gdc75401 root@debian-i386:/home/zwu/xfstests# uname -a Linux debian-i386 3.10.0-rc2+ #3 SMP Sun May 26 14:04:13 CST 2013

Re: Recommended settings for SSD

2013-05-26 Thread Leonidas Spyropoulos
On Sat, May 25, 2013 at 11:33 PM, Harald Glatt m...@hachre.de wrote: Data that already exists will only be compressed on re-write. You can do it with btrfs fi defrag and a script that traverses the fs to call defrag on every file. Another good way is the find command that has been outlined

Re: compression on external hard drive?

2013-05-26 Thread xavier.gn...@gmail.com
On 05/26/2013 04:23 AM, Duncan wrote: Xavier Gnata posted on Sun, 26 May 2013 00:11:55 +0200 as excerpted: Nowdays, external hard drives are mounted automagically by kde, gnome or whatever else. How is it suppose to work with external hard drives using btrfs with compression? If a btrfs

[PATCH 1/5] Btrfs: fix use-after-free bug during umount

2013-05-26 Thread Liu Bo
Commit be283b2e674a09457d4563729015adb637ce7cc1 (Btrfs: use helper to cleanup tree roots) introduced the following bug, BUG: unable to handle kernel NULL pointer dereference at 0034 IP: [a039368c] extent_buffer_get+0x4/0xa [btrfs] [...] Pid: 2463, comm: btrfs-cache-1

[PATCH 2/5] Btrfs: update new flags for tracepoint

2013-05-26 Thread Liu Bo
Adding new flags to keep tracepoints consistent with btrfs. Signed-off-by: Liu Bo bo.li@oracle.com --- include/trace/events/btrfs.h | 35 +++ 1 files changed, 23 insertions(+), 12 deletions(-) diff --git a/include/trace/events/btrfs.h

[PATCH 3/5] Btrfs: kill replicate code in replay_one_buffer

2013-05-26 Thread Liu Bo
EXTREF is treated same as REF, so we can make the code tidy. Signed-off-by: Liu Bo bo.li@oracle.com --- fs/btrfs/tree-log.c |9 ++--- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index c276ac9..3f30053 100644 ---

[PATCH 4/5 RESEND] Btrfs: remove unused code in btrfs_del_root

2013-05-26 Thread Liu Bo
'leaf' and 'ri' is not used somehow. Signed-off-by: Liu Bo bo.li@oracle.com --- fs/btrfs/root-tree.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index 5bf1ed5..4a5abda 100644 --- a/fs/btrfs/root-tree.c +++

[PATCH 5/5 RESEND] Btrfs: allow file data clone within a file

2013-05-26 Thread Liu Bo
We did not allow file data clone within the same file because of deadlock issues. However, we now use nested lock to avoid deadlock between the parent directory and the child file. So it's safe to do file clone within the same file when the two ranges are not overlapped. Reviewed-by: David

Re: Recommended settings for SSD

2013-05-26 Thread Harald Glatt
I don't know a better way to check than doing df -h before and after... If you use space_cache you have to clear_cache though to make the numbers be current for sure each time before looking at df. Old kernel can be a problem. You can use the Arch CDs to do it, they usually come with the newest

Re: Recommended settings for SSD

2013-05-26 Thread cwillu
On Sun, May 26, 2013 at 9:16 AM, Harald Glatt m...@hachre.de wrote: I don't know a better way to check than doing df -h before and after... If you use space_cache you have to clear_cache though to make the numbers be current for sure each time before looking at df. Not sure what you're

Re: [PATCH] xfstests 276: fix error 'FIBMAP: Invalid argument'

2013-05-26 Thread Eric Sandeen
On 5/26/13 4:35 AM, Zhi Yong Wu wrote: HI, This issue still exists when xfstests is run on debian although xfstests has contained this patch. this issue must be different, then; same error (Invalid argument) but it can no longer be due to the -x option to filefrag. There must be some

Btrfsck errors (fs tree 565 refs 125 not found) - how serious

2013-05-26 Thread Clemens Eisserer
Hi, For about 3 weeks I've been using btrfs on my desktop machine, using the snapshot-functionality quite a lot. Today I ran btrfsck and got about ~10MB of output which looks like: fs tree 565 refs 125 not found unresolved ref root 807 dir 813347 index 277 namelen 39 name

[Question] How to restore btrfs raid0 image file?

2013-05-26 Thread Liu Bo
Hi, So the case is, now I've got a btrfs image file, which is created from a raid0 btrfs fs. And if I run 'btrfs-image -r image_file /dev/sdf', then I have to mount it with 'degraded' mode, and that still fails because raid0 requires two disks at least. So any ideas how to make it work?