History log of /freebsd-10.0-release/sbin/ffsinfo/ffsinfo.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 227081 04-Nov-2011 ed

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.


# 175782 28-Jan-2008 delphij

Don't coredump when executed with -o.


# 166726 14-Feb-2007 brian

Default output to stdout as the man page suggests.


# 166725 14-Feb-2007 brian

Only go through our cylinder group and inode info when we need to.
This allows ``ffsinfo -o - -l1 /tmp'' to run a lot quicker.


# 166724 14-Feb-2007 brian

Re-indent main() in preparation for further changes.


# 144361 31-Mar-2005 rwatson

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>


# 141611 10-Feb-2005 ru

Sync program's usage() with manpage's SYNOPSIS.


# 139647 03-Jan-2005 rwatson

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


# 132660 26-Jul-2004 stefanf

Assign the result of getopt() to an int rather than to a char (which is
possibly unsigned).


# 118918 14-Aug-2003 rwatson

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


# 102231 21-Aug-2002 trhodes

s/filesystem/file system/g as discussed on -developers


# 81586 13-Aug-2001 ru

Removed duplicate VCS ID tags, as per style(9).


# 77885 07-Jun-2001 tomsoft

cleanup to get rid of most warnings on alpha
and yes now it also works on alpha

Reviewed by: chm
MFC after: 3 weeks


# 69926 12-Dec-2000 tomsoft

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


# 69800 09-Dec-2000 tomsoft

added growfs(8) including ffsinfo(8) to the freebsd base system

Reviewed by: grog