[u]mount: extend -t option (Roy Marples <uberlord@gentoo.org>)

This commit is contained in:
Denis Vlasenko
2007-04-05 21:57:47 +00:00
parent df5bbb938a
commit bf295dd5b6
4 changed files with 12 additions and 6 deletions

View File

@ -77,6 +77,7 @@ struct {
{"defaults", 0},
/* {"quiet", 0}, - do not filter out, vfat wants to see it */
{"noauto", MOUNT_NOAUTO},
{"sw", MOUNT_SWAP},
{"swap", MOUNT_SWAP},
USE_DESKTOP({"user", MOUNT_USERS},)
USE_DESKTOP({"users", MOUNT_USERS},)
@ -1703,9 +1704,7 @@ int mount_main(int argc, char **argv)
} else {
// Do we need to match a filesystem type?
// TODO: support "-t type1,type2"; "-t notype1,type2"
if (fstype && strcmp(mtcur->mnt_type, fstype)) continue;
if (fstype && match_fstype(mtcur, fstype)) continue;
// Skip noauto and swap anyway.