summaryrefslogtreecommitdiffstats
path: root/sbin/mount
Commit message (Collapse)AuthorAgeFilesLines
* Fixes to man8 groff mandoc style, usage mistakes, or typos.wblock2012-05-241-1/+1
| | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days
* Don't print the nmount(2) provided error message if it is empty.jh2012-01-201-1/+4
|
* Change mount_fs() to not exit on error. The "failok" mount optionjh2012-01-201-6/+5
| | | | | | | requires that errors are passed to the caller. PR: 163668 Reviewed by: Garrett Cooper
* - Clean up checkpath().jh2012-01-201-8/+5
| | | | | | | | - Remove unneeded sysexits.h include. No functional change. Submitted by: bde
* Change checkpath() to not exit on error. This is a prerequisite forjh2012-01-164-7/+17
| | | | | | | fixing the mount(8) "failok" option. PR: 163668 Reviewed by: Garrett Cooper, delphij (previous version)
* Add missing static keywords for global variables to tools in sbin/.ed2011-11-042-2/+2
| | | | | | These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file.
* Clear the mountprog variable after each mountfs() call so that mountprogjhb2011-09-021-0/+5
| | | | | | | | | options don't leak over into subsequent mounts listed in /etc/fstab. While here, fix a memory leak in debug mode. Reported by: rank1seeker @ gmail Approved by: re (kib) MFC after: 1 week
* Update to -r224294 to ensure that only one of MNT_SUJ or MNT_SOFTDEPmckusick2011-07-301-2/+2
| | | | | | | is set so that mount can revert back to using MNT_NOWAIT when doing getmntinfo. Approved by: re (kib)
* Move the MNTK_SUJ flag in mnt_kern_flag to MNT_SUJ in mnt_flagmckusick2011-07-241-2/+3
| | | | | | | | | so that it is visible to userland programs. This change enables the `mount' command with no arguments to be able to show if a filesystem is mounted using journaled soft updates as opposed to just normal soft updates. Approved by: re (bz)
* Add a special mount option "failok" to indicate that the administrator wantsdelphij2011-06-071-2/+14
| | | | | | | | | the system to proceed to boot without bailing out into single user mode, even when the file system can not be successfully mounted. This option is implemented in mount(8) and not passed into kernel. MFC after: 1 month
* Add another example to mount(8) on using the "-o" argument.gavin2011-06-061-2/+11
| | | | | | PR: docs/157389 Submitted by: Warren Block <wblock wonkity.com> MFC after: 1 week
* Another man page update related to the switchover of thermacklem2011-04-291-2/+2
| | | | | | | NFS clients done by r221124. This is a content change. Submitted by: jh
* This patch changes head so that the default NFS client is now the newrmacklem2011-04-271-2/+2
| | | | | | | | | | | | | | NFS client (which I guess is no longer experimental). The fstype "newnfs" is now "nfs" and the regular/old NFS client is now fstype "oldnfs". Although mounts via fstype "nfs" will usually work without userland changes, an updated mount_nfs(8) binary is needed for kernels built with "options NFSCL" but not "options NFSCLIENT". Updated mount_nfs(8) and mount(8) binaries are needed to do mounts for fstype "oldnfs". The GENERIC kernel configs have been changed to use options NFSCL and NFSD (the new client and server) instead of NFSCLIENT and NFSSERVER. For kernels being used on diskless NFS root systems, "options NFSCL" must be in the kernel config. Discussed on freebsd-fs@.
* Revert r217871.dougb2011-02-251-6/+2
|
* Clarify the availability of the noatime option on network file systemsdougb2011-01-261-2/+6
|
* Remove the advertising clause from UCB copyrighted files in sbin. Thisjoel2010-12-121-4/+0
| | | | | is in accordance with the information at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
* Delete /sys/ufs/ffs/README.snapshot as it is no longer relevant.mckusick2010-11-201-3/+0
| | | | | | Drop reference to it in mount(8). MFC: 3 days
* Fix printing of the "rw" mount option in fstab(5) format (-p option).jh2010-09-301-12/+12
| | | | | | | | | fstab(5) format requires that one of "rw", "rq" or "ro" is always specified. PR: bin/123021 Reviewed by: keramida, rodrigc MFC after: 2 weeks
* Clarify devfs manpages slightly.jilles2010-05-291-0/+1
| | | | | | | | | | 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
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theuqs2010-05-131-5/+5
| | | | | | | | | | | 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
* As statfs.f_flags are uint64_t the local variables should be as well.bz2010-03-071-3/+3
| | | | | | | | | | | | | | We'll start noticing this with the next flag introduced as the lower 32bit are all used. As this is old code we might need to do a full tree sweep one day, unless changing our strategy to use a different `API' for getting/setting flags along with the rest of the statfs data. While here compare to 0 explicitly [1]. Suggested by: kib [1] Reviewed by: kib MFC after: 5 days
* - Remove reference to nfs4. mount_nfs4(8) was removed in r192578.jh2010-02-101-2/+2
| | | | - Add newnfs.
* ANSIfy almost all applications that use WARNS=6.ed2009-12-291-5/+2
| | | | | | | I was considering committing all these patches one by one, but as discussed with brooks@, there is no need to do this. If we ever need/want to merge these changes back, it is still possible to do this per application.
* Implement NFSv4 ACL support for UFS.trasz2009-12-213-2/+18
| | | | Reviewed by: rwatson
* Add links to zfs(8) and zpool(8) to mount(8) manual page.trasz2009-11-111-1/+3
|
* Switch the default WARNS level for sbin/ to 6.ru2009-10-191-1/+0
| | | | Submitted by: Ulrich Spörlein
* Modify mount(8) to skip MNT_IGNORE file systems by default, just like df(1)pjd2009-09-142-0/+9
| | | | | | | | | 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
* Add support for the experimental nfs client to mount_nfs. Thermacklem2009-05-271-1/+1
| | | | | | | | | | | | experimental client is used when the fstype is "newnfs" or the "nfsv4" option is specified. It includes the addition of the option: gssname - to specify a client side initiator host based principal name which is specific to NFSv4. It also includes a change to mount.c, so that it knows about mount_newnfs, but not mount_nfs4. Reviewed by: dfr Approved by: kib (mentor)
* Add a -o mountprog parameter to mount which explicitly allowsrodrigc2009-03-052-4/+39
| | | | | | | | | | | | | | | | | | | 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
* r187093 failed to keep the lifetime of the pointer suitable for reentrancy.obrien2009-01-131-11/+5
| | | | Fix that. Also move the current buffer size into the 'cpa' structure.
* Use a dynamically grown buffer for building the argv for the sub-mounts.obrien2009-01-121-11/+16
| | | | | | Also fix RCSid spamage. Inspired by patch from: Christoph Mallon <christoph.mallon@gmx.de>
* Explicitly check each mount argv building assignment for buffer over flowing.obrien2009-01-101-28/+34
| | | | Reviewed by: imp (earlier version of patch)
* style(9)obrien2008-12-262-6/+6
|
* Make the sub-'argc' static to make it harder to overwrite thru a bufferobrien2008-12-261-1/+2
| | | | overflow.
* Be a little bit more pestimistic in argument handling - check if we'veobrien2008-12-182-2/+8
| | | | | | | overflown our internal buffer (though after the fact), and s/strncpy/strlcpy/ Reviewed by: rodrigc Obtained from: Juniper Networks
* Don't return always 0. Return what we get from exec_mountprog ormatteo2008-08-311-1/+1
| | | | | | | mount_fs. PR: bin/125154 MFC after: 1 day
* Fix markup.ru2008-06-031-4/+6
|
* Add note about a reason to use mount(8) instead of mount_somefs.kib2008-06-031-0/+11
| | | | | | Reported and proof-readed by: pho Discussed with: rodrigc MFC after: 3 days
* - Update with a better example which shows that options specific to atmclaugh2008-03-121-3/+3
| | | | | | file system may be passed using -o. Approved by: remko, rodrigc
* - Also change the /sbin/mount_unionfs line I managed to miss just twotmclaugh2008-03-101-1/+1
| | | | | | | | lines down to '-o below'. Approved by: remko Noticed by: rodrigc Pointyhat by: me
* - unionfs -b option is deprecated in favor of '-o below' as pertmclaugh2008-03-101-2/+2
| | | | | | mount_unionfs(8). Approved by: remko
* Correct the description of getmnt_silent: unknown options are silentlyyar2008-02-171-2/+3
| | | | | ignored if this variable is non-zero, which is quite logical given the variable's name.
* Fix mount -p and mount -u -ocurrent on gjournaled FSmatteo2008-02-041-1/+0
| | | | | | PR: bin/120162 Submitted by: Niki Denev MFC after: 1 week
* Fix printing of unionfs mounts when using the -p optionmatteo2008-02-031-2/+8
| | | | | PR: bin/75585 MFC after: 1 week
* Properly sort 'sync' in the list of options passed to -o.jhb2007-11-271-4/+4
| | | | MFC after: 3 days
* Remove stale reference to mount_std.rodrigc2007-10-191-1/+0
|
* - Remove UMAP filesystem. It was disconnected from build three years ago,rafan2007-06-252-4/+1
| | | | | | | and it is seriously broken. Discussed on: freebsd-arch@ Approved by: re (mux)
* Align -p output in TAB built columns suitable for /etc/fstab.phk2007-04-131-2/+19
|
* Print warning that "-t msdos" is deprecated and being converted torodrigc2007-02-061-1/+4
| | | | | | | | | "-t msdosfs". The conversion has been happening since 1.43, but no equivalent conversion happens in "umount -t", which led to some confusion with some users. PR: 79296 Submitted by: Nobuhiro Yasutomi <nobuhiro yasutomi nifty ne jp>
* Use pidfile(3) API to restart mountd(8) on success mount.pjd2007-02-022-10/+28
| | | | | This why we won't kill random process if there is a stale PID in /var/run/mountd.pid.
OpenPOWER on IntegriCloud