[PATCH] btrfs: use list_for_each_entry_safe() when delete items

2013-07-27 Thread Azat Khuzhin
Replace list_for_each_entry() by list_for_each_entry_safe() in __btrfs_close_devices() There is another place that delete items lock_stripe_add(), but there we don't need safe version, because after deleting we exit from loop. Signed-off-by: Azat Khuzhin a3at.m...@gmail.com ---

Mount multiple-device-filesystem by UUID

2013-07-27 Thread Hendrik Friedel
Hello, As stated in the -- 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

Mount multiple-device-filesystem by UUID

2013-07-27 Thread Hendrik Friedel
Hello, As stated in the wiki, multiple-device filesystems (e.g. raid 1) will only mount after a btfs device scan, or if all devices are passed with the mount options. I remember, that for Ubuntu 12.04 I changed the initrd. But after a re-install, I have to do this again, and I don't

Re: Mount multiple-device-filesystem by UUID

2013-07-27 Thread Hugo Mills
On Sat, Jul 27, 2013 at 08:52:50PM +0200, Hendrik Friedel wrote: As stated in the wiki, multiple-device filesystems (e.g. raid 1) will only mount after a btfs device scan, or if all devices are passed with the mount options. I remember, that for Ubuntu 12.04 I changed the initrd. But after a

Recovering from btrfs error Couldn't read chunk root.

2013-07-27 Thread Kyriakos
I accidentally dd'ed the wrong disc /dev/sdb when it should be /dev/sdc but i stopped in something like 2 sec. and a small part of my 2tb disc was overwritten with openSUSE milestone 3 the ruby baked yast flavor :). I was able to see, access and use my data in the /dev/sdb disc, but not after

Metadata chunk fragmentation?

2013-07-27 Thread Jeremy Atkins
I have a 5 drive btrfs pool that seems to be getting slow If i start/cancel a rebalance on metadata, it will take 15 to 20 minutes to do 1 chunk, then in dmesg i'll see this: -mconvert=raid5 [Sat Jul 27 22:16:12 2013] btrfs: relocating block group 18228861403136 flags 20 [Sat Jul 27 22:31:53

Re: Recovering from btrfs error Couldn't read chunk root.

2013-07-27 Thread Wang Shilong
Hello, It seems Btrfs Chunk Tree is damaged, so you can not mount Btrfs filesystem any more. However, you can try the latest Btrfs-progs, Miao Xie implements chunk tree recover function. The url is: git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git you can try