cluster/gfs2/quota main.c
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'
gfs2/quota/main.c +4 -1
@@ -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));