summaryrefslogtreecommitdiffstats
path: root/sbin/newfs/newfs.h
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2007-11-28 07:29:10 +0000
committeryar <yar@FreeBSD.org>2007-11-28 07:29:10 +0000
commit13b1c70facfd50df5e26ab1d2cb15ec557a2c480 (patch)
tree87013b76681a13ea5066cc3256a664fd1b2e4efe /sbin/newfs/newfs.h
parent2562874cb6c7148dd0a0e252035eeb28cc19eb23 (diff)
downloadFreeBSD-src-13b1c70facfd50df5e26ab1d2cb15ec557a2c480.zip
FreeBSD-src-13b1c70facfd50df5e26ab1d2cb15ec557a2c480.tar.gz
MFp4:
Add a new option to newfs(8), -r, to specify reserved space at the end of the device. It can be useful, e.g., when the device is to become a member of a gmirror array later w/o losing the file system on it. Document the new option in the manpage. While I'm here, improve error handling for -s option, which is syntactically similar to -r; and document the fact that -s0 selects the default fs size explicitly, which can be useful, e.g., in a menu-based wrapper around newfs(8) requiring some value be entered for the fs size. Also fix a small typo in the help line for -s (missing space). Idea and initial implementation by: marck Discussed on: -fs Critical review by: bde Tested with: cmp(1)
Diffstat (limited to 'sbin/newfs/newfs.h')
-rw-r--r--sbin/newfs/newfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs/newfs.h b/sbin/newfs/newfs.h
index 55f920f..19e383a 100644
--- a/sbin/newfs/newfs.h
+++ b/sbin/newfs/newfs.h
@@ -52,7 +52,7 @@ extern int Eflag; /* exit as if error, for testing */
extern int Jflag; /* enable gjournal for file system */
extern int lflag; /* enable multilabel MAC for file system */
extern int nflag; /* do not create .snap directory */
-extern quad_t fssize; /* file system size */
+extern intmax_t fssize; /* file system size */
extern int sectorsize; /* bytes/sector */
extern int realsectorsize; /* bytes/sector in hardware*/
extern int fsize; /* fragment size */
OpenPOWER on IntegriCloud