{
char *root = NULL;
const char *mnt = NULL;
- const char *fstype;
struct libmnt_fs *src_fs = NULL;
assert(fs);
DBG(TAB, ul_debug("lookup fs-root for '%s'", mnt_fs_get_source(fs)));
- fstype = mnt_fs_get_fstype(fs);
-
if (tb && (mountflags & MS_BIND)) {
const char *src, *src_root;
char *xsrc = NULL;
/*
* btrfs-subvolume mount -- get subvolume name and use it as a root-fs path
*/
- else if (tb && fstype && (!strcmp(fstype, "btrfs") || !strcmp(fstype, "auto"))) {
+ else if (tb && fs->fstype &&
+ (!strcmp(fs->fstype, "btrfs") || !strcmp(fs->fstype, "auto"))) {
if (get_btrfs_fs_root(tb, fs, &root) < 0)
goto err;
}