summaryrefslogtreecommitdiff
path: root/file-item.c
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2014-09-04 10:27:48 +0800
committerDavid Sterba <dsterba@suse.cz>2014-09-14 19:06:10 +0200
commit6a47725a6fb8a463dd60611800222c7297195588 (patch)
tree4e47572ab48693c24b467c7da597389418812884 /file-item.c
parent24f5a651d94678746dc8a72f28d49c36e33051e7 (diff)
btrfs-progs: fix find_mount_root() to handle duplicated mount point correctly
Original find_mount_root() will use the first mount point match and return it. It was OK until the following commit, which will also check the fstype: de22c28ef31d9721606ba059 btrfs-progs: Check fstype in find_mount_root() With fstype check, we should check the last match, not only the first one. Or the following mount will not pass the find_mount_root(): /dev/sdc on /mnt/test type ext4 (rw,relatime,data=ordered) /dev/sdb on /mnt/test type btrfs (rw,relatime,space_cache) This patch will use the last match to do the fstype check. Reported-by: Remco Hosman <remco@yerf-it.nl> Signed-off-by: Remco Hosman <remco@yerf-it.nl> Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Reviewed-by: Omar Sandoval <osandov@osandov.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'file-item.c')
0 files changed, 0 insertions, 0 deletions