Re: [PATCH 4/5] btrfs: Allow barrier_all_devices to do per-chunk device check

2015-10-30 Thread Anand Jain
Qu, We shouldn't mark FS readonly when chunks are degradable. As below. Thanks, Anand diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 39a2d57..dbb2483 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -3530,7 +3530,7 @@ static int write_all_supers(struct btrfs_root

Re: BTRFS BUG at insert_inline_extent_backref+0xe3/0xf0 while rebalancing

2015-10-30 Thread Erkki Seppala
Filipe Manana writes: > Try this (just sent a few minutes ago): > https://patchwork.kernel.org/patch/7463161/ I've been using this patch for a week now, doing two rebalances a day (one per file system) - no problem so far. Thanks! Probably unrelated to this I did experience

Re: [PATCH 4/5] btrfs: Allow barrier_all_devices to do per-chunk device check

2015-10-30 Thread Anand Jain
On 10/30/2015 07:41 PM, Qu Wenruo wrote: 在 2015年10月30日 16:32, Anand Jain 写道: Qu, We shouldn't mark FS readonly when chunks are degradable. As below. Thanks, Anand diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 39a2d57..dbb2483 100644 --- a/fs/btrfs/disk-io.c +++

Re: corrupted RAID1: unsuccessful recovery / help needed

2015-10-30 Thread Duncan
Lukas Pirl posted on Fri, 30 Oct 2015 10:43:41 +1300 as excerpted: > If there is one subvolume that contains all other (read only) snapshots > and there is insufficient storage to copy them all separately: > Is there an elegant way to preserve those when moving the data across > disks? AFAIK, no

Re: [PATCH 4/5] btrfs: Allow barrier_all_devices to do per-chunk device check

2015-10-30 Thread Qu Wenruo
在 2015年10月30日 16:32, Anand Jain 写道: Qu, We shouldn't mark FS readonly when chunks are degradable. As below. Thanks, Anand diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 39a2d57..dbb2483 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -3530,7 +3530,7 @@ static

RichACLs for BTRFS? (this time complete)

2015-10-30 Thread Marcel Ritter
Hi btrfs-developers, I just read about the possible/planned merge of richacl patches into linux kernel 4.4. s. http://lwn.net/Articles/661078/ s. http://lwn.net/Articles/661357/ Will btrfs support richacls with kernel 4.4? According to the btrfs wiki, this topic has not been claimed:

Re: corrupted RAID1: unsuccessful recovery / help needed

2015-10-30 Thread Duncan
Lukas Pirl posted on Fri, 30 Oct 2015 10:43:41 +1300 as excerpted: > Is e.g. "balance" also influenced by the userspace tools or does > the kernel the actual work? btrfs balance is done "online", that is, on the (writable-)mounted filesystem, and the kernel does the real work. It's the tools

Re: random i/o error without error in dmesg

2015-10-30 Thread Duncan
Marc Joliet posted on Thu, 29 Oct 2015 22:10:24 +0100 as excerpted: >>Meanwhile, as explained in the systemd docs (specifically the systemd >>for administrators series, IIRC), systemd dropping back to the initr* is >>actually its way of automatically doing effectively the same thing we >>were

RichACLs for BTRFS?

2015-10-30 Thread Marcel Ritter
Hi btrfs-developers, I just read about the possible/planned merge of richacl patches into linux kernel 4.4. s. http://lwn.net/Articles/661078/ s. http://lwn.net/Articles/661357/ Will btrfs support richacls with kernel 4.4? According to -- To unsubscribe from this list: send the line

Re: [3/3] btrfs: qgroup: Fix a rebase bug which will cause qgroup double free

2015-10-30 Thread Johannes Henninger
Woops, just noticed I copied and pasted a typo there. Sorry for the trouble. It should be: Tested-by: Johannes Henninger -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo

Re: corrupted RAID1: unsuccessful recovery / help needed

2015-10-30 Thread Hugo Mills
On Fri, Oct 30, 2015 at 10:58:47AM +, Duncan wrote: > Lukas Pirl posted on Fri, 30 Oct 2015 10:43:41 +1300 as excerpted: > > > If there is one subvolume that contains all other (read only) snapshots > > and there is insufficient storage to copy them all separately: > > Is there an elegant way

Re: [PATCH 5/6] btrfs-progs: free comparer_set in cmd_qgroup_show

2015-10-30 Thread David Sterba
On Thu, Oct 29, 2015 at 05:31:47PM +0800, Zhao Lei wrote: > comparer_set, which was allocated by malloc(), should be free before > function return. > > Signed-off-by: Zhao Lei > --- > cmds-qgroup.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff

Re: corrupted RAID1: unsuccessful recovery / help needed

2015-10-30 Thread Austin S Hemmelgarn
On 2015-10-30 06:58, Duncan wrote: Lukas Pirl posted on Fri, 30 Oct 2015 10:43:41 +1300 as excerpted: If there is one subvolume that contains all other (read only) snapshots and there is insufficient storage to copy them all separately: Is there an elegant way to preserve those when moving the

Re: [PATCH V8 02/13] Btrfs: Compute and look up csums based on sectorsized blocks

2015-10-30 Thread Josef Bacik
On 10/28/2015 04:10 AM, Chandan Rajendra wrote: Checksums are applicable to sectorsize units. The current code uses bio->bv_len units to compute and look up checksums. This works on machines where sectorsize == PAGE_SIZE. This patch makes the checksum computation and look up code to work with

Re: [PATCH V8 03/13] Btrfs: Direct I/O read: Work on sectorsized blocks

2015-10-30 Thread Josef Bacik
On 10/28/2015 04:10 AM, Chandan Rajendra wrote: The direct I/O read's endio and corresponding repair functions work on page sized blocks. This commit adds the ability for direct I/O read to work on subpagesized blocks. Reviewed-by: Josef Bacik Thanks, Josef -- To unsubscribe

Re: [PATCH V8 01/13] Btrfs: __btrfs_buffered_write: Reserve/release extents aligned to block size

2015-10-30 Thread Josef Bacik
On 10/28/2015 04:10 AM, Chandan Rajendra wrote: Currently, the code reserves/releases extents in multiples of PAGE_CACHE_SIZE units. Fix this by doing reservation/releases in block size units. Signed-off-by: Chandan Rajendra Reviewed-by: Josef Bacik

Re: FW: btrfs-progs: android build

2015-10-30 Thread David Sterba
On Mon, Aug 31, 2015 at 06:33:01PM +0200, David Sterba wrote: > So the preliminary support is merged. Outstanding issues are all related > to blkid API: > > - is_ssd Fixed by trivially ifdef around the function. > - btrfs_wipe_existing_sb > - check_overwrite > > In the ssd check case it's safe

Re: bad handling of unpartitioned device in sysfs_devno_to_wholedisk() (which breaks mkfs.btrfs)

2015-10-30 Thread Karel Zak
On Fri, Oct 30, 2015 at 09:43:28AM +0800, Tom Yan wrote: > So I noticed that SSD detection does work on unpartitioned devices in > mkfs.btrfs somehow: > https://bugzilla.kernel.org/show_bug.cgi?id=102921 > > Later I found out that it breaks at blkid_devno_to_wholedisk() in is_ssd(): >

Re: RichACLs for BTRFS? (this time complete)

2015-10-30 Thread Austin S Hemmelgarn
On 2015-10-30 05:45, Marcel Ritter wrote: Hi btrfs-developers, I just read about the possible/planned merge of richacl patches into linux kernel 4.4. s. http://lwn.net/Articles/661078/ s. http://lwn.net/Articles/661357/ Will btrfs support richacls with kernel 4.4? According to the btrfs

Periodic kernel freezes

2015-10-30 Thread Alex Adriaanse
I have an EC2 instance on AWS that tends to freeze several times per week. When it freezes it stops responding to network traffic, disk I/O stops, and CPU goes to 100%. The system comes back fine after a reboot. I was finally able to get a kernel backtrace from when this happened today, which I

Re: Periodic kernel freezes

2015-10-30 Thread David Goodwin
On 30/10/2015 16:25, Alex Adriaanse wrote: I have an EC2 instance on AWS that tends to freeze several times per week. When it freezes it stops responding to network traffic, disk I/O stops, and CPU goes to 100%. The system comes back fine after a reboot. I was finally able to get a kernel