summaryrefslogtreecommitdiffstats
path: root/sbin/mount
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Pass a char buffer parameter with name "errmsg" to nmount().rodrigc2006-12-071-1/+4
| | | | | | | For filesystems which use vfs_mount_error() to log an error, this char buffer will be populated with a string error message. If nmount() fails, in addition to printing out strerror(errno), print out the "errmsg" populated by vfs_mount_error().
* Fix debugging output of '-d', to more accurately reflect ifrodrigc2006-11-141-1/+4
| | | | | | | we exec an external mount program, or just call nmount() to mount a filesystem. Noticed by: kris
* Teach mount(8) about MNT_GJOURNAL flag.pjd2006-10-311-0/+2
| | | | | | | MNT_GJOURNAL flag is not a mount-time flag, but it is needed to show 'gjournal' option in mount(8) output. Sponsored by: home.pl
* Two tiny style fixes.ru2006-10-241-3/+3
|
* Revert rev. 1.86 by jmallett@ as it breaks "ro" mounts specifiedru2006-10-241-6/+32
| | | | | | | | | | | | | in /etc/fstab. This has been happening due to the priority inversion; options specified on the command line should take precedence over options from fstab over default "noro" option, but since both the default "noro" and options specified on the command line (-w, -r, -o ...) were put into the same "options" variable, "noro" took precedence over fstab "ro" (this is easily visible with "mount -d"). PR: bin/100164
* Markup fixes.ru2006-09-181-25/+25
|
* Fix markup snafu.des2006-09-141-1/+2
| | | | Spotted by: ru
* Re-word the description of the "async" flag.danger2006-09-081-3/+6
| | | | | | Suggested by: Milos Vyletel (mv@rulez.sk) Reviewed by: ru Approved by: keramida (mentor), trhodes (mentor)
* Teach mount(8) about a 'late' keyword, which means the file system shoulddes2006-07-122-7/+38
| | | | | | | | | | | | | | | | | | 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
* Minor style tweaks while nearby. Namely ANSIfy and parens on return values.jmallett2006-06-101-26/+15
|
* Rather than using specified_ro to parse the options list an extra time, andjmallett2006-06-101-32/+6
| | | | | | keeping a flag to check whether we actually wanted to mount the filesystem readonly, setup the options list so that we start off by assuming rw is what's desired and let later flags change that.
* Fix "mount -u -o ro".rodrigc2006-06-021-1/+24
| | | | Requested by: maxim
* Remove reference to mount_procfs(8), add reference to procfs(5).rodrigc2006-05-191-1/+1
| | | | | mount(8) doesn't use mount_procfs(8), and instead passes an fstype of "procfs" directly to nmount().
* Remove reference to mount_ext2fs(8), add reference to ext2fs(5).rodrigc2006-05-171-1/+1
| | | | | mount no longer invokes mount_ext2fs, it calls nmount() directly with fstype "ext2fs".
* o Extend rev. 1.75 and restore an ability to specify a non-defaultmaxim2006-05-101-0/+9
| | | | | | quota files location. Submitted by: Kostik Belousov
* When there are no mount options, an implicit "rw" should be printed inkeramida2006-03-031-1/+6
| | | | | | the output of ``mount -p''. Approved by: rodrigc
* If we specify: mount -u (update), without specifying anrodrigc2006-02-251-11/+7
| | | | | | | | | | | | additional -r (read-only) flag or or -w (read-write) flag, then assume we want, mount -u -w. When doing a mount update, this will implicitly pass a "noro" mount option down to the VFS layer. vfs_mergeopts() in vfs_mount.c will then remove the "ro" mount option if it exists in the mount options for a mounted file system. This means that "mount -u" works the same as "mount -u -w" and will convert a read-only mount to read-write.
* Update text to reflect that:rodrigc2006-02-251-9/+31
| | | | | | | | - 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.
* s/<space><tab>/<tab>/pjd2006-01-241-1/+1
|
* Resolve the mount point's path with realpath(2) before checking if filepjd2006-01-181-1/+8
| | | | | | | | | | | system is mounted. This prevevents duplicated mounts. The change I made against the original patch is to fall back to the given path on realpath(2) failure instead of exiting with an error. Submitted by: Andreas Kohn <andreas@syndrom23.de> PR: bin/89782 MFC after: 3 days
* - Xref mount_reiserfs(8)pav2006-01-101-0/+1
| | | | | | PR: docs/90902 Submitted by: Scott Robbins <scottro@nyc.rr.com> MFC after: 3 days
* For reiserfs, pass mount parameters directly to nmount() insteadrodrigc2005-12-121-1/+1
| | | | | | of forking an external mount_reiserfs program. Reviewed by: dumbbell
* Remove workaround for old GCC bugs.rodrigc2005-12-031-5/+0
| | | | Submitted by: ru
OpenPOWER on IntegriCloud