From: adas@sourceware.org <adas@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/gfs2/quota main.c
Date: 14 May 2007 22:26:34 -0000 [thread overview]
Message-ID: <20070514222634.17998.qmail@sourceware.org> (raw)
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));
next reply other threads:[~2007-05-14 22:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-14 22:26 adas [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-05-14 22:26 [Cluster-devel] cluster/gfs2/quota main.c adas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070514222634.17998.qmail@sourceware.org \
--to=adas@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.