Commit Graph

36 Commits

Author SHA1 Message Date
ru
49669ede8f Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
ssouhlal
841126cca5 Remove unsigned casts.
Discussed with:	delphij, stefanf
Approved by:	grehan (mentor)
2005-01-31 04:45:45 +00:00
ssouhlal
d25aa44088 - Make WARNS?= 6 clean
- Add WARNS?= 6

Approved by:	stefanf, grehan (mentor)
2005-01-25 14:28:31 +00:00
ru
cde9589110 Assorted markup, grammar, and spelling fixes. 2004-05-17 08:35:43 +00:00
ru
9958b0a7f1 Added -l to usage(). 2004-05-17 07:07:20 +00:00
rwatson
310ae11269 Add a "-l" parameter to mdmfs so that memory file systems can be
created with the multilabel flag from inception.  This simply
passes the "-l" flag on to newfs(8).

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, McAfee Research
2004-02-26 01:15:47 +00:00
grehan
17b9201288 Userland signed char fixes for PPC build. Problems were using a char
return for getopt() and comparing to -1, ditto with fgetc() and EOF,
and using the kg_nice value from <sys/user.h>

Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
Reviewed by: obrien, bde (a while back)
Tested lightly on: ppc, i386, make universe
2004-01-22 07:23:36 +00:00
yar
82d0fb1cec Don't reinvent the wheel: Use setmode(3) to interpret
a file mode specification from the command line.  This
approach is more flexible and less error-prone than using
a mere strtoul(3).
2003-08-05 15:04:39 +00:00
kan
9e7af78d2e Do not compare unsigned int values with ULONG_MAX. The comparison is
always false on 64bit platforms and GCC 3.3.1 issues warning there.
2003-07-11 05:47:05 +00:00
gordon
b77de74248 Remove pathnames.h.
Pointed out by:	Mathieu Arnold <mat@mat.cc>
2003-06-29 19:03:52 +00:00
gordon
febd8b1f51 Move path definitions to include/paths.h. This makes it easier to override
these definitions in the /rescue case.

Submitted by:	Tim Kientzle <kientzle@acm.org>
2003-06-29 18:06:05 +00:00
ru
140859483f mdoc(7) fix: Add the forgotten paragraph command.
Approved by:	re (blanket)
2003-05-17 22:31:48 +00:00
dougb
08aaead5a5 Add an example of how to create an fstab entry. 2003-05-05 23:41:17 +00:00
obrien
43cf45d89f Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
dougb
90be04facb Also MLINK the man page for mount_mfs. 2003-04-27 01:40:45 +00:00
dougb
f07134d08f Install a mount_mfs symlink so that you can specify something like this
in /etc/fstab to get a memory disk:

md                      /tmp            mfs rw,-s8m,noatime     2       2

Back when mdmfs was created, there was vague discussion about doing this, but
it never materialized.

Reminded by:	Ralf S. Engelschall <rse@engelschall.com>
2003-04-27 01:18:36 +00:00
schweikh
2505bee728 english(4) police. 2002-12-27 12:15:40 +00:00
rwatson
00b4559455 Teach mdmfs how to pass UFS version numbers through to newfs. Because
of an argument name collision with -O, use -v, and default to whatever
the newfs default is for the platform (generally, UFS1).  This is
required to support diskless workstations that use UFS2 for their
mdmfs file systems.

Reviewed by:	dd, bmah
Approved by:	re (bmah)
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-12-01 23:19:57 +00:00
phk
f8bcaff0ef Don't disklabel(8) the md(4) device, it is not needed, and we don't want
to propagete BSD disklabels to architectures not already so polluted.

Sponsored by:	DARPA & NAI Labs.
2002-09-22 09:46:28 +00:00
trhodes
8dde7c54b8 s/filesystem/file system/g as discussed on -developers 2002-08-21 18:11:48 +00:00
charnier
548d38d27c The .Nm utility 2002-07-06 19:34:18 +00:00
des
c91c856b3e Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
obrien
a537f22ad4 Default to WARNS=2.
Binary builds that cannot handle this must explicitly set WARNS=0.

Reviewed by:	mike
2001-12-04 02:19:58 +00:00
iedowse
f522853d2a Enable bug-for-bug compatibility with mount_mfs when the program
name is "mount_mfs" or "mfs". Previously, the condition was that
the program name must start with "mount_", but this both missed
the case where mount(8) invokes mdmfs with argv[0] = "mfs", and it
included cases such as "mount_md" where compatibility is not
required.

Reviewed by:	dd
2001-09-30 15:14:16 +00:00
ru
e0d926611f mdoc(7) police: Section cross-references are marked with .Sx.
-compat is not a valid keyword.
2001-08-16 07:43:16 +00:00
dd
a0098194ed Implement a better compatibility mode with mount_mfs. It is the
default if the executable is named (called as) "mount_*", or can be
enabled with the -C option.  This allows users to leave their old
fstab entires unchanged (modulo symlink'ing mdmfs to mount(md|mfs))
and have things behave the way they should (by emulating mount_mfs
silliness), while still allowing mdmfs to be used as a generic
make-an-md-and-mount-it type thing.

Right now, the only effects of this option is to set the mount-point
mode to 01777 as if "-p 1777" was given, and to complain about getting
command-line options that mount_mfs didn't take (e.g., -X, -L, et al).
The latter is mostly to try to catch operator errors.

Also implement -U, which turns on soft-updates.  It's redundant (since
softdep is the default), but implement it anyway for compatibility.
2001-08-16 02:40:29 +00:00
obrien
0f05ba3e21 style(9) tweak
Approved by:	dd
2001-08-14 14:14:20 +00:00
dd
bf180d526d Document -X.
Submitted by:	kris
2001-07-30 09:13:21 +00:00
dd
5cd7741404 Nuke my e-mail address since it seems out of place here. 2001-07-30 09:11:17 +00:00
kris
a1b5bae721 Add __printflike() to those static functions which need it. 2001-07-01 23:24:27 +00:00
dd
93d6f85347 Use strdup(3) instead of reimplementing it inline. 2001-06-24 18:21:52 +00:00
mjacob
ceb4d26cec Fix compilation error on alpha. 2001-06-21 22:34:50 +00:00
dd
66a0fa7075 Add a missing word.
Submitted by:	Alexander Leidinger <Alexander@Leidinger.net>
2001-06-20 22:10:31 +00:00
dd
27920bc4e4 Add a SEE ALSO section. 2001-06-20 00:37:34 +00:00
dd
da7815fb89 Miscellaneous mdoc(7) fixes; also expand contractions.
Submitted by:	ru
2001-06-20 00:34:20 +00:00
dd
56a74332dd Introduce mdmfs(8), a wrapper around mdconfig(8), disklabel(8),
newfs(8), and mount(8) that mimics the command line option set of the
deprecated mount_mfs(8).

Approved by:	jkh, phk, -hackers
2001-06-18 23:46:58 +00:00