btrfs: Fix booting off a btrfs subvolume.
authorAlexander E. Patrakov <patrakov@gmail.com>
Mon, 4 Jun 2012 17:59:55 +0000 (23:59 +0600)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 4 Jun 2012 20:11:56 +0000 (13:11 -0700)
commit269ebc845ebc8b46ef4b0be7fa0005c7fdb95b8d
tree1aa2833be9c940ff9266744fec759a943386d037
parentba42e1409ece2e9d56728e0ee6a6342c05ec6e52
btrfs: Fix booting off a btrfs subvolume.

The subvolume name in path.data is not NUL-terminated, so don't use
strcmp on it.

Before this patch, it would accumulate the following (given
subvolumes with names "ext2_saved", "home", "gentoo" and "boot"):

ext2_saved
home_saved
gentooaved
bootooaved

Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
core/fs/btrfs/btrfs.c