Extend BTRFS_IOC_DEVICES_READY for degraded RAID

2015-01-05 Thread Harald Hoyer
We have BTRFS_IOC_DEVICES_READY to report, if all devices are present, so that a udev rule can report ID_BTRFS_READY and SYSTEMD_READY. I think we need a third state here for a degraded RAID, which can be mounted, but should only after a certain timeout/kernel command line params. We also have

Problem with applying incremental btrfs-send

2014-09-03 Thread Harald Hoyer
Hi, maybe someone can enlighten me. I am doing btrfs send receive with full snapshots and incremental updates. It basically looks like this: vol-0 and vol-1 are full subvolume image sends. inc-1 and inc-2 are incremental images with: # btrfs send -f inc-1 -p vol vol' # btrfs send -f inc-2 -p

Re: [RFC PATCH] Revert btrfs: allow mounting btrfs subvolumes with different ro/rw options

2014-07-02 Thread Harald Hoyer
On 01.07.2014 18:36, Chris Mason wrote: On 07/01/2014 11:32 AM, David Sterba wrote: (adding Harald to CC) On Tue, Jul 01, 2014 at 05:30:01PM +0800, Qu Wenruo wrote: This reverts commit 0723a0473fb48a1c93b113a28665b64ce5faf35a. This commit has the following problem: 1) Break the ro mount

Re: [PATCH] btrfs: allow mounting btrfs subvolumes with different ro/rw options

2013-11-19 Thread Harald Hoyer
On 11/18/2013 11:53 AM, David Sterba wrote: On Sat, Sep 14, 2013 at 01:26:22PM +0200, Harald Hoyer wrote: Any comments? Not even a no, we don't want that ? Please resend. david done -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message

Re: [PATCH] btrfs: allow mounting btrfs subvolumes with different ro/rw options

2013-09-14 Thread Harald Hoyer
On 09/02/2013 12:55 PM, Harald Hoyer wrote: On 06/18/2013 05:29 PM, har...@redhat.com wrote: From: Harald Hoyer har...@redhat.com Given the following /etc/fstab entries: /dev/sda3 /mnt/foo btrfs subvol=foo,ro 0 /dev/sda3 /mnt/bar btrfs subvol=bar,rw 0 you can't issue: $ mount /mnt/foo

Re: [PATCH] btrfs: allow mounting btrfs subvolumes with different ro/rw options

2013-09-02 Thread Harald Hoyer
On 06/18/2013 05:29 PM, har...@redhat.com wrote: From: Harald Hoyer har...@redhat.com Given the following /etc/fstab entries: /dev/sda3 /mnt/foo btrfs subvol=foo,ro 0 /dev/sda3 /mnt/bar btrfs subvol=bar,rw 0 you can't issue: $ mount /mnt/foo $ mount /mnt/bar You would have to do

Re: [RFC] A way to tell if all the devices in a file system are available

2012-07-10 Thread Harald Hoyer
Am 21.06.2012 22:10, schrieb Josef Bacik: Harald Hoyer has had this as a feature request for ages and I've finally gotten around to hacking something up. This is probably going to get bikeshedded to death, bring it on, I'm not married to any of the behaviors in these patches, I just want

Re: [RFC] A way to tell if all the devices in a file system are available

2012-06-22 Thread Harald Hoyer
On 06/21/2012 10:10 PM, Josef Bacik wrote: Harald Hoyer has had this as a feature request for ages and I've finally gotten around to hacking something up. This is probably going to get bikeshedded to death, bring it on, I'm not married to any of the behaviors in these patches, I just want