diff options
author | Xin Zhong <xin.zhong@intel.com> | 2011-04-06 07:33:51 (GMT) |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-04-12 00:26:50 (GMT) |
commit | e15d0542426f063dc53b4c51bdfc11e0bbe4d298 (patch) | |
tree | 29299313a855f1533e4d55500d17c317d3b8f078 /fs/btrfs/extent_io.c | |
parent | 13f2696f1da9700d401db0ac2bc27ebc17068b22 (diff) | |
download | linux-fsl-qoriq-e15d0542426f063dc53b4c51bdfc11e0bbe4d298.tar.xz |
Btrfs: fix subvolume mount by name problem when default mount subvolume is set
We create two subvolumes (meego_root and meego_home) in
btrfs root directory. And set meego_root as default mount
subvolume. After we remount btrfs, meego_root is mounted
to top directory by default. Then when we try to mount
meego_home (subvol=meego_home) to a subdirectory, it failed.
The problem is when default mount subvolume is set to
meego_root, we search meego_home in meego_root but can not find
it. So the solution is to add a new mount option (subvolrootid)
to specify subvol id of root and search subvol name in it. For
our case, now we can use "-o subvolrootid=0,subvol=meego_home)
to mount meego_home.
Detail information can be found in meego bugzilla:
https://bugs.meego.com/show_bug.cgi?id=15055
Signed-off-by: Zhong, Xin <xin.zhong@intel.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
0 files changed, 0 insertions, 0 deletions