Re: [PATCH 1/2] btrfs: Call mount_subtree() even 'subvolid=' mount option is given.

2014-07-24 Thread David Sterba
On Wed, Jul 16, 2014 at 12:07:10PM +0800, Qu Wenruo wrote: btrfs uses differnet routine to handle 'subvolid=' and 'subvol=' mount option. Given 'subvol=' mount option, btrfs will mount btrfs first and then call mount_subtree() to mount a subtree of btrfs, making vfs handle the path searching.

Re: [PATCH 1/2] btrfs: Call mount_subtree() even 'subvolid=' mount option is given.

2014-07-24 Thread Qu Wenruo
of patch name, I didn't add the v2 tag. Thanks, Qu Original Message Subject: Re: [PATCH 1/2] btrfs: Call mount_subtree() even 'subvolid=' mount option is given. From: David Sterba dste...@suse.cz To: Qu Wenruo quwen...@cn.fujitsu.com Date: 2014年07月24日 20:48 On Wed, Jul 16, 2014

Re: [PATCH 1/2] btrfs: Call mount_subtree() even 'subvolid=' mount option is given.

2014-07-18 Thread Chandan Rajendra
On Wednesday 16 Jul 2014 12:07:10 Qu Wenruo wrote: +/* Find the path for given subvol_objectid. + * Caller needs to readlock the root tree and kzalloc PATH_MAX for + * subvol_name and namebuf */ +static char *find_subvol_by_id(struct btrfs_root *root, u64 subvol_objectid) +{ + struct

Re: [PATCH 1/2] btrfs: Call mount_subtree() even 'subvolid=' mount option is given.

2014-07-18 Thread Qu Wenruo
Original Message Subject: Re: [PATCH 1/2] btrfs: Call mount_subtree() even 'subvolid=' mount option is given. From: Chandan Rajendra chan...@linux.vnet.ibm.com To: Qu Wenruo quwen...@cn.fujitsu.com Date: 2014年07月18日 14:25 On Wednesday 16 Jul 2014 12:07:10 Qu Wenruo wrote

[PATCH 1/2] btrfs: Call mount_subtree() even 'subvolid=' mount option is given.

2014-07-15 Thread Qu Wenruo
btrfs uses differnet routine to handle 'subvolid=' and 'subvol=' mount option. Given 'subvol=' mount option, btrfs will mount btrfs first and then call mount_subtree() to mount a subtree of btrfs, making vfs handle the path searching. This is good since vfs layer know extactly that a subtree mount