Commit Graph

220 Commits

Author SHA1 Message Date
christos 263a1fd803 remove impossible test. 2021-12-07 14:31:13 +00:00
christos bc0fdeaa90 PR/56529: RVP: mount should try ffs when DIOCGWEDGEINFO returns an empty
dkw_ptype.
2021-12-02 13:26:39 +00:00
simonb 2dc7bd6f38 Add some { } around an if body that is followed by an "else {". 2021-11-21 05:09:15 +00:00
simonb a08818a5a6 Remove the warning about autoselecting nfs based on : or @.
Ok jmcneill@, mrg@.
2021-06-04 11:55:45 +00:00
nia c7b55a6538 file systems that are used as what spools? 2020-10-24 10:51:34 +00:00
mlelstv 5c685f7b3c Make command line arguments -r and -w actually override defaults from fstab,
previously -w would only cancel a preceeding -r.

No longer strip -o rw.
2020-10-18 10:57:30 +00:00
mlelstv fd33bfb7f2 Refactor remaining mount_* commands to use the common pathadj()
function for resolving paths.

Make pathadj() no longer warn about symlinks. Symlinks in /dev are
regularly used in several places like LVM . The warning was also
only visible when calling a mount_* command directly as mount(8)
itself would resolve the path witout warning before passing it to
a mount_* command.
2020-07-26 08:20:22 +00:00
wiz 5d07b5f046 Sort SEE ALSO. 2018-01-09 09:15:57 +00:00
christos b985414b8f Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet
2018-01-09 03:31:12 +00:00
wiz a1ebe6684c Remove Tn. Remove undefined .Sp. Use tagged list instead of hanging one
with .brs.
2017-11-20 21:59:30 +00:00
christos 1fd6f11802 Clarify the program naming convention, and use consistently <fstype> instead
of XXX.
2017-11-20 16:41:55 +00:00
jdolecek 8e90ad672f expand a little the explanation about discard
describe behaviour of combination of log+async (i.e. same as just log)
2017-03-22 21:14:11 +00:00
jdolecek ad7bde6ea4 stress more that discard is experimental, and explain why; also note that
it's not compatible with log
2016-11-10 22:28:00 +00:00
christos 7699c5562f try to be more clear about what is not found. 2016-10-09 21:03:43 +00:00
maya fae5be1b07 change warning message
previously attempting to use mount -t ext2 like myself would result in
the warning "mount: mount_ext2 not found for /mnt", which (if you're me)
can be misunderstood as "/mnt is not an ext2 filesystem"...

change it to "mount: mount_ext2 not found"
2016-10-08 06:47:59 +00:00
sevan 7ebf29657a mount appeared in V1
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man1/mount.1
Replace contraction.
Bump date.
2016-09-12 00:25:23 +00:00
christos ffeb8dbf4e Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
pooka 15c9a10afd gcc 4.9 produces vfork clobberation warnings for "name" and "buflen".
Since there's no performance reason to use vfork here, just replace it
with fork and be done with warnings once and for all.
2015-01-04 22:05:37 +00:00
mbalmer 89b27dd856 Add reference to mount_chfs, bump date. 2014-12-06 12:12:17 +00:00
apb c2ebc84464 Add a reference to secmodel_extensions(9), to make it a little easier to
figure out how to enable mounts for unprivileged users.  (Why don't we
just explain vfs.generic.usermount in the mount(8) man page?)

Also add another example of different ways in which the "special"
argument is interpreted by different file systems: mount_tmpfs(8)
ignores it.
2013-10-31 07:37:06 +00:00
ast 7d4f6c34b0 No code change: corrected spelling in comment, removed trailing white spaces. 2013-10-05 08:06:35 +00:00
christos 0a4e19dfb8 use return instead of exit. 2013-01-24 17:53:49 +00:00
drochner 5724e77fda Implement experimental support to pass notifications that a file
was deleted from the filesystem to the disk driver, commonly
known as "discard" or "trim".
fs/driver support is in ffs and ata wd for now.
This is what was posted here:
http://mail-index.netbsd.org/tech-kern/2012/02/28/msg012813.html
with minor cleanup, and the global switch replaced by a mount option.
2012-10-19 17:09:06 +00:00
wiz 547319c1ee - Improve wording;
- remove superfluous `.Pp' macro (fixes mandoc(1) warning).

From Bug Hunting.
2012-10-03 19:36:11 +00:00
wiz 0d00d3b578 Bump date for previous. 2012-06-23 23:41:25 +00:00
jdf 8efbef4b63 Clarify use of the union option for mount, as proposed in PR 45919.
Text proposed by apb.
2012-06-23 23:17:46 +00:00
christos e5d78d1189 don't print the NULL, but the error 2012-06-14 00:39:33 +00:00
mlelstv 4c4531d7b7 return exit code from mount_XXXX again 2012-04-09 15:50:20 +00:00
christos 8b15007246 add missing DPADD 2012-04-07 05:58:55 +00:00
christos 338fb03101 use getfsspecname 2012-04-07 04:13:06 +00:00
christos 6ab6e47220 Accept NAME=label for special so that we can wire down our wedges. 2012-04-07 03:13:32 +00:00
joerg baa8e84b6f Use __dead 2011-08-29 14:34:58 +00:00
dholland 1cb7b735a0 Improve previous; thanks to tsutsui-san for reminding me of the proper
reference. PR 45166
2011-07-22 15:53:21 +00:00
dholland fb83b6fe13 Clarify UFS2 superblock format stuff. Bump date. 2011-07-22 15:47:46 +00:00
wiz 6da344d4e1 New sentence, new line; fix wording; bump date. 2011-06-17 18:13:14 +00:00
manu 448e1c49b2 Add mount -o extattr option to enable extended attributs (corrently only
for UFS1).
Remove kernel option for EA backing store autocreation and do it by
default. Add a sysctl so that autocreated attriutr size can be modified.
2011-06-17 14:23:50 +00:00
pooka 0120167d51 "when in doubt, let the kernel decide" 2011-02-17 16:57:46 +00:00
pooka 2fff573bcd In case we are union-mounting /, don't force MNT_UPDATE. This makes
the following work:

	mount -t tmpfs -o union tmpfs /

(some caveats are implied, such as if you "mkdir /usr" you're
screwed, but then again you'll get there with "rm -rf /usr" even
without union -- we supply rope)

per discussion with zafer, use case for jibbed
2011-01-13 11:57:02 +00:00
pooka 6070963e92 xref rump_smbfs 2010-11-21 18:33:08 +00:00
pooka ce626609cc Remove puffs| from vfstype before making comparison to determine if
fs is mounted.

Fixes slightly-miscategorized kern/37626.
2010-01-14 21:46:24 +00:00
pooka 707f1f2b92 If getargs and vfs has PUFFS_TYPEPREFIX, use mount_puffs to query args. 2010-01-14 21:30:17 +00:00
wiz 0fe31f2e87 Drop trailing whitespace. 2009-10-03 07:37:01 +00:00
elad 1df9608023 Centralize documentation about exported sysctl variables in the relevant
secmodel's man-page.
2009-10-02 20:31:19 +00:00
stacktic d253d157dc Fixed a_mask to actually use its argument 2009-06-19 12:55:45 +00:00
yamt f0ea152bc0 disable automatic mountd reloading for now because it makes the service
temporary unavailable.  PR/41331 from FUKAUMI Naoki.
2009-05-04 11:41:48 +00:00
wiz 5eb2ad1b22 Fix typo, and restore line that was lost in previous. 2009-02-23 08:14:53 +00:00
ad 59fcf21389 PR kern/26878 FFSv2 + softdep = livelock (no free ram)
PR kern/16942 panic with softdep and quotas
PR kern/19565 panic: softdep_write_inodeblock: indirect pointer #1 mismatch
PR kern/26274 softdep panic: allocdirect_merge: ...
PR kern/26374 Long delay before non-root users can write to softdep partitions
PR kern/28621 1.6.x "vp != NULL" panic in ffs_softdep.c:4653 while unmounting a softdep (+quota) filesystem
PR kern/29513 FFS+Softdep panic with unfsck-able file-corruption
PR kern/31544 The ffs softdep code appears to fail to write dirty bits to disk
PR kern/31981 stopping scsi disk can cause panic (softdep)
PR kern/32116 kernel panic in softdep (assertion failure)
PR kern/32532 softdep_trackbufs deadlock
PR kern/37191 softdep: locking against myself
PR kern/40474 Kernel panic after remounting raid root with softdep

Retire softdep, pass 2. As discussed and later formally announced on the
mailing lists.
2009-02-22 20:28:05 +00:00
apb 756ffbbce0 * Say that type "nfs" is inferred if the path contains a
":" or "@".  (Amazingly, this was not documented before).
* Say that the "nfs" inference is deprecated.  (It was deprecated in
  revision 1.87 of mount.c, dated 2009-01-11.)
* Add "-t nfs" in an example, so as not to rely on the automatic
  inference of nfs when the path contains a colon.
* Try to improve the description of how the arguments are interpreted.
2009-01-20 09:07:04 +00:00
wiz 2fd0883c1e New sentence, new line. 2009-01-11 21:57:14 +00:00
pooka 694167d28f Support mount -o rump, which uses the rump server instead of using
the kernel service.  E.g. "mount -t efs -o rump /dev/sgidev /mnt"
runs effectively "rump_efs /dev/sgidev /mnt".
2009-01-11 20:39:34 +00:00