]> err.no Git - util-linux/commit
mount: handle filesystems with subtype
authorMiklos Szeredi <miklos@szeredi.hu>
Fri, 27 Aug 2010 14:58:44 +0000 (16:58 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 27 Aug 2010 18:23:19 +0000 (20:23 +0200)
commitdc0a335554eafa643c7fd123d99e14df72c515c3
tree846e8d88852d6db9b7b2c6454dad589a7bcf6f4e
parent0828125895f7323e39b87673dbdbef4c70da5fdb
mount: handle filesystems with subtype

Linux can handle filesystem types with "MAINTYPE.SUBTYPE" format,
where the main type determines the actual filesystem driver while the
subtype can be interpreted by the filesystem itself.

When searching for mount helpers mount(8) and umount(8) should also
interpret such types, falling back to (u)mount.MAINTYPE if
(u)mount.MAINTYPE.SUBTYPE doesn't exist.

This patch implements this, passing the type with "-t TYPE"
to the mount program in this case.

Reported-by: Josef Bacik <josef@redhat.com>
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=625064
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
mount/mount.c
mount/umount.c