summaryrefslogtreecommitdiff
path: root/sbin/ffsinfo/ffsinfo.c
Commit message (Collapse)AuthorAgeFilesLines
* In preparation for adding inode check-hashes, clean up andKirk McKusick2018-11-131-51/+52
| | | | | | | | | | | | | | | | | | | document the libufs interface for fetching and storing inodes. The undocumented getino / putino interface has been replaced with a new getinode / putinode interface. Convert the utilities that had been using the undocumented interface to use the new documented interface. No functional change (as for now the libufs library does not do inode check-hashes). Reviewed by: kib Tested by: Peter Holm Sponsored by: Netflix Notes: svn path=/head/; revision=340411
* spdx: initial adoption of licensing ID tags.Pedro F. Giffuni2017-11-181-1/+3
| | | | | | | | | | | | | | | | | | | | The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Initially, only tag files that use BSD 4-Clause "Original" license. RelNotes: yes Differential Revision: https://reviews.freebsd.org/D13133 Notes: svn path=/head/; revision=325966
* prefix UFS symbols with UFS_ to reduce namespace pollutionEd Maste2017-02-151-2/+2
| | | | | | | | | | | | | | | | | | | | | Specifically: ROOTINO -> UFS_ROOTINO WINO -> UFS_WINO NXADDR -> UFS_NXADDR NDADDR -> UFS_NDADDR NIADDR -> UFS_NIADDR MAXSYMLINKLEN_UFS[12] -> UFS[12]_MAXSYMLINKLEN (for consistency) Also prefix ext2's and nandfs's NDADDR and NIADDR with EXT2_ and NANDFS_ Reviewed by: kib, mckusick Obtained from: NetBSD MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D9536 Notes: svn path=/head/; revision=313780
* Adjust printf format specifiers for dev_t and ino_t in user space.Gleb Kurtsou2014-12-171-19/+27
| | | | | | | | | ino_t and dev_t are about to become uint64_t. Reviewed by: kib, mckusick Notes: svn path=/head/; revision=275855
* Add missing static keywords for global variables to tools in sbin/.Ed Schouten2011-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. Notes: svn path=/head/; revision=227081
* Don't coredump when executed with -o.Xin LI2008-01-291-1/+1
| | | | Notes: svn path=/head/; revision=175782
* Default output to stdout as the man page suggests.Brian Somers2007-02-141-3/+1
| | | | Notes: svn path=/head/; revision=166726
* Only go through our cylinder group and inode info when we need to.Brian Somers2007-02-141-45/+49
| | | | | | | This allows ``ffsinfo -o - -l1 /tmp'' to run a lot quicker. Notes: svn path=/head/; revision=166725
* Re-indent main() in preparation for further changes.Brian Somers2007-02-141-126/+87
| | | | Notes: svn path=/head/; revision=166724
* Don't default to '/var/tmp/ffsinfo' for the output of ffsinfo(8), sinceRobert Watson2005-03-311-4/+3
| | | | | | | | | | /var/tmp is a world-writable directory. MFC after: 3 days Reported by: Jon Passki <cykyc@yahoo.com> Notes: svn path=/head/; revision=144361
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-02-101-1/+1
| | | | Notes: svn path=/head/; revision=141611
* The ffsinfo utility uses atol() to parse numeric values out of optargRobert Watson2005-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 Notes: svn path=/head/; revision=139647
* Assign the result of getopt() to an int rather than to a char (which isStefan Farfeleder2004-07-261-1/+1
| | | | | | | possibly unsigned). Notes: svn path=/head/; revision=132660
* Commit 1 of 2 to fix ffsinfo(8) for UFS2.Robert Watson2003-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 Notes: svn path=/head/; revision=118918
* s/filesystem/file system/g as discussed on -developersTom Rhodes2002-08-211-3/+3
| | | | Notes: svn path=/head/; revision=102231
* Removed duplicate VCS ID tags, as per style(9).Ruslan Ermilov2001-08-131-1/+0
| | | | Notes: svn path=/head/; revision=81586
* cleanup to get rid of most warnings on alphaThomas-Henning von Kamptz2001-06-071-42/+47
| | | | | | | | | | and yes now it also works on alpha Reviewed by: chm MFC after: 3 weeks Notes: svn path=/head/; revision=77885
* corrected spelling mistakes in commentsThomas-Henning von Kamptz2000-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 Notes: svn path=/head/; revision=69926
* added growfs(8) including ffsinfo(8) to the freebsd base systemThomas-Henning von Kamptz2000-12-091-0/+615
Reviewed by: grog Notes: svn path=/head/; revision=69800