summaryrefslogtreecommitdiffstats
path: root/sbin/ffsinfo/ffsinfo.c
Commit message (Collapse)AuthorAgeFilesLines
* Add missing static keywords for global variables to tools in sbin/.ed2011-11-041-1/+1
| | | | | | 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.
* Don't coredump when executed with -o.delphij2008-01-291-1/+1
|
* Default output to stdout as the man page suggests.brian2007-02-141-3/+1
|
* Only go through our cylinder group and inode info when we need to.brian2007-02-141-45/+49
| | | | This allows ``ffsinfo -o - -l1 /tmp'' to run a lot quicker.
* Re-indent main() in preparation for further changes.brian2007-02-141-126/+87
|
* Don't default to '/var/tmp/ffsinfo' for the output of ffsinfo(8), sincerwatson2005-03-311-4/+3
| | | | | | | /var/tmp is a world-writable directory. MFC after: 3 days Reported by: Jon Passki <cykyc@yahoo.com>
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-101-1/+1
|
* The ffsinfo utility uses atol() to parse numeric values out of optargrwatson2005-01-031-3/+10
| | | | | | | | | | | | | | 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
* Assign the result of getopt() to an int rather than to a char (which isstefanf2004-07-261-1/+1
| | | | possibly unsigned).
* Commit 1 of 2 to fix ffsinfo(8) for UFS2.rwatson2003-08-141-198/+223
| | | | | | | | | | | | | | | | 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
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-211-3/+3
|
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-131-1/+0
|
* cleanup to get rid of most warnings on alphatomsoft2001-06-071-42/+47
| | | | | | | and yes now it also works on alpha Reviewed by: chm MFC after: 3 weeks
* corrected spelling mistakes in commentstomsoft2000-12-121-65/+90
| | | | | | | | | | 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
* added growfs(8) including ffsinfo(8) to the freebsd base systemtomsoft2000-12-091-0/+615
Reviewed by: grog
OpenPOWER on IntegriCloud