Commit Graph

48 Commits

Author SHA1 Message Date
bcr
04868d6a7b Fix various, mostly minor errors in man pages like:
- Abbreviated month name in .Dd
- position of HISTORY section
- alphabetical ordering within SEE ALSO section
- adding .Ed before .Sh DESCRIPTION
- remove trailing whitespaces
- Line break after a sentence stop
- Use BSD OS macros instead of hardcoded strings

No .Dd bumps as there was no actual content change made
in any of these pages.

Submitted by:	Gordon Bergling gbergling_gmail.com
Approved by:	bcr
Differential Revision:	https://reviews.freebsd.org/D24591
2020-05-03 10:15:58 +00:00
dougm
5a521a24c0 swap_pager.c reserves 2 blocks for a bsd label. Change that 2 to the
expression howmany(BBSIZE, PAGE_SIZE), where BBSIZE is the size of the
boot block area.  That can be less than 2 if PAGE_SIZE is big.

swapon(8) has an option to trim (delete) all the blocks of a device at
startup.  However, if the first of those blocks is a bsd label, then
trimming those blocks is destructive.  Change swapon to leave the
first BBSIZE bytes untrimmed.

Update manual pages to reflect changes in how swapon and how it may be
used, espeically in association with savecore.

Reviewed by: alc
Approved by: markj (mentor)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D21191
2019-08-15 02:30:44 +00:00
sobomax
6ff41021fb Allow "update" option to be used in the fstab(5). Document possible use case.
Approved by:	mckusick
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D18586
2019-07-22 20:04:55 +00:00
dougm
e1145d7ea4 Modify swapon(8) to invoke BIO_DELETE to trim swap devices, either if
'-E' appears on the swapon command line, or if "trimonce" appears as
an fstab option.

Discussed at: BSDCAN
Tested by: markj
Reviewed by: markj
Approved by: markj (mentor)
Differential Revision:https://reviews.freebsd.org/D20599
2019-06-22 03:16:01 +00:00
pjd
f1eded629e Allow to disable BIO_DELETE passthru in fstab for swap-on-geli devices by
passing 'notrim' option.

PR:		198863
Submitted by:	Matthew D. Fuller fullermd at over-yonder dot net
2015-08-08 09:57:38 +00:00
brueffer
63f569e1a7 Correct geli parameter.
PR:		188582
Submitted by:	Michael Hall
MFC after:	3 days
2014-04-14 06:59:49 +00:00
eadler
118094e60b multiple: Remove 3rd clause from BSD license where approved by the
regents and renumber.

This patch skips files in contrib/ and crypto/

Acked by:	imp
Discussed with:	emaste
2014-03-14 03:07:51 +00:00
joel
aa6935c078 mdoc: sort SEE ALSO.
Approved by:	re (blanket)
2013-09-18 04:44:54 +00:00
hrs
6ac7f5358f Add EXAMPLES section to explain the format of fstab(5).
Approved by:	re (marius)
Reviewed by:	wblock
2013-09-17 20:25:29 +00:00
hrs
83587b30a5 Document options for .eli devices.
Submitted by:	ADAM David Alan Martin
2013-07-15 03:50:14 +00:00
joel
fb34da0b96 mdoc: remove EOL whitespace. 2013-06-29 16:05:44 +00:00
hrs
8a3748f531 - Add vnode-backed swap space specification support. This is enabled when
device names "md" or "md[0-9]*" and a "file" option are specified in
  /etc/fstab like this:

  md    none    swap    sw,file=/swap.bin       0       0

- Add GBDE/GELI encrypted swap space specification support, which
  rc.d/encswap supported.  The /etc/fstab lines are like the following:

  /dev/ada1p1.bde       none    swap    sw      0       0
  /dev/ada1p2.eli       none    swap    sw      0       0

  .eli devices accepts aalgo, ealgo, keylen, and sectorsize as options.

  swapctl(8) can understand an encrypted device in the command line
  like this:

  # swapctl -a /dev/ada2p1.bde

- "-L" flag is added to support "late" option to defer swapon until
  rc.d/mountlate runs.

- rc.d script change:

    rc.d/encswap -> removed
    rc.d/addswap -> just display a warning message if $swapfile is defined
    rc.d/swap1 -> renamed to rc.d/swap
    rc.d/swaplate -> newly added to support "late" option

These changes alleviate a race condition between device creation/removal
and swapon/swapoff.

MFC after:	1 week
Reviewed by:	wblock (manual page)
2013-06-27 18:28:45 +00:00
stefanf
054e35b9ef Decode the first two fstab fields with strunvis(3). This allows having spaces
in devices and mount paths, encoded as \s or \040.

PR:		bin/117687
Submitted by:	Martin Kammerhofer
Discussed on:	arch
2012-10-11 07:54:29 +00:00
eadler
1ef5fe44d3 Remove trailing whitespace per mdoc lint warning
Disussed with:	gavin
No objection from:	doc
Approved by:	joel
MFC after:	3 days
2012-03-29 05:02:12 +00:00
delphij
b13895d9ea Use .Dq instead of hardcoding `` and ''.
Suggested by:	gjb
2011-06-08 00:31:10 +00:00
delphij
f5a66a355e Add a special mount option "failok" to indicate that the administrator wants
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
2011-06-07 18:48:49 +00:00
imp
444e8b7b3b I don't know why fstab doesn't document that the fifth field specifies
the number of days between backups.  All it says is frequency, with no
units given.  It likely should say "the interval in days between backups"
instead, but not today.
2009-06-07 07:45:25 +00:00
imp
38eb41d10e LFS cannot be loaded, compiled, torn, spindled or mutilated in
FreeBSD: it was deleted around FreeBSD 3.x...
2009-05-11 17:05:41 +00:00
keramida
6b3144f55d Enhance the explanation of using filesystem-specific mount options
in /etc/fstab.  We do support passing special options on a per
filesystem type basis, like `-u UID -g GID' for mount_msdosfs, but
the syntax of these options in fstab is non-obvious and a lot of
users have asked about it.

PR:		docs/128816
Submitted by:	Roland Smith, rsmith at xs4all dot nl
MFC after:	2 days
2008-11-23 19:52:56 +00:00
mpp
d99c83ecb1 We no longer have both block and character devices, so remove the
misleading information stated here.
2008-02-11 09:36:43 +00:00
mpp
84c4c89cc3 Explain in more detail how the pass number field works. Bump .Dd. 2008-02-11 09:02:48 +00:00
mpp
c964d8b3e5 Explain how the passno field in /etc/fstab works with fsck
and quotacheck in some more detail.
2008-01-26 13:03:35 +00:00
mpp
493a307fe2 Document quotachecks use of the passno field. 2007-10-14 07:46:49 +00:00
ru
1cf1598667 Mechanically kill hard sentence breaks and double whitespaces. 2004-07-03 18:29:24 +00:00
ru
041d1287e8 Uniformly refer to a file system as "file system".
Approved by:	re
2002-12-12 17:26:04 +00:00
ru
a4e7fd25bf mdoc(7) police: variables are marked with the general purpose .Va macro. 2002-01-09 15:43:07 +00:00
sheldonh
e158c7fa96 Now that automatic mounting of network filesystems is delayed until
network startup, remove the warning about automatic mounts.
2001-12-29 19:44:10 +00:00
sheldonh
ac1a178404 Recommend the use of 'noauto' for all remote filesystems other than
NFS, so that rc(8) doesn't choke on them when it tries to mount
them before the network is initialized.
2001-12-20 17:07:04 +00:00
dd
835425c345 Remove a stale list of supported filesystems. If we do need a list of
filesystems somewhere, it probably shouldn't be here, and we should
make a better effort to keep it updated.
2001-11-24 21:19:46 +00:00
ru
623da62a5a mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
schweikh
511e378b14 Removed whitespace at end-of-line; no content changes. I simply did
cd src/share; find man[1-9] -type f|xargs perl -pi -e 's/[ \t]+$//'

BTW, what editors are the culprits? I'm using vim and it shows
me whitespace at EOL in troff files with a thick blue block...

Reviewed by:	Silence from cvs diff -b
MFC after:	7 days
2001-07-14 19:41:16 +00:00
ru
9001bc7070 mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 15:31:11 +00:00
ru
e7a85be33f Remove vestiges of MFS. 2001-06-01 10:07:28 +00:00
ru
17ba214098 Prepare for mdoc(7)NG. 2000-12-29 09:18:45 +00:00
des
4b9504e071 Retire kernfs (userland part). 2000-12-28 12:59:57 +00:00
ru
0100fd6e93 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 18:41:33 +00:00
ben
ff4f576d86 remove fullstops from the end of .Xr lines in SEE ALSO sections. 2000-11-15 16:00:07 +00:00
peter
76f0c923fe $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
ghelmer
beda46afe7 Where the fstab page discusses filesystem options, add a reference
to the '-o' flag in the mount(8) and filesystem specific
mount pages where information can be obtained about the available
options.

PR:		docs/10108
1999-05-28 01:54:38 +00:00
hoek
e254e8010a misc. spelling and grammar gnits. 1998-06-28 21:33:42 +00:00
jkh
09726f2920 isofs -> cd9660
PR:		5849
Submitted by:	Benjamin Lewis <bhlewis@gte.net>
1998-02-26 02:17:42 +00:00
jmg
bfd1ca354f add missing cvs Id lines. 1997-03-07 03:28:23 +00:00
mpp
7fa7059be8 Update the man page to reflect the current state of
fstab.h.
1997-01-28 06:12:54 +00:00
ache
29308755dd pcfs -> msdos
2.2 candidate
1996-11-10 02:23:33 +00:00
wosch
a50cb64703 little manual extension
Submitted by: jhs & wosch
1996-07-03 22:30:53 +00:00
mpp
3c57dc7753 Correct some man page xrefs, and some other minor changes to bring some
man pages up to mdoc guidelines and fix some minor formatting glitches.
Also fixed a number of man pages to not abuse the .Xr macro to
display functions and path names and a lot of other junk.
1996-04-08 04:18:31 +00:00
dg
e4399032af Document "noauto" as an fstab option. 1995-08-26 05:52:24 +00:00
rgrimes
b0d61785ca BSD 4.4 Lite Share Sources 1994-05-30 19:09:18 +00:00