cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] cluster/gfs/gfs_grow main.c
@ 2006-08-10 19:48 rpeterso
  0 siblings, 0 replies; 6+ messages in thread
From: rpeterso @ 2006-08-10 19:48 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	rpeterso at sourceware.org	2006-08-10 19:48:44

Modified files:
	gfs/gfs_grow   : main.c 

Log message:
	Fix include gfs_ondisk.h to be located in gfs kernel source rather
	than in the kernel includes.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_grow/main.c.diff?cvsroot=cluster&r1=1.4&r2=1.5

--- cluster/gfs/gfs_grow/main.c	2006/07/10 23:34:18	1.4
+++ cluster/gfs/gfs_grow/main.c	2006/08/10 19:48:44	1.5
@@ -24,7 +24,7 @@
 #include <stdint.h>
 #include <inttypes.h>
 
-#include <linux/gfs_ondisk.h>
+#include "gfs_ondisk.h"
 #define __user
 #include "gfs_ioctl.h"
 #include "osi_list.h"



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Cluster-devel] cluster/gfs/gfs_grow main.c
@ 2007-01-17 19:06 rpeterso
  0 siblings, 0 replies; 6+ messages in thread
From: rpeterso @ 2007-01-17 19:06 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	rpeterso at sourceware.org	2007-01-17 19:06:23

Modified files:
	gfs/gfs_grow   : main.c 

Log message:
	Resolves: bz 222743: gfs_grow gets the rgindex out of order.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_grow/main.c.diff?cvsroot=cluster&r1=1.5&r2=1.6

--- cluster/gfs/gfs_grow/main.c	2006/08/10 19:48:44	1.5
+++ cluster/gfs/gfs_grow/main.c	2007/01/17 19:06:23	1.6
@@ -668,7 +668,7 @@
 	rgl->rg.rg_header.mh_format = GFS_FORMAT_RG;
 	rgl->rg.rg_free = rgl->ri.ri_data;
 
-	osi_list_add(&rgl->list, &rglist_new);
+	osi_list_add_prev(&rgl->list, &rglist_new);
 	return offset + size;
 }
 



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Cluster-devel] cluster/gfs/gfs_grow main.c
@ 2007-01-17 19:08 rpeterso
  0 siblings, 0 replies; 6+ messages in thread
From: rpeterso @ 2007-01-17 19:08 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	rpeterso at sourceware.org	2007-01-17 19:08:25

Modified files:
	gfs/gfs_grow   : main.c 

Log message:
	Resolves: bz 222743: gfs_grow gets the rgindex out of order.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_grow/main.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.5&r2=1.5.2.1

--- cluster/gfs/gfs_grow/main.c	2006/08/10 19:48:44	1.5
+++ cluster/gfs/gfs_grow/main.c	2007/01/17 19:08:25	1.5.2.1
@@ -668,7 +668,7 @@
 	rgl->rg.rg_header.mh_format = GFS_FORMAT_RG;
 	rgl->rg.rg_free = rgl->ri.ri_data;
 
-	osi_list_add(&rgl->list, &rglist_new);
+	osi_list_add_prev(&rgl->list, &rglist_new);
 	return offset + size;
 }
 



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Cluster-devel] cluster/gfs/gfs_grow main.c
@ 2007-01-17 22:58 rpeterso
  0 siblings, 0 replies; 6+ messages in thread
From: rpeterso @ 2007-01-17 22:58 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL4
Changes by:	rpeterso at sourceware.org	2007-01-17 22:58:44

Modified files:
	gfs/gfs_grow   : main.c 

Log message:
	Resolves: bz 222748: gfs_grow gets the rgindex out of order.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_grow/main.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.3&r2=1.3.2.1

--- cluster/gfs/gfs_grow/main.c	2005/01/04 10:07:07	1.3
+++ cluster/gfs/gfs_grow/main.c	2007/01/17 22:58:44	1.3.2.1
@@ -669,7 +669,7 @@
 	rgl->rg.rg_header.mh_format = GFS_FORMAT_RG;
 	rgl->rg.rg_free = rgl->ri.ri_data;
 
-	osi_list_add(&rgl->list, &rglist_new);
+	osi_list_add_prev(&rgl->list, &rglist_new);
 	return offset + size;
 }
 



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Cluster-devel] cluster/gfs/gfs_grow main.c
@ 2007-10-25 20:02 rpeterso
  0 siblings, 0 replies; 6+ messages in thread
From: rpeterso @ 2007-10-25 20:02 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	rpeterso at sourceware.org	2007-10-25 20:02:04

Modified files:
	gfs/gfs_grow   : main.c 

Log message:
	Resolves: bz 337961: gfs_grow /mountpoint/ does not work

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_grow/main.c.diff?cvsroot=cluster&r1=1.7&r2=1.8

--- cluster/gfs/gfs_grow/main.c	2007/08/22 08:58:43	1.7
+++ cluster/gfs/gfs_grow/main.c	2007/10/25 20:02:03	1.8
@@ -729,33 +729,42 @@
  */
 
 static int
-find_fs(char *name)
+find_fs(const char *name)
 {
 	FILE *fp = fopen("/proc/mounts", "r");
 	char buffer[4096];
 	char fstype[80];
 	int fsdump, fspass;
+	char *realname;
 
+	realname = realpath(name, NULL);
+	if (!realname) {
+		perror(name);
+		return -1;
+	}
 	if (fp == NULL) {
 		perror("open: /proc/mounts");
 		exit(EXIT_FAILURE);
 	}
 	while ((fgets(buffer, 4095, fp)) != NULL) {
 		buffer[4095] = 0;
-		if (strstr(buffer, name) == 0)
+		if (strstr(buffer, realname) == 0)
 			continue;
 		if (sscanf(buffer, "%s %s %s %s %d %d", device, fspath, fstype,
 			   fsoptions, &fsdump, &fspass) != 6)
 			continue;
 		if (strcmp(fstype, "gfs") != 0)
 			continue;
-		if ((strcmp(device, name) != 0) && (strcmp(fspath, name) != 0))
+		if ((strcmp(device, realname) != 0) &&
+		    (strcmp(fspath, realname) != 0))
 			continue;
 		fclose(fp);
+		free(realname);
 		return 0;
 	}
 	fprintf(stderr, "GFS Filesystem %s not found\n", name);
 	fclose(fp);
+	free(realname);
 	return 1;
 }
 



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Cluster-devel] cluster/gfs/gfs_grow main.c
@ 2007-10-25 20:02 rpeterso
  0 siblings, 0 replies; 6+ messages in thread
From: rpeterso @ 2007-10-25 20:02 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	rpeterso at sourceware.org	2007-10-25 20:02:51

Modified files:
	gfs/gfs_grow   : main.c 

Log message:
	Resolves: bz 337961: gfs_grow /mountpoint/ does not work

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_grow/main.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.5.2.1&r2=1.5.2.2

--- cluster/gfs/gfs_grow/main.c	2007/01/17 19:08:25	1.5.2.1
+++ cluster/gfs/gfs_grow/main.c	2007/10/25 20:02:51	1.5.2.2
@@ -729,33 +729,42 @@
  */
 
 static int
-find_fs(char *name)
+find_fs(const char *name)
 {
 	FILE *fp = fopen("/proc/mounts", "r");
 	char buffer[4096];
 	char fstype[80];
 	int fsdump, fspass;
+	char *realname;
 
+	realname = realpath(name, NULL);
+	if (!realname) {
+		perror(name);
+		return -1;
+	}
 	if (fp == NULL) {
 		perror("open: /proc/mounts");
 		exit(EXIT_FAILURE);
 	}
 	while ((fgets(buffer, 4095, fp)) != NULL) {
 		buffer[4095] = 0;
-		if (strstr(buffer, name) == 0)
+		if (strstr(buffer, realname) == 0)
 			continue;
 		if (sscanf(buffer, "%s %s %s %s %d %d", device, fspath, fstype,
 			   fsoptions, &fsdump, &fspass) != 6)
 			continue;
 		if (strcmp(fstype, "gfs") != 0)
 			continue;
-		if ((strcmp(device, name) != 0) && (strcmp(fspath, name) != 0))
+		if ((strcmp(device, realname) != 0) &&
+		    (strcmp(fspath, realname) != 0))
 			continue;
 		fclose(fp);
+		free(realname);
 		return 0;
 	}
 	fprintf(stderr, "GFS Filesystem %s not found\n", name);
 	fclose(fp);
+	free(realname);
 	return 1;
 }
 



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-10-25 20:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-10 19:48 [Cluster-devel] cluster/gfs/gfs_grow main.c rpeterso
  -- strict thread matches above, loose matches on Subject: below --
2007-01-17 19:06 rpeterso
2007-01-17 19:08 rpeterso
2007-01-17 22:58 rpeterso
2007-10-25 20:02 rpeterso
2007-10-25 20:02 rpeterso

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).