Skip to contentSkip to conversation

cluster/cman/qdisk mkqdisk.c

Cluster-devel [email protected] 1 participant 1 message Nov 21, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: lhh at sourceware.org 2006-11-21 14:50:31

Modified files:
cman/qdisk : mkqdisk.c

Log message:

	Fix #213218

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/mkqdisk.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.3&r2=1.3.4.1

cman/qdisk/mkqdisk.c +3 -3
@@ -39,9 +39,9 @@
 	char *newdev = NULL, *newlabel = NULL;
 	int rv;
 
-	printf("mkqdisk v0.5\n");
+	printf("mkqdisk v0.5.1\n");
 
-	while ((rv = getopt(argc, argv, "Lfc:l:h")) != EOF) {
+	while ((rv = getopt(argc, argv, "Lf:c:l:h")) != EOF) {
 		switch (rv) {
 		case 'L':
 			/* List */
@@ -53,7 +53,7 @@
 			close(2);
 			return find_partitions("/proc/partitions",
 					       optarg, device,
-					       sizeof(device), 0);
+					       sizeof(device), 1);
 		case 'c':
 			newdev = optarg;
 			break;