Re: Add device while rebalancing

2016-04-22 Thread Duncan
Juan Alberto Cirez posted on Fri, 22 Apr 2016 14:36:44 -0600 as excerpted: > Good morning, > I am new to this list and to btrfs in general. I have a quick question: > Can I add a new device to the pool while the btrfs filesystem balance > command is running on the drive pool? Adding a device

primary location of btrfs-progs changelog: The wiki?

2016-04-22 Thread Nicholas D Steeves
Hi, I'm just wondering where the primary location of the btrfs-progs changelog is located, because I'd like to include upstream changes in the Debian package. Is it really the wiki? If so, it would seem my options are copying+pasting with every release, or writing a script to download the page,

Re: dstat shows unexpected result for two disk RAID1

2016-04-22 Thread Nicholas D Steeves
Everyone, thank you very much for helping me to learn more. Getting up to speed takes forever! I posted an idea relating to this thread, but it's more read latency rather than throughput related, but I'm not sure what the right way to link overlapping threads is, so here is how to find it:

Re: [PATCH v8 00/27][For 4.7] Btrfs: Add inband (write time) de-duplication framework

2016-04-22 Thread Nicholas D Steeves
Hi Qu, On 6 April 2016 at 01:22, Qu Wenruo wrote: > > > Nicholas D Steeves wrote on 2016/04/05 23:47 -0400: >> >> It is unlikely that I will use dedupe, but I imagine your work will >> apply tot he following wishlist: >> >> 1. Allow disabling of memory-backend hash via a

Re: btrfs forced readonly + errno=-28 No space left

2016-04-22 Thread Nicholas D Steeves
On 21 April 2016 at 18:44, Chris Murphy wrote: > On Thu, Apr 21, 2016 at 6:53 AM, Martin Svec wrote: >> Hello, >> >> we use btrfs subvolumes for rsync-based backups. During backups btrfs often >> fails with "No space >> left" error and goes to

Re: [PATCH] btrfs: Test that qgroup counts are valid after snapshot creation

2016-04-22 Thread Mark Fasheh
On Fri, Apr 22, 2016 at 08:26:33AM +0800, Qu Wenruo wrote: > > > Mark Fasheh wrote on 2016/04/21 16:53 -0700: > >Thank you for the review, comments are below. > > > >On Wed, Apr 20, 2016 at 09:48:54AM +0900, Satoru Takeuchi wrote: > >>On 2016/04/20 7:25, Mark Fasheh wrote: > >>>+# Force a small

Add device while rebalancing

2016-04-22 Thread Juan Alberto Cirez
Good morning, I am new to this list and to btrfs in general. I have a quick question: Can I add a new device to the pool while the btrfs filesystem balance command is running on the drive pool? Thanks -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a

[PATCH] btrfs: Switch to generic xattr handlers

2016-04-22 Thread Andreas Gruenbacher
The btrfs_{set,remove}xattr inode operations check for a read-only root (btrfs_root_readonly) before calling into generic_{set,remove}xattr. If this check is moved into __btrfs_setxattr, we can get rid of btrfs_{set,remove}xattr. This patch applies to mainline, I would like to keep it together

Re: [PATCH v4] btrfs: qgroup: Fix qgroup accounting when creating snapshot

2016-04-22 Thread Mark Fasheh
On Fri, Apr 22, 2016 at 02:23:59PM -0400, Josef Bacik wrote: > On 04/22/2016 02:21 PM, Mark Fasheh wrote: > >On Fri, Apr 22, 2016 at 02:12:11PM -0400, Josef Bacik wrote: > >>On 04/15/2016 05:08 AM, Qu Wenruo wrote: > >>>+ /* > >>>+ * Force parent root to be updated, as we recorded it before so

Re: [PATCH v4] btrfs: qgroup: Fix qgroup accounting when creating snapshot

2016-04-22 Thread Josef Bacik
On 04/22/2016 02:21 PM, Mark Fasheh wrote: On Fri, Apr 22, 2016 at 02:12:11PM -0400, Josef Bacik wrote: On 04/15/2016 05:08 AM, Qu Wenruo wrote: + /* +* Force parent root to be updated, as we recorded it before so its +* last_trans == cur_transid. +* Or it won't

Re: [PATCH v4] btrfs: qgroup: Fix qgroup accounting when creating snapshot

2016-04-22 Thread Mark Fasheh
On Fri, Apr 22, 2016 at 02:12:11PM -0400, Josef Bacik wrote: > On 04/15/2016 05:08 AM, Qu Wenruo wrote: > >+/* > >+ * Force parent root to be updated, as we recorded it before so its > >+ * last_trans == cur_transid. > >+ * Or it won't be committed again onto disk after later > >+

Re: [PATCH v4] btrfs: qgroup: Fix qgroup accounting when creating snapshot

2016-04-22 Thread Josef Bacik
On 04/15/2016 05:08 AM, Qu Wenruo wrote: Current btrfs qgroup design implies a requirement that after calling btrfs_qgroup_account_extents() there must be a commit root switch. Normally this is OK, as btrfs_qgroup_accounting_extents() is only called inside btrfs_commit_transaction() just be

Re: [PATCH v8 19/27] btrfs: try more times to alloc metadata reserve space

2016-04-22 Thread Josef Bacik
On 03/21/2016 09:35 PM, Qu Wenruo wrote: From: Wang Xiaoguang In btrfs_delalloc_reserve_metadata(), the number of metadata bytes we try to reserve is calculated by the difference between outstanding_extents and reserved_extents. When reserve_metadata_bytes() fails

Re: About fi du and reflink/dedupe

2016-04-22 Thread Mark Fasheh
On Fri, Apr 22, 2016 at 10:57:29AM +0800, Qu Wenruo wrote: > Hi Mark, > > Thanks for your contribution to btrfs-filesystem-du command. > > However there seems to be some strange behavior related to > reflinke(and further in-band dedupe). > (And the root cause is lying quite deep into kernel

Re: Install to or Recover RAID Array Subvolume Root?

2016-04-22 Thread David Alcorn
On 4/19/16, Nicholas D Steeves wrote: > Is your flash drive formatted btrfs? If it is, you could always > snapshot it, send the snapshot to your array, set property of that > subvolume to RW, chroot, update fstab to mount / with the appropriate > subvol=option, update

Fwd: KERNEL PANIC + CORRUPTED BTRFS?

2016-04-22 Thread lenovomi
Hello there, any idea what are the next steps that i can proceed? thank you -- Forwarded message -- From: lenovomi Date: Thu, Apr 21, 2016 at 9:29 AM Subject: Re: KERNEL PANIC + CORRUPTED BTRFS? To: Qu Wenruo Hello, files are

Re: [PATCH v4 6/9] Btrfs: implement the free space B-tree

2016-04-22 Thread Alex Lyakas
Hi Omar, Chris, I have reviewed the free-space-tree code. It is a very nice feature. However, I have a basic understanding question. Let's say we are running a delayed ref which inserts a new EXTENT_ITEM into the extent tree, e.g., we are in alloc_reserved_file_extent. At this point we call

Re: Question: raid1 behaviour on failure

2016-04-22 Thread Satoru Takeuchi
On 2016/04/22 14:32, Qu Wenruo wrote: Satoru Takeuchi wrote on 2016/04/22 11:21 +0900: On 2016/04/21 20:58, Qu Wenruo wrote: On 04/21/2016 03:45 PM, Satoru Takeuchi wrote: On 2016/04/21 15:23, Satoru Takeuchi wrote: On 2016/04/20 14:17, Matthias Bodenbinder wrote: Am 18.04.2016 um 09:22

Re: Question: raid1 behaviour on failure

2016-04-22 Thread Qu Wenruo
Matthias Bodenbinder wrote on 2016/04/21 19:40 +0200: Am 21.04.2016 um 07:43 schrieb Qu Wenruo: There are already unmerged patches which will partly do the mdadm level behavior, like automatically change to degraded mode without making the fs RO. The original patchset: