diff options
author | phk <phk@FreeBSD.org> | 2007-12-16 19:41:31 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2007-12-16 19:41:31 +0000 |
commit | 8869357e615c78e3fd49cef030938ecad98ad0fb (patch) | |
tree | 50cd9188ad39d14622684bb1674d4d82c2da2a3d /sbin/newfs/newfs.h | |
parent | f0debf860a7293c754e26563a772bdac6d9aa62f (diff) | |
download | FreeBSD-src-8869357e615c78e3fd49cef030938ecad98ad0fb.zip FreeBSD-src-8869357e615c78e3fd49cef030938ecad98ad0fb.tar.gz |
Rename the undocumented -E option to -X.
Implement -E option which will erase the filesystem sectors before
making the new filesystem. Reserved space in front of the superblock
(bootcode) is not erased.
NB: Erasing can take as long time as writing every sector sequentially.
This is relevant for all flash based disks which use wearlevelling.
Diffstat (limited to 'sbin/newfs/newfs.h')
-rw-r--r-- | sbin/newfs/newfs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/newfs/newfs.h b/sbin/newfs/newfs.h index 19e383a..5c428c4 100644 --- a/sbin/newfs/newfs.h +++ b/sbin/newfs/newfs.h @@ -43,12 +43,13 @@ /* * variables set up by front end. */ +extern int Eflag; /* Erase previous disk contents */ extern int Lflag; /* add a volume label */ extern int Nflag; /* run mkfs without writing file system */ extern int Oflag; /* build UFS1 format file system */ extern int Rflag; /* regression test */ extern int Uflag; /* enable soft updates for file system */ -extern int Eflag; /* exit as if error, for testing */ +extern int Xflag; /* exit in middle of newfs 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 */ |