* [Cluster-devel] cluster gfs/gfs_mkfs/main.c gfs2/mkfs/main_mkfs.c
@ 2007-07-12 15:45 rohara
0 siblings, 0 replies; 2+ messages in thread
From: rohara @ 2007-07-12 15:45 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rohara at sourceware.org 2007-07-12 15:45:44
Modified files:
gfs/gfs_mkfs : main.c
gfs2/mkfs : main_mkfs.c
Log message:
Fix bug where mkfs always exits with EXIT_FAILURE.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_mkfs/main.c.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/mkfs/main_mkfs.c.diff?cvsroot=cluster&r1=1.15&r2=1.16
--- cluster/gfs/gfs_mkfs/main.c 2007/07/10 18:01:01 1.7
+++ cluster/gfs/gfs_mkfs/main.c 2007/07/12 15:45:43 1.8
@@ -262,16 +262,13 @@
if (strcmp(device, mnt->mnt_fsname) == 0) {
printf("cannot create filesystem: ");
printf("%s appears to be mounted\n", device);
- break;
+ endmntent(fp);
+ exit(EXIT_FAILURE);
}
}
endmntent(fp);
- if (fp != NULL) {
- exit(EXIT_FAILURE);
- }
-
return;
}
--- cluster/gfs2/mkfs/main_mkfs.c 2007/07/10 18:21:28 1.15
+++ cluster/gfs2/mkfs/main_mkfs.c 2007/07/12 15:45:44 1.16
@@ -302,16 +302,14 @@
if (strcmp(device, mnt->mnt_fsname) == 0) {
printf("cannot create filesystem: ");
printf("%s appears to be mounted\n", device);
+ endmntent(fp);
+ exit(EXIT_FAILURE);
break;
}
}
endmntent(fp);
- if (fp != NULL) {
- exit(EXIT_FAILURE);
- }
-
return;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Cluster-devel] cluster gfs/gfs_mkfs/main.c gfs2/mkfs/main_mkfs.c
@ 2007-07-12 15:49 rohara
0 siblings, 0 replies; 2+ messages in thread
From: rohara @ 2007-07-12 15:49 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: rohara at sourceware.org 2007-07-12 15:49:27
Modified files:
gfs/gfs_mkfs : main.c
gfs2/mkfs : main_mkfs.c
Log message:
Fix bug where mkfs always exits with EXIT_FAILURE.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_mkfs/main.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.5.2.2&r2=1.5.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.7&r2=1.8.2.8
--- cluster/gfs/gfs_mkfs/main.c 2007/07/10 19:18:19 1.5.2.2
+++ cluster/gfs/gfs_mkfs/main.c 2007/07/12 15:49:27 1.5.2.3
@@ -262,16 +262,14 @@
if (strcmp(device, mnt->mnt_fsname) == 0) {
printf("cannot create filesystem: ");
printf("%s appears to be mounted\n", device);
+ endmntent(fp);
+ exit(EXIT_FAILURE);
break;
}
}
endmntent(fp);
- if (fp != NULL) {
- exit(EXIT_FAILURE);
- }
-
return;
}
--- cluster/gfs2/mkfs/main_mkfs.c 2007/07/10 19:18:44 1.8.2.7
+++ cluster/gfs2/mkfs/main_mkfs.c 2007/07/12 15:49:27 1.8.2.8
@@ -302,16 +302,14 @@
if (strcmp(device, mnt->mnt_fsname) == 0) {
printf("cannot create filesystem: ");
printf("%s appears to be mounted\n", device);
+ endmntent(fp);
+ exit(EXIT_FAILURE);
break;
}
}
endmntent(fp);
- if (fp != NULL) {
- exit(EXIT_FAILURE);
- }
-
return;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-12 15:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-12 15:45 [Cluster-devel] cluster gfs/gfs_mkfs/main.c gfs2/mkfs/main_mkfs.c rohara
-- strict thread matches above, loose matches on Subject: below --
2007-07-12 15:49 rohara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).