raid0 needs mounting alternate device every boot? open_ctree failed (3.19.5)

2015-04-26 Thread Marc MERLIN
This is the weirdest thing: gargamel:/var/log# mount /dev/mapper/raid0d2 /mnt/btrfs_space mount: wrong fs type, bad option, bad superblock on /dev/mapper/raid0d2, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail

Re: raid0 needs mounting alternate device every boot? open_ctree failed (3.19.5)

2015-04-26 Thread Hugo Mills
On Sun, Apr 26, 2015 at 08:20:07AM -0700, Marc MERLIN wrote: This is the weirdest thing: gargamel:/var/log# mount /dev/mapper/raid0d2 /mnt/btrfs_space mount: wrong fs type, bad option, bad superblock on /dev/mapper/raid0d2, missing codepage or helper program, or other error In

[GIT PULL] Btrfs fixes

2015-04-26 Thread Chris Mason
Hi Linus, Filipe hit two problems in my block group cache patches. We finalized the fixes last week and ran through more tests. Can you please pull: git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus-4.1 Chris Mason (2) commits (+25/-17): Btrfs: prevent list

[PATCH] btrfs-progs: receive explicit parent support

2015-04-26 Thread Lauri Võsandi
This patch adds command-line flag -p to btrfs receive which makes it possible to disable automatic parent search for incremental snapshots and use explicitly specified path instead. Signed-off-by: Lauri Võsandi lauri.vosa...@gmail.com --- cmds-receive.c | 34 ++ 1

Re: [PATCH] btrfs-progs: receive explicit parent support

2015-04-26 Thread Hugo Mills
On Sun, Apr 26, 2015 at 12:12:45PM +0200, Lauri Võsandi wrote: This patch adds command-line flag -p to btrfs receive which makes it possible to disable automatic parent search for incremental snapshots and use explicitly specified path instead. As I said when we discussed this on IRC, I

Re: [PATCH] btrfs-progs: receive explicit parent support

2015-04-26 Thread lauri
Hi, Subvol A on source side: (A, -) Send this to A' on target side: (A', A) Send this back to A'' on source side: (A'', A) -- Note the A here, not A' I also think your approach is the real solution to the problem, but as some pointed out on IRC this changes the behaviour of btrfs receive and

Re: [PATCH v2 1/2] btrfs: Fix superblock csum type check.

2015-04-26 Thread Qu Wenruo
Original Message Subject: Re: [PATCH v2 1/2] btrfs: Fix superblock csum type check. From: David Sterba dste...@suse.cz To: Qu Wenruo quwen...@cn.fujitsu.com Date: 2015年04月24日 23:05 On Fri, Apr 24, 2015 at 09:12:40AM +0800, Qu Wenruo wrote: --- a/fs/btrfs/ctree.h +++

[PATCH RESEND] btrfs: Align EOF length to block in extent_same

2015-04-26 Thread Matt Robinson
It is not currently possible to deduplicate the last block of files whose size is not a multiple of the block size, as the btrfs_extent_same ioctl returns -EINVAL if offset + size is greater than the file size or is not aligned to the fs block size. For example, with the default block size of 16K

How to get the devid of a missing device

2015-04-26 Thread Wolfgang Mader
Hello, I have a raid10 with one device missing. I would like to use btrfs replace to replace it. However, I am unsure on how to obtain the devid of the missing device. Having the filesystem mounted in degraded mode under mnt, btrfs fs show /mnt returns sudo btrfs filesystem show /mnt Label:

Re: raid0 needs mounting alternate device every boot? open_ctree failed (3.19.5)

2015-04-26 Thread Marc MERLIN
On Sun, Apr 26, 2015 at 03:32:26PM +, Hugo Mills wrote: The usual reason for this is that btrfs dev scan isn't being run properly. It's usually handled by udev -- most distributions will put the appropriate hooks in their udev configuration if you have the distribution's btrfs-progs

Re: How to get the devid of a missing device

2015-04-26 Thread Duncan
Wolfgang Mader posted on Sun, 26 Apr 2015 20:39:34 +0200 as excerpted: Hello, I have a raid10 with one device missing. I would like to use btrfs replace to replace it. However, I am unsure on how to obtain the devid of the missing device. The devid is if the device is still active in the

[PATCH 0/2] serviceability: add event log when missing device is created

2015-04-26 Thread Anand Jain
Wolfgang was in a situation that he wanted to know the device-id of a missing device as indicated by 'btrfs fi show' sysfs patches sent before would help. And irrespective of that, these are system events must be logged for better pathological analysis of the btrfs issues. Anand Jain (2):

[PATCH 2/2] Btrfs: check error before reporting missing device and add uuid

2015-04-26 Thread Anand Jain
Report missing device when add is successful, otherwise it would exit as ENOMEM. And add uuid to the report. Signed-off-by: Anand Jain anand.j...@oracle.com --- fs/btrfs/volumes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index

[PATCH 1/2] Btrfs: log when missing device is created

2015-04-26 Thread Anand Jain
Signed-off-by: Anand Jain anand.j...@oracle.com --- fs/btrfs/volumes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index f2b5cc9..693745e 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -6109,6 +6109,8 @@ static int

Re: [PATCH 3/3] btrfs: set FS_SUPPORTS_SEEK_HOLE flag.

2015-04-26 Thread NeilBrown
On Mon, 20 Apr 2015 02:48:55 -0700 Christoph Hellwig h...@infradead.org wrote: On Mon, Apr 20, 2015 at 10:46:49AM +0100, David Howells wrote: NeilBrown ne...@suse.de wrote: Missing patch 2 of the 3-patch series? Yes. :-) Do ext4 and xfs support this, do you know? Yes. As do

Re: How to get the devid of a missing device

2015-04-26 Thread Anand Jain
On 04/27/2015 02:39 AM, Wolfgang Mader wrote: Hello, I have a raid10 with one device missing. I would like to use btrfs replace to replace it. However, I am unsure on how to obtain the devid of the missing device. Having the filesystem mounted in degraded mode under mnt, btrfs fs At the