Re: mount a multi-device filesystem using a loopback device

2011-09-06 Thread Jeff Liu
On 09/07/2011 02:31 PM, Li Zefan wrote: Is it a bug? or Am I missing something? You need to run this before mounting the devices: # btrfs device scan Thank you, it works by executing device scan. -Jeff -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body

Re: mount a multi-device filesystem using a loopback device

2011-09-06 Thread cwillu
> 1. Create and format two images, the 1st in 400Mbytes, and 2nd in 286Mbytes. > root@pibroch:/btrfs-progs# ls -lh /usr/src/linux-3.0/img* > -rw-r--r-- 1 jeff jeff 400M 2011-09-07 12:00 /usr/src/linux-3.0/img0 > -rw-r--r-- 1 jeff jeff 286M 2011-09-07 12:00 /usr/src/linux-3.0/img1 Very small btrfs

mount a multi-device filesystem using a loopback device

2011-09-06 Thread Jeff Liu
Hello, I was trying to create a multi-device Btrfs filesystem using two loopback devices, by referring to the following page: https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices However, I met a strange thing while mounting the first loop device without any extra mount o

Re: [PATCH -rc6] btrfs: xattr: fix attribute removal

2011-09-06 Thread Li Zefan
David Sterba wrote: > An attribute is not removed by 'setfattr -x attr file' and remains > visible in attr list. This makes xfstests/062 pass again. > > Signed-off-by: David Sterba Reviewed-by: Li Zefan -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a m

Re: Any chance to recovery btrfs raid-0 after accidental format of one volume?

2011-09-06 Thread Hugo Mills
On Wed, Sep 07, 2011 at 09:00:21AM +1000, Dante wrote: > > > Bad case of user error here but I managed to reformat one half of a > > > btrfs volume that was set up with metadata raid-1 and data raid-0. > > > It won't help you - but did you format it with mkfs.btrfs, while it was > > mounted? > >

RE: Any chance to recovery btrfs raid-0 after accidental format of one volume?

2011-09-06 Thread Dante
> > Bad case of user error here but I managed to reformat one half of a > > btrfs volume that was set up with metadata raid-1 and data raid-0. > It won't help you - but did you format it with mkfs.btrfs, while it was > mounted? No I formatted as ext4 while off-line. Thanks for the feedback. I

[PATCH] make btrfs_orphan_cleanup process bad inodes

2011-09-06 Thread Milko Krachounov
When btrfs_orphan_cleanup encounters an inode marked as bad, instead of going down the code path that handles such inodes, it fails with the following error message: btrfs: could not do orphan cleanup -116 This happens as the called btrfs_iget returns an error when encountering such inode.

Re: Rename BTRfs to MuchSlowerFS ?

2011-09-06 Thread Fajar A. Nugraha
On Tue, Sep 6, 2011 at 10:30 PM, Swâmi Petaramesh wrote: > On Monday 5 September 2011 22:25:23 Sergei Trofimovich wrote: >> I've seen similar problem on Ubuntu-11 + Aspire One (8GB of slow "SSD"). >> More specifically half of ubuntu install went very fast and when >> disk was ~50% free things sudd

btrfs always writes something after sync

2011-09-06 Thread Roman Kapusta
When I check /proc/diskstats on mounted partitions before and after 'sync' on idle system, I can tell from write activity which partitions are btrfs and which are ext3/ext4/swap. On idle system after running sync, there is no activity on any ext3/ext4/swap except root filesystem. But there are wri

btrfs-delalloc - threaded?

2011-09-06 Thread Andrew Carlson
Hi all. I was doing some testing with writing out data to a BTFS filesystem with the compress-force option. With 1 program running, I saw btfs-delalloc taking about 1 CPU worth of time, much as could be expected. I then started up 2 programs at the same time, writing data to the BTRFS volume. b

Re: Rename BTRfs to MuchSlowerFS ?

2011-09-06 Thread Swâmi Petaramesh
On Monday 5 September 2011 22:25:23 Sergei Trofimovich wrote: > I've seen similar problem on Ubuntu-11 + Aspire One (8GB of slow "SSD"). > More specifically half of ubuntu install went very fast and when > disk was ~50% free things suddenly gone slow. I'm just about to give up and definitely quit

Re: don't fetch the inode size beforehand.

2011-09-06 Thread David Sterba
Hi, On Fri, Aug 26, 2011 at 09:32:45PM +0800, Jeff Liu wrote: > I think we don't need to fetch the inode size in advance. :-P. yes, the value is not used and rewritten a few lines below anyway. Please send a patch with proper header and signed-off line to be accepted. david > > diff --git a/f

[PATCH -rc6] btrfs: xattr: fix attribute removal

2011-09-06 Thread David Sterba
An attribute is not removed by 'setfattr -x attr file' and remains visible in attr list. This makes xfstests/062 pass again. Signed-off-by: David Sterba --- fs/btrfs/xattr.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/fs/btrfs/xattr.c b/fs/btrfs/xattr.c index

Re: Problems with set-default, home subvolume and snapshot

2011-09-06 Thread Calvin Walton
On Mon, 2011-09-05 at 16:43 +0200, Björn Kalkbrenner wrote: > Hi Ilya, > > Am 05.09.2011 15:07, schrieb Ilya Dryomov: > > Well, it's *sort of* expected if you think about it. When you mounted > > after set-default, your /home is no longer a valid subvolume access > > point (it was in the default s

[PATCH] Btrfs: fix array bound checking

2011-09-06 Thread Li Zefan
Otherwise we can execced the array bound of path->slots[]. Signed-off-by: Li Zefan --- fs/btrfs/ctree.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 011cab3..0fe615e 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.