Skip to contentSkip to conversation

cluster/gfs2 man/mkfs.gfs2.8 mkfs/main_mkfs.c

Cluster-devel [email protected] 1 participant 1 message Dec 19, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: rpeterso at sourceware.org 2006-12-19 17:52:14

Modified files:
gfs2/man : mkfs.gfs2.8
gfs2/mkfs : main_mkfs.c

Log message:
Resolves: bz 219878: gfs2 creation should default to 1 journal and lock_nolock

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/man/mkfs.gfs2.8.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.2&r2=1.1.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/mkfs/main_mkfs.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.8.2.2&r2=1.8.2.3

gfs2/man/mkfs.gfs2.8 +5 -3
@@ -1,5 +1,5 @@
 .\"  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
-.\"  Copyright (C) 2004 Red Hat, Inc.  All rights reserved.
+.\"  Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
 
 .TH mkfs.gfs2 8
 
@@ -31,7 +31,8 @@
 .TP
 \fB-j\fP \fINumber\fR 
 The number of journals for gfs2_mkfs to create.  You need at least one
-journal per machine that will mount the filesystem.
+journal per machine that will mount the filesystem.  If this option is
+not specified, one journal will be created.
 .TP
 \fB-O\fP
 This option prevents gfs2_mkfs from asking for confirmation before writing
@@ -41,7 +42,8 @@
 LockProtoName is the name of the  locking  protocol to use.  Acceptable
 locking protocols are \fIlock_dlm\fR or if you are using GFS2
 as a local filesystem (\fB1 node only\fP), you can specify the
-\fIlock_nolock\fR protocol.
+\fIlock_nolock\fR protocol.  If this option is not specified,
+\fIlock_nolock\fR protocol will be assumed.
 .TP
 \fB-q\fP
 Be quiet.  Don't print anything.
gfs2/mkfs/main_mkfs.c +2 -0
@@ -87,6 +87,8 @@
 	int optchar;
 
 	sdp->device_name = NULL;
+	sdp->md.journals = 1;
+	strcpy(sdp->lockproto, "lock_nolock");
 
 	while (cont) {
 		optchar = getopt(argc, argv, "-c:DhJ:j:Op:qr:t:u:VX");