Commit Graph

36 Commits

Author SHA1 Message Date
joel
7b26e8ff4f Cross-reference gvinum(8) instead of vinum(8). 2013-03-16 22:02:47 +00:00
ed
9762eebc70 Remove trailing whitespace. 2011-11-09 21:01:50 +00:00
ed
5b02333e84 Add missing static keywords for global variables to tools in sbin/.
These tools declare global variables without using the static keyword,
even though their use is limited to a single C-file, or without placing
an extern declaration of them in the proper header file.
2011-11-04 13:36:02 +00:00
uqs
764da0e641 Bump WARNS where possible.
Checked by:	make universe
Approved by:	ed (co-mentor)
2010-02-15 14:07:40 +00:00
delphij
e9a7a633a2 Don't coredump when executed with -o. 2008-01-29 00:20:00 +00:00
brian
494959a002 Default output to stdout as the man page suggests. 2007-02-14 23:22:33 +00:00
brian
e698fb63e2 Only go through our cylinder group and inode info when we need to.
This allows ``ffsinfo -o - -l1 /tmp'' to run a lot quicker.
2007-02-14 23:20:30 +00:00
brian
32927790ed Re-indent main() in preparation for further changes. 2007-02-14 23:12:32 +00:00
maxim
107ec690fc o Fix typo.
Obtained from:	DragonFlyBSD
2006-06-11 15:53:36 +00:00
ceri
c28bf29163 Grammatical improvement. 2005-04-08 10:32:22 +00:00
rwatson
fe3d70d054 Don't default to '/var/tmp/ffsinfo' for the output of ffsinfo(8), since
/var/tmp is a world-writable directory.

MFC after:	3 days
Reported by:	Jon Passki <cykyc@yahoo.com>
2005-03-31 04:05:17 +00:00
ru
719be5d341 Sync program's usage() with manpage's SYNOPSIS. 2005-02-10 09:19:34 +00:00
ru
13fe9ea5a2 Sort sections. 2005-01-18 10:09:38 +00:00
rwatson
2f28c551e1 The ffsinfo utility uses atol() to parse numeric values out of optarg
strings.  This isn't necessarily a bug, but it can be slightly inconvenient,
because atol() doesn't know how to parse hexadecimal or octal numbers and at
least one of the options of ffsinfo(8) would be easier to use if it did.

Changing atol() -> strtol() allows one to use hex masks for -l MASK, i.e.:

orion:/a/freebsd/src/sbin/ffsinfo# ./ffsinfo -l 0x3ff /

PR:		73110
Submitted by:	keramida
MFC after:	2 weeks
2005-01-03 18:59:04 +00:00
stefanf
4cf0522899 Assign the result of getopt() to an int rather than to a char (which is
possibly unsigned).
2004-07-26 15:04:57 +00:00
johan
30a416556d Remove these MAINTAINER lines since the maintainers has had their
commit bits retired for safe keeping.
2004-04-01 20:31:49 +00:00
cperciva
7fd2e87e6c Clarify behaviour of ffsinfo: It appends to outfile without
removing any existing contents.

PR:		bin/61473
Submitted by:	Alex Popa <razon@ldc.ro>
MFC after:	7 days
Approved by:	rwatson (mentor)
2004-01-23 05:13:22 +00:00
rwatson
f25b6baf4b Commit 1 of 2 to fix ffsinfo(8) for UFS2.
Update ffsinfo(8) to use new UFS2 support in the growfs(8) debugging
functions.  Largely consists of renaming fields and types to be aware
of the UFS1/UFS2 distinction, relying on libufs(3) to open and sanity
check the device/file/label accessed.

Since libufs(3) now handles label/UFS interactions, remove -L argument.

Note: when submitted, this patch had substantial style changes.  I've
attempted to remove the restyling from the patch to separate the
functional and style changes.

Submitted by:	Lukas Ertl <l.ertl@univie.ac.at>
PR:		bin/53517
2003-08-14 18:55:31 +00:00
obrien
5796c98c6a style clean. 2003-06-11 23:24:31 +00:00
trhodes
136be46680 s/filesystem/file system/g as discussed on -developers 2002-08-21 18:11:48 +00:00
ru
468da1a22d mdoc(7) police: nits. 2002-05-29 16:47:55 +00:00
trhodes
896f3841bf more file system > filesystem 2002-05-16 04:10:46 +00:00
charnier
487a22adbf Use `The .Nm utility' 2002-04-20 11:58:12 +00:00
rwatson
7c9efde44f "-" now sends output to stdout. 2002-03-20 02:35:14 +00:00
obrien
9baf2f1b03 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
ru
95ce4d2cdc Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
sheldonh
80fcc4abbc MFS: in HISTORY section, fix release number of first appearance 2001-08-01 12:15:21 +00:00
dd
a145482cf6 Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
dd
eaa6ee03b8 mdoc(7) police: remove extraneous .Pp before and/or after .Sh. 2001-07-09 09:54:33 +00:00
tomsoft
c8022c06b6 cleanup to get rid of most warnings on alpha
and yes now it also works on alpha

Reviewed by:	chm
MFC after:	3 weeks
2001-06-07 20:43:00 +00:00
ru
86642a4ab4 - Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.
2001-03-26 14:33:27 +00:00
ru
56b5d7535b Set the default manual section for sbin/ to 8. 2001-03-20 18:13:31 +00:00
ru
979699b8a9 Prepare for mdoc(7)NG. 2000-12-19 15:36:48 +00:00
ru
6102fe2ec4 Mdoc(7)ify. 2000-12-13 11:33:19 +00:00
tomsoft
9c8593d686 corrected spelling mistakes in comments
check a couple of mallocs
usage of errx
linebreaks of DBG_ macros,
correcting the usage of nroff macros

Submitted by:	grog, charnier
Reviewed by:	chm
2000-12-12 20:03:17 +00:00
tomsoft
a11b7b009a added growfs(8) including ffsinfo(8) to the freebsd base system
Reviewed by:	 grog
2000-12-09 15:27:35 +00:00