History log of /freebsd-current/sbin/mount/mount.8
Revision Date Author Comments
# 1a720cbe 15-May-2024 Alexander Ziaee <concussious@runbox.com>

man filesystems: fix xrefs after move to section 4

Reviewed by: des, imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1077


# 54d31cfb 24-Jan-2024 Ed Maste <emaste@FreeBSD.org>

mount: document atime option

atime is enabled by default, but may be specified explicitly so that any
future change in the default would not have an effect on a given mount.

Reviewed by: olce, rgrimes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D43580


# 393f2dca 15-Jan-2024 Warner Losh <imp@FreeBSD.org>

mount: Add a note that userquota and groupquota aren't printed with -p

The quota options are pseudo options and not passed to the mount system
call when a filesystem is mounted. They are not part of the info
returned from getmntinfo(3), so can't be printed. Add a note to this
effect.


# 51e16cb8 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

sbin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# 4b38c532 04-Oct-2023 Jose Luis Duran <jlduran@gmail.com>

mount.8: Mention tarfs(5)

Reviewed by: markj
MFC after: 1 week
Pull Request: https://github.com/freebsd/freebsd-src/pull/856


# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# e67af79c 14-Aug-2022 Jens Schweikhardt <schweikh@FreeBSD.org>

Delete xref to suidperl(1) which has long since been removed in perl5.12.


# 8772a911 17-Mar-2022 Robert Wing <rew@FreeBSD.org>

mount.8: mention that the snapshot option is exclusive

When using the snapshot option, all other options are ignored. This
update reflects changes made in ab2dbd9b871d.

Reviewed by: 0mp, mckusick
Differential Revision: https://reviews.freebsd.org/D34584


# e725ee7e 23-Sep-2021 Cameron Katri <me@cameronkatri.com>

mount: add libxo(3) support

Adds --libxo to mount(8).

Differential Revision: https://reviews.freebsd.org/D30341


# ba7a55d9 22-Sep-2019 Sean Eric Fagan <sef@FreeBSD.org>

Add two options to allow mount to avoid covering up existing mount points.
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


# daba4da8 01-Jul-2019 Kirk McKusick <mckusick@FreeBSD.org>

Add a new "untrusted" option to the mount command. Its purpose
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


# 70866c8d 06-Aug-2018 Mateusz Piotrowski <0mp@FreeBSD.org>

Fix synopsis of the -t option.

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


# 31260bf0 27-Mar-2018 Andriy Gapon <avg@FreeBSD.org>

vfs_donmount: in certain cases try r/o mount if r/w mount fails

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


# acc3e913 22-Mar-2017 Enji Cooper <ngie@FreeBSD.org>

Add a post-humous manpage for cd9660(5), the ISO-9660 file system

Describe (briefly) how to compile the filesystem into the kernel and
load as a module.

Reference cd9660(5) in mount(8) and mount_cd9660(8).

MFC after: 1 month
Sponsored by: Dell EMC Isilon


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96


# 0b0d825a 13-Oct-2015 Enji Cooper <ngie@FreeBSD.org>

Replace references to /dev/acd0 with /dev/cd0

atapicd(4) was replaced by cd(4) with the atacam work done by
mav@ and then removed in r249083

X-MFC to: stable/10
MFC after: 2 weeks


# 4e25c86f 18-Apr-2015 Edward Tomasz Napierala <trasz@FreeBSD.org>

Remove some oldnfs remnants.

Differential Revision: https://reviews.freebsd.org/D2287
Reviewed by: rmacklem@
Sponsored by: The FreeBSD Foundation


# c09eb466 27-Dec-2014 Joel Dahl <joel@FreeBSD.org>

mdoc: improvements to SEE ALSO.


# be3a49ee 10-Dec-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add fstyp(8). This utility, named after its SVR4 counterpart, detects
filesystems. It differs from file(1) in that it gives machine-parseable
output, it outputs filesystem labels, doesn't get confused by other
formats metadata, and runs in Capsicum sandbox.

Differential Revision: https://reviews.freebsd.org/D1255
Relnotes: yes
Sponsored by: The FreeBSD Foundation


# 9df66c85 22-Nov-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Cross-reference automount(8) from mount(8).

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# 543bed93 20-Aug-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add description for the "automounted" mount flag.

Reviewed by: emaste@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation


# 47350fa5 06-Aug-2014 Steven Kreuzer <skreuzer@FreeBSD.org>

Mention tmpfs(5)

PR: 192389
Submitted by: yaneurabeya@gmail.com
Approved by: hrs (mentor)


# fc98db27 15-Jul-2013 Robert Millan <rmh@FreeBSD.org>

Add -n flag for compatibility with Linux version of mount(8).

Reviewed by: freebsd-fs, eadler, mckusick, jh, wblock


# 237abf0c 28-Jun-2013 Davide Italiano <davide@FreeBSD.org>

- Trim an unused and bogus Makefile for mount_smbfs.
- Reconnect with some minor modifications, in particular now selsocket()
internals are adapted to use sbintime units after recent'ish calloutng
switch.


# 4feadec3 07-Jun-2013 Jaakko Heinonen <jh@FreeBSD.org>

Revert r238399.

The "failok" option doesn't have any effect at all unless specified in
fstab(5) and combined with the -a flag. The "failok" option is already
documented in fstab(5).

PR: 177630
No objection: eadler
MFC after: 1 week


# b48b774f 04-May-2013 Chris Rees <crees@FreeBSD.org>

Introduce and use new flag -L to mount for mounting only late filesystems.

Previously, rc.d/mountlate mounted *all* filesystems, causing problems with
background NFS mounts being mounted twice.

PR: conf/137629
Submitted by: eadler (original concept)
Reviewed by: mjg
Approved by: hrs


# 2e564269 17-Oct-2012 Attilio Rao <attilio@FreeBSD.org>

Disconnect non-MPSAFE SMBFS from the build in preparation for dropping
GIANT from VFS. In addition, disconnect also netsmb, which is a base
requirement for SMBFS.

In the while SMBFS regular users can use FUSE interface and smbnetfs
port to work with their SMBFS partitions.

Also, there are ongoing efforts by vendor to support in-kernel smbfs,
so there are good chances that it will get relinked once properly locked.

This is not targeted for MFC.


# a42ac676 17-Oct-2012 Attilio Rao <attilio@FreeBSD.org>

Disconnect non-MPSAFE NTFS from the build in preparation for dropping
GIANT from VFS. This code is particulary broken and fragile and other
in-kernel implementations around, found in other operating systems,
don't really seem clean and solid enough to be imported at all.
If someone wants to reconsider in-kernel NTFS implementation for
inclusion again, a fair effort for completely fixing and cleaning it
up is expected.

In the while NTFS regular users can use FUSE interface and ntfs-3g
port to work with their NTFS partitions.

This is not targeted for MFC.


# e6116d5b 17-Oct-2012 Attilio Rao <attilio@FreeBSD.org>

Disconnect non-MPSAFE NWFS from the build in preparation for dropping
GIANT from VFS. In addition, disconnect also netncp, which is a base
requirement for NWFS.

In the possibility of a future maintenance of the code and later
readd to the FreeBSD base, maybe we should think about a better location
for netncp. I'm not entirely sure the / top location is actually right,
however I will let network people to comment on that more specifically.

This is not targeted for MFC.


# 55793cdc 16-Oct-2012 Attilio Rao <attilio@FreeBSD.org>

Disconnect non-MPSAFE PORTALFS from the build in preparation for dropping
GIANT from VFS.

This is not targeted for MFC.


# 42923317 15-Oct-2012 Eitan Adler <eadler@FreeBSD.org>

Fix minor nits:
use a comma after "i.e."
sentences begin on new lines.

No .Dd bump for trivial modification.

Approved by: wblock
MFC after: 3 days


# 74794314 12-Jul-2012 Eitan Adler <eadler@FreeBSD.org>

Document the behavior of mount with failok specified.

PR: docs/163742
Submitted by: gcooper
Discussion by: gcooper
Discussion by: bjk
Approved by: gabor
MFC after: 3 days


# 344c81a1 23-May-2012 Warren Block <wblock@FreeBSD.org>

Fixes to man8 groff mandoc style, usage mistakes, or typos.

PR: 168016
Submitted by: Nobuyuki Koganemaru
Approved by: gjb
MFC after: 3 days


# d452fb8a 06-Jun-2011 Gavin Atkinson <gavin@FreeBSD.org>

Add another example to mount(8) on using the "-o" argument.

PR: docs/157389
Submitted by: Warren Block <wblock wonkity.com>
MFC after: 1 week


# 859aaa88 28-Apr-2011 Rick Macklem <rmacklem@FreeBSD.org>

Another man page update related to the switchover of the
NFS clients done by r221124.
This is a content change.

Submitted by: jh


# 2960733f 25-Feb-2011 Doug Barton <dougb@FreeBSD.org>

Revert r217871.


# 096d9150 25-Jan-2011 Doug Barton <dougb@FreeBSD.org>

Clarify the availability of the noatime option on network file systems


# 18709a09 20-Nov-2010 Kirk McKusick <mckusick@FreeBSD.org>

Delete /sys/ufs/ffs/README.snapshot as it is no longer relevant.
Drop reference to it in mount(8).

MFC: 3 days


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# 7f482407 29-May-2010 Jilles Tjoelker <jilles@FreeBSD.org>

Clarify devfs manpages slightly.

mount(8): add xref to devfs(5)
devfs(5): change example to something more likely to be useful (it is not
necessary to mount a devfs on /dev manually, but for chroots/jails it is
often needed), mention since when devfs is preferred to device nodes on ufs

PR: 146600
MFC after: 2 weeks


# 0afc94c1 12-May-2010 Ulrich Spörlein <uqs@FreeBSD.org>

mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the
bottom of the manpages and order them consistently.

GNU groff doesn't care about the ordering, and doesn't even mention
CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put
them.

Found by: mdocml lint run
Reviewed by: ru


# 2a1c82e4 12-May-2010 Jaakko Heinonen <jh@FreeBSD.org>

MFC r203757:

- Remove reference to nfs4. mount_nfs4(8) was removed in r192578.
- Add newnfs.


# 0718d64d 18-Apr-2010 Edward Tomasz Napierala <trasz@FreeBSD.org>

MFC r200796:

Implement NFSv4 ACL support for UFS.

Reviewed by: rwatson


# f2f6fe30 27-Mar-2010 Edward Tomasz Napierala <trasz@FreeBSD.org>

MFC r199182:

Add links to zfs(8) and zpool(8) to mount(8) manual page.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 24e2959e 10-Feb-2010 Jaakko Heinonen <jh@FreeBSD.org>

- Remove reference to nfs4. mount_nfs4(8) was removed in r192578.
- Add newnfs.


# 9340fc72 21-Dec-2009 Edward Tomasz Napierala <trasz@FreeBSD.org>

Implement NFSv4 ACL support for UFS.

Reviewed by: rwatson


# 40350c1b 10-Nov-2009 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add links to zfs(8) and zpool(8) to mount(8) manual page.


# 18713ab6 15-Sep-2009 Pawel Jakub Dawidek <pjd@FreeBSD.org>

MFC r196456,r196457,r196458,r196662,r196702,r196703,r196919,r196927,r196928,
r196943,r196944,r196947,r196950,r196953,r196954,r196965,r196978,r196979,
r196980,r196982,r196985,r196992,r197131,r197133,r197150,r197151,r197152,
r197153,r197167,r197172,r197177,r197200,r197201:

r196456:
- Give minclsyspri and maxclsyspri real values (consulted with kmacy).
- Honour 'pri' argument for thread_create().

r196457:
Set priority of vdev_geom threads and zvol threads to PRIBIO.

r196458:
- Hide ZFS kernel threads under zfskern process.
- Use better (shorter) threads names:
'zvol:worker zvol/tank/vol00' -> 'zvol tank/vol00'
'vdev:worker da0' -> 'vdev da0'

r196662:
Add missing mountpoint vnode locking.
This fixes panic on assertion with DEBUG_VFS_LOCKS and vfs.usermount=1 when
regular user tries to mount dataset owned by him.

r196702:
Remove empty directory.

r196703:
Backport the 'dirtying dbuf' panic fix from newer ZFS version.

Reported by: Thomas Backman <serenity@exscape.org>

r196919:
bzero() on-stack argument, so mutex_init() won't misinterpret that the
lock is already initialized if we have some garbage on the stack.

PR: kern/135480
Reported by: Emil Mikulic <emikulic@gmail.com>

r196927:
Changing provider size is not really supported by GEOM, but doing so when
provider is closed should be ok.
When administrator requests to change ZVOL size do it immediately if ZVOL
is closed or do it on last ZVOL close.

PR: kern/136942
Requested by: Bernard Buri <bsd@ask-us.at>

r196928:
Teach zdb(8) how to obtain GEOM provider size.

PR: kern/133134
Reported by: Philipp Wuensche <cryx-freebsd@h3q.com>

r196943:
- Avoid holding mutex around M_WAITOK allocations.
- Add locking for mnt_opt field.

r196944:
Don't recheck ownership on update mount. This will eliminate LOR between
vfs_busy() and mount mutex. We check ownership in vfs_domount() anyway.

Noticed by: kib
Reviewed by: kib

r196947:
Defer thread start until we set priority.

Reviewed by: kib

r196950:
Fix detection of file system being shared. Now zfs unshare/destroy/rename
command will properly remove exported file systems.

r196953:
When snapshot mount point is busy (for example we are still in it)
we will fail to unmount it, but it won't be removed from the tree,
so in that case there is no need to reinsert it.

Reported by: trasz

r196954:
If we have to use avl_find(), optimize a bit and use avl_insert() instead of
avl_add() (the latter is actually a wrapper around avl_find() + avl_insert()).
Fix similar case in the code that is currently commented out.

r196965:
Fix reference count leak for a case where snapshot's mount point is updated.

r196978:
Call ZFS_EXIT() after locking the vnode.

r196979:
On FreeBSD we don't have to look for snapshot's mount point,
because fhtovp method is already called with proper mount point.

r196980:
When we automatically mount snapshot we want to return vnode of the mount point
from the lookup and not covered vnode. This is one of the fixes for using .zfs/
over NFS.

r196982:
We don't export individual snapshots, so mnt_export field in snapshot's
mount point is NULL. That's why when we try to access snapshots over NFS
use mnt_export field from the parent file system.

r196985:
Only log successful commands! Without this fix we log even unsuccessful
commands executed by unprivileged users. Action is not really taken, but it is
logged to pool history, which might be confusing.

Reported by: Denis Ahrens <denis@h3q.com>

r196992:
Implement __assert() for Solaris-specific code. Until now Solaris code was
using Solaris prototype for __assert(), but FreeBSD's implementation.
Both take different arguments, so we were either core-dumping in assert()
or printing garbage.

Reported by: avg

r197131:
Tighten up the check for race in zfs_zget() - ZTOV(zp) can not only contain
NULL, but also can point to dead vnode, take that into account.

PR: kern/132068
Reported by: Edward Fisk <7ogcg7g02@sneakemail.com>, kris
Fix based on patch from: Jaakko Heinonen <jh@saunalahti.fi>

r197133:
- Protect reclaim with z_teardown_inactive_lock.
- Be prepared for dbuf to disappear in zfs_reclaim_complete() and check if
z_dbuf field is NULL - this might happen in case of rollback or forced
unmount between zfs_freebsd_reclaim() and zfs_reclaim_complete().
- On forced unmount wait for all znodes to be destroyed - destruction can be
done asynchronously via zfs_reclaim_complete().

r197150:
There is a bug where mze_insert() can trigger an assert() of inserting
the same entry twice. This bug is not fixed yet, but leads to situation
where when try to access corrupted directory the kernel will panic.
Until the bug is properly fixed, try to recover from it and log that it
happened.

Reported by: marck
OpenSolaris bug: 6709336

r197151:
Be sure not to overflow struct fid.

r197152:
Extend scope of the z_teardown_lock lock for consistency and "just in case".

r197153:
When zfs.ko is compiled with debug, make sure that znode and vnode point at
each other.

r197167:
Work-around READDIRPLUS problem with .zfs/ and .zfs/snapshot/ directories
by just returning EOPNOTSUPP. This will allow NFS server to fall back to
regular READDIR.
Note that converting inode number to snapshot's vnode is expensive operation.
Snapshots are stored in AVL tree, but based on their names, not inode numbers,
so to convert inode to snapshot vnode we have to interate over all snalshots.
This is not a problem in OpenSolaris, because in their READDIRPLUS
implementation they use VOP_LOOKUP() on d_name, instead of VFS_VGET() on
d_fileno as we do.

PR: kern/125149
Reported by: Weldon Godfrey <wgodfrey@ena.com>
Analysis by: Jaakko Heinonen <jh@saunalahti.fi>

r197172:
Add missing \n.

Reported by: marck

r197177:
Support both case: when snapshot is already mounted and when it is not yet
mounted.

r197200:
Modify mount(8) to skip MNT_IGNORE file systems by default, just like df(1)
does. This is not POLA violation, because there is no single file system in the
base that use MNT_IGNORE currently, although ZFS snapshots will be mounted with
MNT_IGNORE after next commit.

Reviewed by: kib

r197201:
- Mount ZFS snapshots with MNT_IGNORE flag, so they are not visible in regular
df(1) and mount(8) output. This is a bit smilar to OpenSolaris and follows
ZFS route of not listing snapshots by default with 'zfs list' command.
- Add UPDATING entry to note that ZFS snapshots are no longer visible in
mount(8) and df(1) output by default.

Reviewed by: kib

Approved by: re (bz)


# 8abb2a6e 14-Sep-2009 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Modify mount(8) to skip MNT_IGNORE file systems by default, just like df(1)
does. This is not POLA violation, because there is no single file system in the
base that use MNT_IGNORE currently, although ZFS snapshots will be mounted with
MNT_IGNORE after next commit.

Reviewed by: kib
MFC after: 3 days


# c7835769 05-Mar-2009 Craig Rodrigues <rodrigc@FreeBSD.org>

Add a -o mountprog parameter to mount which explicitly allows
an alternative program to be used for mounting a file system.
Ideally, all file systems
should be converted to pass string arguments to nmount(), so that
/sbin/mount can handle them. However, certain file systems such as FUSE have
not done this, and want to have their own userland mount programs.

For example, to mount an NTFS file system with the FUSE NTFS driver:

mount -t ntfs -o mountprog=/usr/local/bin/ntfs-3g /dev/acd0 /mnt

or via an fstab entry:

/dev/acd0 /mnt ntfs ro,noauto,mountprog=/usr/local/bin/ntfs-3g 0 0

PR: 120784
Requested by: Dominic Fandrey


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# ac14190e 03-Jun-2008 Ruslan Ermilov <ru@FreeBSD.org>

Fix markup.


# 6d29a0b6 03-Jun-2008 Konstantin Belousov <kib@FreeBSD.org>

Add note about a reason to use mount(8) instead of mount_somefs.

Reported and proof-readed by: pho
Discussed with: rodrigc
MFC after: 3 days


# 3592acb1 11-Mar-2008 Tom McLaughlin <tmclaugh@FreeBSD.org>

- Update with a better example which shows that options specific to a
file system may be passed using -o.

Approved by: remko, rodrigc


# a818f114 10-Mar-2008 Tom McLaughlin <tmclaugh@FreeBSD.org>

- Also change the /sbin/mount_unionfs line I managed to miss just two
lines down to '-o below'.

Approved by: remko
Noticed by: rodrigc
Pointyhat by: me


# 39d63c55 10-Mar-2008 Tom McLaughlin <tmclaugh@FreeBSD.org>

- unionfs -b option is deprecated in favor of '-o below' as per
mount_unionfs(8).

Approved by: remko


# ef37e89d 27-Nov-2007 John Baldwin <jhb@FreeBSD.org>

Properly sort 'sync' in the list of options passed to -o.

MFC after: 3 days


# 65c1534b 18-Oct-2007 Craig Rodrigues <rodrigc@FreeBSD.org>

Remove stale reference to mount_std.


# 534046e3 24-Jun-2007 Rong-En Fan <rafan@FreeBSD.org>

- Remove UMAP filesystem. It was disconnected from build three years ago,
and it is seriously broken.

Discussed on: freebsd-arch@
Approved by: re (mux)


# 8266d476 18-Sep-2006 Ruslan Ermilov <ru@FreeBSD.org>

Markup fixes.


# 74109472 14-Sep-2006 Dag-Erling Smørgrav <des@FreeBSD.org>

Fix markup snafu.

Spotted by: ru


# d6649c25 08-Sep-2006 Daniel Gerzo <danger@FreeBSD.org>

Re-word the description of the "async" flag.

Suggested by: Milos Vyletel (mv@rulez.sk)
Reviewed by: ru
Approved by: keramida (mentor), trhodes (mentor)


# 4b4f9170 12-Jul-2006 Dag-Erling Smørgrav <des@FreeBSD.org>

Teach mount(8) about a 'late' keyword, which means the file system should
not be mounted unless the -l flag was specified.

Add an rc script, mountlate, which basically runs 'mount -a -l'. It runs
after DAEMON but before LOGIN.

This is useful for things like loopback mounts, because mountcritremote
runs before mountd / nfsd (since /usr might be a remote file system), so
an attempt to mount a loopback network file system in mountcritremote will
fail.

Also add a progress message to mountcritlocal, for the sake of symmetry
with similar messages in mountcritremote and mountlate.

Reviewed by: freebsd-rc
MFC after: 3 weeks


# 067eb35d 18-May-2006 Craig Rodrigues <rodrigc@FreeBSD.org>

Remove reference to mount_procfs(8), add reference to procfs(5).
mount(8) doesn't use mount_procfs(8), and instead passes an fstype
of "procfs" directly to nmount().


# c002dbe6 17-May-2006 Craig Rodrigues <rodrigc@FreeBSD.org>

Remove reference to mount_ext2fs(8), add reference to ext2fs(5).
mount no longer invokes mount_ext2fs, it calls nmount() directly
with fstype "ext2fs".


# 7c5347ae 24-Feb-2006 Craig Rodrigues <rodrigc@FreeBSD.org>

Update text to reflect that:
- mount(8) now calls the nmount(2) system call directly, not mount(2)
- specifying a filesystem type with -t will not automatically
invoke an external /sbin/mount_XXXX program....this only happens for
certain file system types. For all other file system types, nmount(2)
is called directly.


# 09b03f47 10-Jan-2006 Pav Lucistnik <pav@FreeBSD.org>

- Xref mount_reiserfs(8)

PR: docs/90902
Submitted by: Scott Robbins <scottro@nyc.rr.com>
MFC after: 3 days


# e16a2150 16-Jun-2005 Christian Brueffer <brueffer@FreeBSD.org>

Remove Xref to mount_hpfs(8), it's not hooked up to the build.

Approved by: re (blanket)
MFC after: 3 days


# 18a3dd1e 22-Mar-2005 Colin Percival <cperciva@FreeBSD.org>

Add verbiage to the description of the noexec mount option clarifying
that it really wasn't intended as a security feature.

Wording mostly by: simon
Discussed with: secteam


# 6087df9e 18-Jan-2005 Ruslan Ermilov <ru@FreeBSD.org>

Sort sections.


# 8e5c1e59 26-Dec-2004 Josef El-Rayes <josef@FreeBSD.org>

Fix typo.

Noticed by: clement


# 5f047028 29-Nov-2004 Ruslan Ermilov <ru@FreeBSD.org>

Fix the mount(8) status reporting, now that MNT_NODEV is a no-op (zero).

Asked to commit by: phk


# d04b5dfe 17-May-2004 Ruslan Ermilov <ru@FreeBSD.org>

Assorted markup, grammar, and spelling fixes.


# 4c723140 09-Apr-2004 Mark Murray <markm@FreeBSD.org>

Remove advertising clause from University of California Regent's license,
per letter dated July 22, 1999.

Approved by: core, imp


# 90b9e3f1 25-Mar-2004 Robert Watson <rwatson@FreeBSD.org>

Correct the definition of the multilabel flag: it enables multilabel
MAC support on the file system, if supported, which causes MAC to treat
each object as having its own label, rather than using a single label
for all objects on the file system. This doesn't have to be used in
combination with the tunefs/newfs flags -- it's an alternative.


# 0e9efd19 03-Mar-2004 Christian Brueffer <brueffer@FreeBSD.org>

s/considred/considered/


# ed1b9fc9 09-Feb-2004 Tom Rhodes <trhodes@FreeBSD.org>

Reorder Xrefs in SEE ALSO.


# f00a5dbd 09-Feb-2004 Tom Rhodes <trhodes@FreeBSD.org>

Update to inform users of acls and multilabel options. Add Xrefs to the
more relevant manual pages.

PR: 62394
Submitted by: Marc Silver <marcs@draenor.org>


# c14d21f6 29-Jan-2004 Guido van Rooij <guido@FreeBSD.org>

Style(9) option sorting

Submitted by: Ruslan Ermilov <ru@FreeBSD.org>


# 6f7cdc55 29-Jan-2004 Guido van Rooij <guido@FreeBSD.org>

Fix manpage and usage() to reflect that -a can be used in combination
with -o

Submitted by: Ruslan Ermilov <ru@FreeBSD.org>
Pointed out by: Ceri Davies <ceri@submonkey.net


# c80f12d0 22-Oct-2003 Sean Chittenden <seanc@FreeBSD.org>

Reduce fstab(5)/mount(8) confusion by changing the man pages to say "ro"
instead of "rdonly". "rdonly" works for mount(8) and mount_std(8) but
not from /etc/fstab, whereas "ro" works for all mount_*(8) commands.


# a0b6213b 17-May-2003 Ruslan Ermilov <ru@FreeBSD.org>

Fixed the markup in the recently added ENVIRONMENT section.


# 6e3bc9da 07-Apr-2003 Matthew N. Dodd <mdodd@FreeBSD.org>

Bump the date for recent commits.


# 564b641e 07-Apr-2003 Matthew N. Dodd <mdodd@FreeBSD.org>

Clarify the behavior of PATH_FSTAB with regard to 'tainted' execution.

Requested by: ru


# ef258dd9 06-Apr-2003 Matthew N. Dodd <mdodd@FreeBSD.org>

Implement the '-F' option for mount & umount which allows the user to
specify an alternate fstab file.


# c4b8f062 22-Feb-2003 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: kill unnecessary xref.


# b4206324 13-Jan-2003 Joerg Wunsch <joerg@FreeBSD.org>

Mention the oddities and requirements for mount operations executed by
non-root users.

PR: docs/42651
Submitted by: Thomas Seck <tmseck@netcologne.de>
MFC after: 3 days


# 97d0a1b8 13-Dec-2002 Tom Rhodes <trhodes@FreeBSD.org>

Remove the incorrect information about dump(8) and snapshots. All the
dump(8) issues are assumed to be fixed.

PR: 46224
Submitted By: Chris Knight <chris@aims.com.au>
Approved By: re (murray)


# ce66ddb7 21-Aug-2002 Tom Rhodes <trhodes@FreeBSD.org>

s/filesystem/file system/g as discussed on -developers


# 9acd9d01 12-Aug-2002 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: missing markup bits.


# 26fbf78b 11-Aug-2002 Maxime Henrion <mux@FreeBSD.org>

Update the manpage to match the code. The mount utilities
now don't try to load the filesystem module, the kernel takes
care of this.


# 299f1561 11-Jul-2002 Tom Rhodes <trhodes@FreeBSD.org>

Add a bit of information on FFS snapshots to the mount(8) manual page.

PR: 30139
Submitted by: Chris Knight <chris@aims.com.au?
MFC after: 3 days


# e1205e80 06-Jul-2002 Philippe Charnier <charnier@FreeBSD.org>

The .Nm utility


# 3468b317 15-May-2002 Tom Rhodes <trhodes@FreeBSD.org>

more file system > filesystem


# eb4ebb05 11-May-2002 Maxime Henrion <mux@FreeBSD.org>

Fix a typo : ".Xr mount_udf 8," -> ".Xr mount_udf 8 ,".


# b6925fa9 21-Apr-2002 David Malone <dwmalone@FreeBSD.org>

Add mount_udf and mount_smbfs to crossrefs.

PR: 37200
Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net>


# 9fe48c6e 10-Jul-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: removed HISTORY info from the .Os call.


# 4ccd7546 01-Jun-2001 Ruslan Ermilov <ru@FreeBSD.org>

- VFS_SET(msdos) -> VFS_SET(msdosfs)
- msdos.ko -> msdosfs.ko
- mount_msdos(8) -> mount_msdosfs(8)
- "msdos" -> "msdosfs" compatibility glue in mount(8)


# 0b381bf1 01-Jun-2001 Ruslan Ermilov <ru@FreeBSD.org>

Remove vestiges of MFS.


# 6ad10804 23-May-2001 Ruslan Ermilov <ru@FreeBSD.org>

Rename (after a repo-copy) some mount(8) programs:

mount_fdesc -> mount_fdescfs
mount_null -> mount_nullfs
mount_portal -> mount_portalfs
mount_umap -> mount_umapfs
mount_union -> mount_unionfs


# 01c78dbb 01-Feb-2001 Nik Clayton <nik@FreeBSD.org>

Add an xref for mount_ntfs.

PR: docs/24693
Submitted by: Etienne Vidal <hallik@libertysurf.fr>


# c4b267dc 27-Dec-2000 Dag-Erling Smørgrav <des@FreeBSD.org>

Retire kernfs (userland part).


# 1252c1bb 18-Dec-2000 Ruslan Ermilov <ru@FreeBSD.org>

Prepare for mdoc(7)NG.


# 7f804728 23-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: misc minor fixes.


# e867267b 22-Nov-2000 Alexey Zelkin <phantom@FreeBSD.org>

o get rid lfs mentions
o remove non-mdoc groff's instructions


# 7c7fb079 20-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use the new features of the Nm macro.


# 1ce9f317 29-Oct-2000 Nik Clayton <nik@FreeBSD.org>

.Xr to mount_ext2fs, mount_hpfs, mount_linprocfs, mount_nwfs, and
mount_std.

PR: docs/20369
Submitted by: bmah


# e4bc2e34 28-Aug-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

Explain the notion that additional mount options may be described
in mount_XXX manual pages. Remove explicit mention of NFS mount
options, since they are accurately described by this rule.

PR: 20814


# 57c68d45 30-Apr-2000 Nik Clayton <nik@FreeBSD.org>

Removed xref to mount_lfs, this died in 2.mumble.

PR: docs/18272
Submitted by: Michael Lucas <mwlucas@blackhelicopters.org>


# ef8f7ac9 01-Mar-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


# bf1a2274 21-Feb-2000 Alfred Perlstein <alfred@FreeBSD.org>

Don't scare the users.
Kirk argees that the comment about corruption caused by switching the flags
on an already mounted manpage are bogus, it doesn't happen.

Ok by: mckusick


# 534e0080 28-Sep-1999 David E. O'Brien <obrien@FreeBSD.org>

Document the "noasync" option.


# 7f3dea24 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 5880814d 06-May-1999 Joseph Koshy <jkoshy@FreeBSD.org>

Null commit.

> PR: bin/6399
> Submitted by: David Malone <dwmalone@maths.tcd.ie>

Also reviewed by: bde


# 18af6044 06-May-1999 Joseph Koshy <jkoshy@FreeBSD.org>

1. Enhanced syntax for mount(8). The -o option now supports two 'meta'
options:

-o fstab brings in filesystem options specified in /etc/fstab
-o current incorporates the current set of options for the file
system

The rightmost option wins in the case of conflicting options being
specified.

E.g.:-

# mount -u -o current,nosuid /home

will preserve the current mount options while adding the 'nosuid' flag.

2. Rewording of manual page to be hopefully clearer; small -Wall
cleanups.

Thanks to David Malone for his patience and willingness to work
multiple patches on request.

PR: bin/6399
Submitted by: David Malone <dwmalone@maths.tcd.ie>


# a7efcd4b 08-Apr-1999 Guy Helmer <ghelmer@FreeBSD.org>

modload -> kldload and add ref to kldload(8) in See Also section.

Submitted by: Nathan Ahlstrom <nrahlstr@winternet.com>


# bdd042f0 15-Oct-1998 Dag-Erling Smørgrav <des@FreeBSD.org>

Warn about "mount -u" bug.


# ce602323 08-Jul-1998 Joseph Koshy <jkoshy@FreeBSD.org>

Add a CAVEAT section documenting the minimum permissions required for a mount
point to be traversable in both directions by all users.

PR: 7172


# 5ddc8ded 08-Apr-1998 Wolfram Schneider <wosch@FreeBSD.org>

New mount option nosymfollow. If enabled, the kernel lookup()
function will not follow symbolic links on the mounted
file system and return EACCES (Permission denied).


# 8546f807 30-Nov-1997 Steve Price <steve@FreeBSD.org>

Add mount_devfs(8) to the SEE ALSO section.

PR: 5125


# 52bf64c7 12-Nov-1997 Julian Elischer <julian@FreeBSD.org>

Reviewed by: hackers@freebsd.org in general
Obtained from: Whistle Communications tree

Add an option to the way UFS works dependent on the SUID bit of directories
This changes makes things a whole lot simpler on systems running as
fileservers for PCs and MACS. to enable the new code you must
1/ enable option SUIDDIR on the kernel.
2/ mount the filesystem with option suiddir.
hopefully this makes it difficult enough for people to
do this accidentally.
see the new chmod(2) man page for detailed info.


# 75b714ac 27-Sep-1997 KATO Takenori <kato@FreeBSD.org>

Add noclusterr and noclusterw options. The noclusterr and noclusterw
disable clustered read and write, respectively.

Reviewed by: bde


# fba1c154 24-Aug-1997 Steve Price <steve@FreeBSD.org>

Try to avoid mounting filesystems multiple times. Also while
I'm here do some -Wall cleaning.

PR: kern/1839
Reviewed and corrected by: joerg


# 6caa839d 24-Aug-1997 Joerg Wunsch <joerg@FreeBSD.org>

Mention the various reasons for messages of the form:

xxxxx filesystem is not available

Inspired by: PR 3311, and a following discussion with Mikhail


# 951122de 23-Aug-1997 Steve Price <steve@FreeBSD.org>

Always include the section name in the .Xr macro and cleanup
.Nm macro usage.

PR: docs/3940
Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp>


# c06fe0a0 10-Mar-1997 Peter Wemm <peter@FreeBSD.org>

Merge from Lite2
- use new getvfsbyname() interface and mount(2) interface

**DANGER WILL ROBINSON!!** You must be running a -current kernel
from within a week or so in order for this to work!


# 92e2d9be 05-Mar-1997 Bruce Evans <bde@FreeBSD.org>

Attempt to import Lite2's mount.


# c0ec1f37 22-Feb-1997 Peter Wemm <peter@FreeBSD.org>

Revert $FreeBSD$ to $Id$


# 1130b656 14-Jan-1997 Jordan K. Hubbard <jkh@FreeBSD.org>

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 677ab445 09-Nov-1996 Andrey A. Chernov <ache@FreeBSD.org>

Add mount_msdos(8) reference
2.2 candidate


# fa947154 08-Sep-1996 David Greenman <dg@FreeBSD.org>

Added description of "noatime" option.


# b8923d4c 29-Aug-1996 Wolfram Schneider <wosch@FreeBSD.org>

[HISTORY] command appeared in Version 1 AT&T UNIX
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41


# a257a45e 21-Jul-1996 Jordan K. Hubbard <jkh@FreeBSD.org>

I have added a new option -p to the mount command. This was
inspired by SunOS version of mount which uses option -p to
indicate that the mount information should be printed in fstab
format.
This is a neat way to create a new fstab file to use later when
one has modified the mount points or mount options or added or
removed mount some mount points. You just type

mount -p > /etc/fstab.new

and there is your new fstab file ready to be used though you
will of course have to add any necessary noauto flags manually.

[Committers note: This also seems to do the wrong thing for AMD
mounts, but in the more average case this is a nifty feature nonetheless
and one can always edit the bogus entries out]

Submitted-By: Jukka Ukkonen <jau@jau.csc.fi>


# b23472ac 02-Jul-1996 Wolfram Schneider <wosch@FreeBSD.org>

Document that suid wrapper like suidperl(1) break option 'nosuid'.


# c4c23c4d 09-Feb-1996 Mike Pritchard <mpp@FreeBSD.org>

Another round of various man page cleanups.


# c4e95187 26-Aug-1995 David Greenman <dg@FreeBSD.org>

Document the -a option, and mention ``noauto''.


# 89beb278 25-Aug-1995 David Greenman <dg@FreeBSD.org>

The changes for adding the "noauto" option were mostly wrong. MNT_NOAUTO
is a kernel flag, and the kernel definately doesn't need to know about
it.


# 5411032a 23-Aug-1995 Jordan K. Hubbard <jkh@FreeBSD.org>

Sigh. This isn't my night. I forgot the manpage updates too!
Thanks, Andrey.


# 1469eec8 15-May-1995 David Greenman <dg@FreeBSD.org>

Fixed incompleteness that would allow dirty filesystems to get mounted
when the single user shell was terminated. These changes disallow mounting
or R/W upgrading filesystems that are dirty unless "-f" (force) option
is used with mount. /etc/rc has been modified to abort the startup if
one or more non-nfs partitions fail to mount.

Reviewed by: Poul-Henning Kamp, Rod Grimes


# 93eb5567 22-Jan-1995 Garrett Wollman <wollman@FreeBSD.org>

Document the requirements of dynamic loading on mounting order. Cross-ref
to vfsload(3).


# 8fae3551 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite sbin Sources

Note: XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.