summaryrefslogtreecommitdiffstats
path: root/sbin/newfs/newfs.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-10-31 21:52:28 +0000
committerpjd <pjd@FreeBSD.org>2006-10-31 21:52:28 +0000
commitad87251c1a1185717a0f74277ecd4a6def65e583 (patch)
treeb48f4736ca193851013f4dcfe8f64cc8cedffd00 /sbin/newfs/newfs.c
parent036e929548382eba04c176d581bb24928a5d4155 (diff)
downloadFreeBSD-src-ad87251c1a1185717a0f74277ecd4a6def65e583.zip
FreeBSD-src-ad87251c1a1185717a0f74277ecd4a6def65e583.tar.gz
Add -J flag to both newfs(8) and tunefs(8) which allows to enable gjournal
support. I left -j flag for UFS journal implementation which we may gain at some point. Sponsored by: home.pl
Diffstat (limited to 'sbin/newfs/newfs.c')
-rw-r--r--sbin/newfs/newfs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index 289d055..85fb34b 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -117,6 +117,7 @@ int Oflag = 2; /* file system format (1 => UFS1, 2 => UFS2) */
int Rflag; /* regression test */
int Uflag; /* enable soft updates for file system */
int Eflag = 0; /* exit in middle of newfs for testing */
+int Jflag; /* enable gjournal for file system */
int lflag; /* enable multilabel for file system */
int nflag; /* do not create .snap directory */
quad_t fssize; /* file system size */
@@ -156,11 +157,14 @@ main(int argc, char *argv[])
off_t mediasize;
while ((ch = getopt(argc, argv,
- "EL:NO:RS:T:Ua:b:c:d:e:f:g:h:i:lm:no:s:")) != -1)
+ "EJL:NO:RS:T:Ua:b:c:d:e:f:g:h:i:lm:no:s:")) != -1)
switch (ch) {
case 'E':
Eflag++;
break;
+ case 'J':
+ Jflag = 1;
+ break;
case 'L':
volumelabel = optarg;
i = -1;
OpenPOWER on IntegriCloud