summaryrefslogtreecommitdiffstats
path: root/sbin/mount
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Simplify parsing of mount options by passingrodrigc2005-12-031-1/+1
| | | | "rw" option down to kernel, since vfs_donmount() can now parse it.
* Remove unsupported "dev" option from comments of mntopts.h.rodrigc2005-12-021-1/+1
| | | | Requested by: jkoshy
* Remove MNT_NODEV mount option. In RELENG_6, MNT_NODEV was a no-op.rodrigc2005-11-291-2/+0
| | | | | | The presence of MNT_NODEV was confusing the am-utils autoconf scripts. PR: conf/79715
* Fixing a regression introduced in rev1.72 by connecting cd9660 to theavatar2005-11-241-1/+1
| | | | | | | | | external mounting program list as well; otherwise, entry like the following in /etc/fstab wouldn't work: /dev/acd0 /mnt/cdrom cd9660 ro,-C=big5 0 0 Reviewed by: rodrigc
* Fix prototype.ru2005-11-241-1/+4
|
* Remove UFS-specific parts from mount(8).rodrigc2005-11-233-136/+1
| | | | | For mounting UFS, all mount options are passed directly to nmount(), without any UFS-specific logic.
* Do not pass userquota and groupquota mount options to nmount().rodrigc2005-11-231-0/+4
| | | | | | | These options are read from fstab by quotacheck(8), but are not valid mount options that need to be passed down the the filesystem. Noticed by: maxim
* For mounting a UFS filesystem, call nmount() directly, instead of havingrodrigc2005-11-211-3/+1
| | | | special logic which called mount() in a separate mount_ufs() function.
* Do not pass noauto to nmount() or external mount program.rodrigc2005-11-161-1/+10
| | | | Noticed by: maxim
* In build_iovec(), if passed in len is -1, check to see ifrodrigc2005-11-141-3/+6
| | | | | | val is NULL before doing strlen() to calculate new len. Submitted by: maxim
* - Make size parameter to build_iovec() a size_t, not an introdrigc2005-11-133-8/+31
| | | | | | | - Add build_iovec_argf() helper function, for help converting old mount options which used the mount_argf() function for the mount() syscall. Discussed with: phk
* - Minor fixes to raise WARNS level to 6.rodrigc2005-11-125-52/+223
| | | | | | | | | | | | | | - Teach the mount program to call the nmount() syscall directly - Preserve existing method of calling mount() for UFS, until we clean things up. - Preserve existing method of forking and calling external mount programs for mfs, msdosfs, nfs, nfs4, ntfs, nwfs, nullfs, portalfs, reiserfs, smbfs, udf, umapfs, unionfs - devfs, linprocfs, procfs, ext2fs call nmount() syscall directly, since that is all those external mount programs were doing Reviewed by: phk Discussed on: arch
* Switch from K&R-style C prototypes to ISO/ANSI-style C prototypes.rodrigc2005-10-071-11/+4
|
* Bump WARNS up to 3.rodrigc2005-10-071-1/+1
|
* In prmount(), use an unsigned int variable to eliminaterodrigc2005-10-071-1/+2
| | | | 'comparison between signed and unsigned' compiler warning.
* Switch from K&R-style C prototypes to ISO/ANSI-style C prototypes.rodrigc2005-10-073-25/+11
| | | | Make prototype in extern.h match prototype in mount_ufs.c
* Remove Xref to mount_hpfs(8), it's not hooked up to the build.brueffer2005-06-161-1/+0
| | | | | Approved by: re (blanket) MFC after: 3 days
* Use MOPT_END in favor of MOPT_NULL, which better describes the purporsedelphij2005-06-102-3/+3
| | | | of the macro.
* Add a handy macro to represent null mount option, MOPT_NULL, and makedelphij2005-06-012-1/+4
| | | | | | | | | | | | | | | | | | | use of the macro in sbin/mount*'s, by replacing: mopts[] = { MOPT_STDOPTS, { NULL } } With: mopts[] = { MOPT_STDOPTS, MOPT_NULL } This change will help to reduce the situation that we don't explicitly initialize "struct mntopt"'s. It should not contribute to any functional/logical changes as far as I can tell.
* When executing mount_foo, pass "mount_foo" as argv[0] instead of "foo".cperciva2005-03-261-2/+4
| | | | | | | | This unbreaks "/rescue/mount -t foo" -- previously it was necessary to explicitly call "/rescue/mount_foo". Hints from: gordon X-MFC after: 3 days (if approved by re@)
* Add verbiage to the description of the noexec mount option clarifyingcperciva2005-03-231-0/+5
| | | | | | | that it really wasn't intended as a security feature. Wording mostly by: simon Discussed with: secteam
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-101-3/+3
|
* Sort sections.ru2005-01-181-12/+12
|
* Fix typo.josef2004-12-261-1/+1
| | | | Noticed by: clement
* Revert last change. It doesn't break mount(8) reportingru2004-11-301-0/+2
| | | | but allows a "nodev" in /etc/fstab, etc.
* Fix the mount(8) status reporting, now that MNT_NODEV is a no-op (zero).ru2004-11-293-11/+1
| | | | Asked to commit by: phk
* Avoid comparing pointer against a numerical value by adding a * indelphij2004-11-251-1/+1
| | | | | | front of it. Reviewed by: phk
* Add a convenience function for building nmount iov arrays.phk2004-11-252-0/+25
|
* Fix bug: don't let "synco" match "sync"phk2004-11-251-4/+2
|
* Assorted markup, grammar, and spelling fixes.ru2004-05-171-2/+2
|
* The previous change to mount(8) to report ufs or ufs2 usedbmilekic2004-04-262-13/+0
| | | | | | | | | | | libufs, which only works for Charlie root. This change reverts the introduction of libufs and moves the check into the kernel. Since the f_fstypename is the same for both ufs and ufs2, we check fs_magic for presence of ufs2 and copy "ufs2" explicitly instead. Submitted by: Christian S.J. Peron <maneo@bsdpro.com>
* Remove advertising clause from University of California Regent's license,markm2004-04-098-32/+0
| | | | | | per letter dated July 22, 1999. Approved by: core, imp
* Correct the definition of the multilabel flag: it enables multilabelrwatson2004-03-261-3/+8
| | | | | | | 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.
* s/considred/considered/brueffer2004-03-041-1/+1
|
* Report the difference between ufs and ufs2.grog2004-02-172-3/+16
| | | | Submitted by: "Christian S.J. Peron" <maneo@bsdpro.com>
* Reorder Xrefs in SEE ALSO.trhodes2004-02-101-5/+5
|
OpenPOWER on IntegriCloud