freebsd-skq/sbin/mount
Edward Tomasz Napierala 1f3aded066 Fix "mount -uw /" when the filesystem type doesn't match.
This basically makes "mount -uw /" work when the filesystem
mounted on / is NFS, but the one configured in fstab(5) is UFS,
which can happen when you forget to modify fstab.

Note that the whole special case ("else if (argv[0][0] == '/'")
is probably not needed anyway.  I'll take a look at removing it
altogether; for now this is a minimally intrusive fix.

MFC after:	2 weeks
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D11323
2017-07-08 11:06:27 +00:00
..
extern.h
getmntopts.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
getmntopts.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
Makefile Move mount.conf(8) to mount.conf(5); it's a kernel configuration file 2017-05-28 18:07:53 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
mntopts.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mount_fs.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mount.8 Add a post-humous manpage for cd9660(5), the ISO-9660 file system 2017-03-23 02:57:08 +00:00
mount.c Fix "mount -uw /" when the filesystem type doesn't match. 2017-07-08 11:06:27 +00:00
pathnames.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
vfslist.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00