mount: supports paths canonicalization for alternative fstabs
# mount --fstab /path/my.fstab has to support standard operations with paths. Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
b2cbe99f33
commit
59414c6b4a
|
@ -898,6 +898,16 @@ int main(int argc, char **argv)
|
||||||
argc -= optind;
|
argc -= optind;
|
||||||
argv += optind;
|
argv += optind;
|
||||||
|
|
||||||
|
if (fstab && !mnt_context_is_nocanonicalize(cxt)) {
|
||||||
|
/*
|
||||||
|
* We have external (context independent) fstab instance, let's
|
||||||
|
* make a connection between the fstab and the canonicalization
|
||||||
|
* cache.
|
||||||
|
*/
|
||||||
|
struct libmnt_cache *cache = mnt_context_get_cache(cxt);
|
||||||
|
mnt_table_set_cache(fstab, cache);
|
||||||
|
}
|
||||||
|
|
||||||
if (!mnt_context_get_source(cxt) &&
|
if (!mnt_context_get_source(cxt) &&
|
||||||
!mnt_context_get_target(cxt) &&
|
!mnt_context_get_target(cxt) &&
|
||||||
!argc &&
|
!argc &&
|
||||||
|
|
Loading…
Reference in New Issue