<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/sbin/mount, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2020-08-19T17:09:58Z</updated>
<entry>
<title>Move the mount name to bit mapping into sys/mount.h so it can be shared with the</title>
<updated>2020-08-19T17:09:58Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2020-08-19T17:09:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=08b242aeeed2108767072265833997d1b6ec2098'/>
<id>urn:sha1:08b242aeeed2108767072265833997d1b6ec2098</id>
<content type='text'>
kernel.

Discussed with: kib@
Reviewed by: kirk@ (prior version)
Sponsored by: Netflix
Diffential Revision: https://reviews.freebsd.org/D25969
</content>
</entry>
<entry>
<title>All the other printf() calls cast to (void) here, do the two newer ones for</title>
<updated>2020-08-07T02:48:19Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2020-08-07T02:48:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=57d4cc2c58b361cac8cae0b48ee094b6ea6870f1'/>
<id>urn:sha1:57d4cc2c58b361cac8cae0b48ee094b6ea6870f1</id>
<content type='text'>
consistency.
</content>
</entry>
<entry>
<title>Add two options to allow mount to avoid covering up existing mount points.</title>
<updated>2019-09-23T04:28:07Z</updated>
<author>
<name>Sean Eric Fagan</name>
<email>sef@FreeBSD.org</email>
</author>
<published>2019-09-23T04:28:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=ba7a55d93465725fd860066d95d4e910c3c027c2'/>
<id>urn:sha1:ba7a55d93465725fd860066d95d4e910c3c027c2</id>
<content type='text'>
The two options are

* nocover/cover:  Prevent/allow mounting over an existing root mountpoint.
E.g., "mount -t ufs -o nocover /dev/sd1a /usr/local" will fail if /usr/local
is already a mountpoint.
* emptydir/noemptydir:  Prevent/allow mounting on a non-empty directory.
E.g., "mount -t ufs -o emptydir /dev/sd1a /usr" will fail.

Neither of these options is intended to be a default, for historical and
compatibility reasons.

Reviewed by:	allanjude, kib
Differential Revision:	https://reviews.freebsd.org/D21458
</content>
</entry>
<entry>
<title>Allow "update" option to be used in the fstab(5). Document possible use case.</title>
<updated>2019-07-22T20:04:55Z</updated>
<author>
<name>Maxim Sobolev</name>
<email>sobomax@FreeBSD.org</email>
</author>
<published>2019-07-22T20:04:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=634add3c8d08b6e6f49b54baf8b672142173b35f'/>
<id>urn:sha1:634add3c8d08b6e6f49b54baf8b672142173b35f</id>
<content type='text'>
Approved by:	mckusick
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D18586
</content>
</entry>
<entry>
<title>Add a new "untrusted" option to the mount command. Its purpose</title>
<updated>2019-07-01T23:22:26Z</updated>
<author>
<name>Kirk McKusick</name>
<email>mckusick@FreeBSD.org</email>
</author>
<published>2019-07-01T23:22:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=daba4da81d54d184404ac7b9925cb3fb37cb8116'/>
<id>urn:sha1:daba4da81d54d184404ac7b9925cb3fb37cb8116</id>
<content type='text'>
is to notify the kernel that the file system is untrusted and it
should use more extensive checks on the file-system's metadata
before using it. This option is intended to be used when mounting
file systems from untrusted media such as USB memory sticks or other
externally-provided media.

It will initially be used by the UFS/FFS file system, but should
likely be expanded to be used by other file systems that may appear
on external media like msdosfs, exfat, and ext2fs.

Reviewed by:  kib
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D20786
</content>
</entry>
<entry>
<title>Exercise some care before sending SIGHUP to mountd.</title>
<updated>2019-04-08T18:16:49Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2019-04-08T18:16:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=7bead17ddc28dbbd27424a098f3a8834500351bf'/>
<id>urn:sha1:7bead17ddc28dbbd27424a098f3a8834500351bf</id>
<content type='text'>
Reviewed by:	antoine, emaste, oshogbo
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D19847
</content>
</entry>
<entry>
<title>When getting mount information for all filesystems, mount uses the</title>
<updated>2018-08-07T21:17:45Z</updated>
<author>
<name>Kirk McKusick</name>
<email>mckusick@FreeBSD.org</email>
</author>
<published>2018-08-07T21:17:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=4818bd986c8954a9f112de832490a8dc7190baf3'/>
<id>urn:sha1:4818bd986c8954a9f112de832490a8dc7190baf3</id>
<content type='text'>
getfsstat(2) system call using the MNT_NOWAIT flag to indicate that
it wants to use the statfs information cached in the mount structure.
When the -v (verbose) flag is specified, we need to use the MNT_WAIT
flag to getfsstat(2) so that kernel will call VFS_STATFS to get the
current statfs statistics from each filesystem.

Sponsored by:	Netflix
</content>
</entry>
<entry>
<title>Fix synopsis of the -t option.</title>
<updated>2018-08-06T11:38:55Z</updated>
<author>
<name>Mateusz Piotrowski</name>
<email>0mp@FreeBSD.org</email>
</author>
<published>2018-08-06T11:38:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=70866c8dbdb6c4565737f70c73b10992a6257b21'/>
<id>urn:sha1:70866c8dbdb6c4565737f70c73b10992a6257b21</id>
<content type='text'>
While here:

 - Remove deprecated ".Tn" macros.
 - Improve formatting and fix typos in the description of
   the -t option.

Reviewed by:	bcr
Approved by:	mat (mentor)
Differential Revision:	https://reviews.freebsd.org/D16541
</content>
</entry>
<entry>
<title>vfs_donmount: in certain cases try r/o mount if r/w mount fails</title>
<updated>2018-03-27T14:31:42Z</updated>
<author>
<name>Andriy Gapon</name>
<email>avg@FreeBSD.org</email>
</author>
<published>2018-03-27T14:31:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=31260bf042555bba6523d127ed80172bb97c1839'/>
<id>urn:sha1:31260bf042555bba6523d127ed80172bb97c1839</id>
<content type='text'>
If the operation is not an update, if neither r/w nor r/o mode is
explicitly requested, if the error code hints at the possibility of the
media being read-only, and if the fallback is allowed, then we can try
to automatically downgrade to the readonly mode.

This is especially useful for auto-mounting of removable media that
sometimes can happen to be write-protected.

The fallback to r/o is not enabled by default.  It can be requested on a
per-mount basis with a new mount option, 'autoro'.  Or it can be
globally allowed by setting vfs.default_autoro.

Reviewed by:	cem, kib
MFC after:	3 weeks
Relnotes:	yes
Differential Revision: https://reviews.freebsd.org/D13361
</content>
</entry>
<entry>
<title>Remove decade's old whine about msdos vs msdosfs.</title>
<updated>2018-03-09T21:32:07Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2018-03-09T21:32:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=0b8c33590abff3c5aae969219197f3c193d16c68'/>
<id>urn:sha1:0b8c33590abff3c5aae969219197f3c193d16c68</id>
<content type='text'>
Retain the compatibility silently though.

Reviewed by: cem@, kevans@, emaste@ (and many others in the past)
</content>
</entry>
</feed>
