Re: [PATCH v2] Btrfs: deal with all 'subvol=xxx' options once

2014-11-25 Thread Wang Shilong
> > On Tue, Nov 25, 2014 at 04:20:11PM +0800, Wang Shilong wrote: >> Steps to reproduce: >> # mkfs.btrfs -f /dev/sdb >> # mount -t btrfs /dev/sdb /mnt >> # btrfs sub create /mnt/dir >> # mount -t btrfs /dev/sdb /mnt -o subvol=dir,subvol=dir >> >> It fails with: >> mount: mount(2) failed: No such

Re: [PATCH v2] Btrfs: deal with all 'subvol=xxx' options once

2014-11-25 Thread David Sterba
On Tue, Nov 25, 2014 at 04:20:11PM +0800, Wang Shilong wrote: > Steps to reproduce: > # mkfs.btrfs -f /dev/sdb > # mount -t btrfs /dev/sdb /mnt > # btrfs sub create /mnt/dir > # mount -t btrfs /dev/sdb /mnt -o subvol=dir,subvol=dir > > It fails with: > mount: mount(2) failed: No such file or

[PATCH v2] Btrfs: deal with all 'subvol=xxx' options once

2014-11-25 Thread Wang Shilong
Steps to reproduce: # mkfs.btrfs -f /dev/sdb # mount -t btrfs /dev/sdb /mnt # btrfs sub create /mnt/dir # mount -t btrfs /dev/sdb /mnt -o subvol=dir,subvol=dir It fails with: mount: mount(2) failed: No such file or directory Btrfs deal with subvolume mounting in a recursive way, to avoid loo