All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cluster-devel] cluster/gfs2/quota main.c
@ 2007-05-14 22:26 adas
  0 siblings, 0 replies; 2+ messages in thread
From: adas @ 2007-05-14 22:26 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	adas at sourceware.org	2007-05-14 22:26:31

Modified files:
	gfs2/quota     : main.c 

Log message:
	Need to write the user/group id to the sysfs quota refresh file instead of '1'

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

--- cluster/gfs2/quota/main.c	2007/05/10 15:47:45	1.4
+++ cluster/gfs2/quota/main.c	2007/05/14 22:26:31	1.5
@@ -555,6 +555,7 @@
 	int error;
 	char quota_file[BUF_SIZE];
 	char sys_q_refresh[BUF_SIZE];
+	char id_str[16];
 	
 	if (!*comline->filesystem)
 		die("need a filesystem to work on\n");
@@ -656,8 +657,10 @@
 			strerror(errno));
 		goto out;
 	}
+
+	sprintf(id_str, "%d", comline->id);
 	
-	if (write(fd1,(void*)"1", 1) != 1) {
+	if (write(fd1,(void*)id_str, strlen(id_str)) != strlen(id_str)) {
 		close(fd1);
 		fprintf(stderr, "failed to write to %s: %s\n", 
 			sys_q_refresh, strerror(errno));



^ permalink raw reply	[flat|nested] 2+ messages in thread
* [Cluster-devel] cluster/gfs2/quota main.c
@ 2007-05-14 22:26 adas
  0 siblings, 0 replies; 2+ messages in thread
From: adas @ 2007-05-14 22:26 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	adas at sourceware.org	2007-05-14 22:26:01

Modified files:
	gfs2/quota     : main.c 

Log message:
	Need to write the user/group id to the sysfs quota refresh file instead of '1'

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/quota/main.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.2.2.2&r2=1.2.2.3

--- cluster/gfs2/quota/main.c	2007/05/11 16:53:33	1.2.2.2
+++ cluster/gfs2/quota/main.c	2007/05/14 22:26:01	1.2.2.3
@@ -555,6 +555,7 @@
 	int error;
 	char quota_file[BUF_SIZE];
 	char sys_q_refresh[BUF_SIZE];
+	char id_str[16];
 	
 	if (!*comline->filesystem)
 		die("need a filesystem to work on\n");
@@ -656,8 +657,10 @@
 			strerror(errno));
 		goto out;
 	}
+
+	sprintf(id_str, "%d", comline->id);
 	
-	if (write(fd1,(void*)"1", 1) != 1) {
+	if (write(fd1,(void*)id_str, strlen(id_str)) != strlen(id_str)) {
 		close(fd1);
 		fprintf(stderr, "failed to write to %s: %s\n", 
 			sys_q_refresh, strerror(errno));



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

end of thread, other threads:[~2007-05-14 22:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-14 22:26 [Cluster-devel] cluster/gfs2/quota main.c adas
  -- strict thread matches above, loose matches on Subject: below --
2007-05-14 22:26 adas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.