diff options
author | Raghavendra G <raghavendra@gluster.com> | 2010-09-03 02:10:45 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-03 02:25:42 -0700 |
commit | e66ed16e8ce5d382ee56f55ca6153299e909e44b (patch) | |
tree | dbdb2d81d38a4fe79839c942e7d7a1f2fc65a9a9 /xlators/mgmt/glusterd | |
parent | 9459b3aeeb2f99f2f7f3a580e6e19d99db1c0678 (diff) |
mgmt/glusterd: fix warnings during build.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1307 (gluster volume defrag <VOLNAME> status)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1307
Diffstat (limited to 'xlators/mgmt/glusterd')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-handler.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index ff84dca3325..4df404e795b 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -662,8 +662,9 @@ glusterd_check_and_rebalance (glusterd_volinfo_t *volinfo, char *dir) } if (S_ISREG (stbuf.st_mode) && ((stbuf.st_mode & 01000) == 01000)) { /* TODO: run the defrag */ - snprintf (tmp_filename, 1024, "%s/.%s.gfs%zu", dir, - entry->d_name, stbuf.st_size); + snprintf (tmp_filename, 1024, "%s/.%s.gfs%llu", dir, + entry->d_name, + (unsigned long long)stbuf.st_size); dst_fd = creat (tmp_filename, (stbuf.st_mode & ~01000)); if (dst_fd == -1) |