Re: [4.7.2] btrfs_run_delayed_refs:2963: errno=-17 Object already exists

2017-02-10 Thread Kai Krakow
Am Fri, 10 Feb 2017 23:15:03 +0100 schrieb Marc Joliet : > # btrfs filesystem df /media/MARCEC_BACKUP/ > Data, single: total=851.00GiB, used=831.36GiB > System, DUP: total=64.00MiB, used=120.00KiB > Metadata, DUP: total=13.00GiB, used=10.38GiB > Metadata, single: total=1.12GiB,

Re: proper syslinux settings for ext4 boot, dm-crypt + btrfs subvol root?

2017-02-10 Thread Hugo Mills
On Fri, Feb 10, 2017 at 06:05:57PM -0600, John Hendy wrote: > On Fri, Feb 10, 2017 at 5:49 PM, Hugo Mills wrote: > > On Fri, Feb 10, 2017 at 11:40:41AM -0600, John Hendy wrote: > >> Greetings, > > > >Just as an aside -- it doesn't affect you here, but you might want > >

Re: proper syslinux settings for ext4 boot, dm-crypt + btrfs subvol root?

2017-02-10 Thread John Hendy
On Fri, Feb 10, 2017 at 5:49 PM, Hugo Mills wrote: > On Fri, Feb 10, 2017 at 11:40:41AM -0600, John Hendy wrote: >> Greetings, >Just as an aside -- it doesn't affect you here, but you might want > to be aware -- syslinux doesn't support multi-device btrfs. I've been >

Re: proper syslinux settings for ext4 boot, dm-crypt + btrfs subvol root?

2017-02-10 Thread Hugo Mills
On Fri, Feb 10, 2017 at 11:40:41AM -0600, John Hendy wrote: > Greetings, > > > I'm trying to utilize btrfs subvols to allow me to boot separate > distros without having to create so many partitions. I'm on Arch Linux > and not finding the wiki super helpful with specifics on dm-crypt/luks > and

Re: proper syslinux settings for ext4 boot, dm-crypt + btrfs subvol root?

2017-02-10 Thread John Hendy
On Fri, Feb 10, 2017 at 2:03 PM, Chris Murphy wrote: > This is not a Btrfs problem yet. Syslinux isn't even getting the > kernel and initramfs loaded, otherwise you'd get a failure during > boot. But instead you're at the bootloader still. > > One thing to realize is that

[PATCH v2] Btrfs: fix btrfs_decompress_buf2page()

2017-02-10 Thread Omar Sandoval
From: Omar Sandoval If btrfs_decompress_buf2page() is handed a bio with its page in the middle of the working buffer, then we adjust the offset into the working buffer. After we copy into the bio, we advance the iterator by the number of bytes we copied. Then, we have some logic

Re: [PATCH v2] Btrfs: fix btrfs_decompress_buf2page()

2017-02-10 Thread Omar Sandoval
On Fri, Feb 10, 2017 at 03:03:35PM -0800, Omar Sandoval wrote: > From: Omar Sandoval > > If btrfs_decompress_buf2page() is handed a bio with its page in the > middle of the working buffer, then we adjust the offset into the working > buffer. After we copy into the bio, we advance

Re: [PATCH] Btrfs: fix btrfs_decompress_buf2page()

2017-02-10 Thread Liu Bo
On Fri, Feb 10, 2017 at 02:52:11PM -0800, Omar Sandoval wrote: > On Fri, Feb 10, 2017 at 02:46:09PM -0800, Liu Bo wrote: > > On Fri, Feb 10, 2017 at 12:15:11PM -0800, Omar Sandoval wrote: > > > From: Omar Sandoval > > > > > > If btrfs_decompress_buf2page() is handed a bio with

Re: [PATCH] Btrfs: fix btrfs_decompress_buf2page()

2017-02-10 Thread Omar Sandoval
On Fri, Feb 10, 2017 at 02:46:09PM -0800, Liu Bo wrote: > On Fri, Feb 10, 2017 at 12:15:11PM -0800, Omar Sandoval wrote: > > From: Omar Sandoval > > > > If btrfs_decompress_buf2page() is handed a bio with its page in the > > middle of the working buffer, then we adjust the offset

Re: [PATCH] Btrfs: fix btrfs_decompress_buf2page()

2017-02-10 Thread Liu Bo
On Fri, Feb 10, 2017 at 12:15:11PM -0800, Omar Sandoval wrote: > From: Omar Sandoval > > If btrfs_decompress_buf2page() is handed a bio with its page in the > middle of the working buffer, then we adjust the offset into the working > buffer. After we copy into the bio, we advance

Re: [4.7.2] btrfs_run_delayed_refs:2963: errno=-17 Object already exists

2017-02-10 Thread Marc Joliet
Sorry for the late reply, see below for why :) . On Friday 03 February 2017 23:44:10 Kai Krakow wrote: > Am Thu, 02 Feb 2017 13:01:03 +0100 > > schrieb Marc Joliet : [...] > > > Btrfs --repair refused to repair the filesystem telling me something > > > about compressed extents and

[PATCH] Btrfs: fix btrfs_decompress_buf2page()

2017-02-10 Thread Omar Sandoval
From: Omar Sandoval If btrfs_decompress_buf2page() is handed a bio with its page in the middle of the working buffer, then we adjust the offset into the working buffer. After we copy into the bio, we advance the iterator by the number of bytes we copied. Then, we have some logic

Re: proper syslinux settings for ext4 boot, dm-crypt + btrfs subvol root?

2017-02-10 Thread Chris Murphy
This is not a Btrfs problem yet. Syslinux isn't even getting the kernel and initramfs loaded, otherwise you'd get a failure during boot. But instead you're at the bootloader still. One thing to realize is that syslinux only finds kernels and initramfs on the local file system. So assuming this

Re: [PATCH] btrfs: remove unused ulist members

2017-02-10 Thread Liu Bo
On Thu, Feb 09, 2017 at 04:47:43PM +0100, David Sterba wrote: > Commit "btrfs: ulist: Add ulist_del() function" (d4b804045924d7f8) > removed some debugging code but left the structure defintions. > Reviewed-by: Liu Bo > Signed-off-by: David Sterba > ---

proper syslinux settings for ext4 boot, dm-crypt + btrfs subvol root?

2017-02-10 Thread John Hendy
Greetings, I'm trying to utilize btrfs subvols to allow me to boot separate distros without having to create so many partitions. I'm on Arch Linux and not finding the wiki super helpful with specifics on dm-crypt/luks and btrfs. Requested info: $ uname -a Linux arch_zbook 4.9.8-1-ARCH #1 SMP

Re: [PATCH] btrfs: Better csum error message for data csum mismatch

2017-02-10 Thread David Sterba
On Thu, Feb 09, 2017 at 10:45:06AM +0800, Qu Wenruo wrote: > The original csum error message only outputs inode number, offset, check > sum and expected check sum. > > However no root objectid is outputted, which sometimes makes debugging > quite painful under multi-subvolume case (including

Re: [PATCH v2] Btrfs: add another missing end_page_writeback on submit_extent_page failure

2017-02-10 Thread David Sterba
On Thu, Feb 09, 2017 at 05:24:33PM +0900, Takafumi Kubota wrote: > If btrfs_bio_alloc fails in submit_extent_page, submit_extent_page returns > without clearing the writeback bit of the failed page. > > __extent_writepage_io, that is a caller of submit_extent_page, > does not clear the remaining

Re: [PATCH 2/2] Btrfs: use helper to simplify lock/unlock pages

2017-02-10 Thread David Sterba
On Thu, Feb 02, 2017 at 05:49:23PM -0800, Liu Bo wrote: > Since we have a helper to set page bits, let lock_delalloc_pages and > __unlock_for_delalloc use it. > > Signed-off-by: Liu Bo Reviewed-by: David Sterba I've separated the changes of

Re: [PATCH 1/2] Btrfs: create helper for processing bits on contiguous pages

2017-02-10 Thread David Sterba
On Thu, Feb 02, 2017 at 05:49:22PM -0800, Liu Bo wrote: > This introduces a new helper which can be used to process pages bits. > > Signed-off-by: Liu Bo Reviewed-by: David Sterba -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs"

Re: partial quota rescan

2017-02-10 Thread Marat Khalili
Suddenly discovered undocumented (in man or anywhere) -i parameter of 'btrfs subvolume snapshot' that adds snapshot to qgroup without invalidating statistics. Amazing! -- With Best Regards, Marat Khalili On 08/02/17 18:46, Marat Khalili wrote: I'm using trying to use qgroups to keep track

Help understanding autodefrag details

2017-02-10 Thread Peter Zaitsev
Hi, As I have been reading btrfs whitepaper it speaks about autodefrag in very generic terms - once random write in the file is detected it is put in the queue to be defragmented. Yet I could not find any specifics about this process described anywhere. My use case is databases and as such