findmnt: use ID to detect tree-ability
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
4b5ec23c5a
commit
abd584bee0
1 changed files with 1 additions and 1 deletions
|
@ -895,7 +895,7 @@ static int tab_is_tree(struct libmnt_table *tb)
|
|||
|
||||
rc = (mnt_table_next_fs(tb, itr, &fs) == 0 &&
|
||||
mnt_fs_is_kernel(fs) &&
|
||||
mnt_fs_get_root(fs));
|
||||
mnt_fs_get_id(fs));
|
||||
|
||||
mnt_free_iter(itr);
|
||||
return rc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue