From: rpeterso@sourceware.org <rpeterso@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] Cluster Project branch, STABLE2, updated. cluster-2.03.04-2-gefc7384
Date: 12 Jun 2008 03:47:23 -0000 [thread overview]
Message-ID: <20080612034723.24526.qmail@sourceware.org> (raw)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cluster Project".
http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=efc738457115b7a29adcbc4667234b02eb45ba29
The branch, STABLE2 has been updated
via efc738457115b7a29adcbc4667234b02eb45ba29 (commit)
from 5f3baac6a84cc3cf78061a799325eb2102e209a6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit efc738457115b7a29adcbc4667234b02eb45ba29
Author: Bob Peterson <rpeterso@redhat.com>
Date: Wed Jun 11 22:39:48 2008 -0500
Fix build warnings in gfs2-utils.
-----------------------------------------------------------------------
Summary of changes:
gfs2/edit/hexedit.c | 4 ++--
gfs2/fsck/lost_n_found.c | 26 +++++++++++++++++---------
gfs2/quota/main.c | 16 ++++++++++++----
gfs2/tool/df.c | 9 ++++++---
4 files changed, 37 insertions(+), 18 deletions(-)
diff --git a/gfs2/edit/hexedit.c b/gfs2/edit/hexedit.c
index 99af162..fd59527 100644
--- a/gfs2/edit/hexedit.c
+++ b/gfs2/edit/hexedit.c
@@ -631,7 +631,7 @@ void rgcount(void)
ribh = bread(&sbd, block);
riinode = inode_get(&sbd, ribh);
printf("%lld RGs in this file system.\n",
- riinode->i_di.di_size / risize());
+ (unsigned long long)riinode->i_di.di_size / risize());
inode_put(riinode, not_updated);
exit(EXIT_SUCCESS);
}
@@ -730,7 +730,7 @@ uint64_t get_rg_addr(int rgnum)
rgblk = find_rgrp_block(riinode, rgnum);
else
fprintf(stderr, "Error: File system only has %lld RGs.\n",
- riinode->i_di.di_size / risize());
+ (unsigned long long)riinode->i_di.di_size / risize());
inode_put(riinode, not_updated);
return rgblk;
}
diff --git a/gfs2/fsck/lost_n_found.c b/gfs2/fsck/lost_n_found.c
index 7b4edae..5b21aae 100644
--- a/gfs2/fsck/lost_n_found.c
+++ b/gfs2/fsck/lost_n_found.c
@@ -80,35 +80,43 @@ int add_inode_to_lf(struct gfs2_inode *ip){
dir_add(ip, filename, filename_len, &(lf_dip->i_di.di_num), DT_DIR);
free(filename);
- sprintf(tmp_name, "lost_dir_%llu", ip->i_di.di_num.no_addr);
+ sprintf(tmp_name, "lost_dir_%llu",
+ (unsigned long long)ip->i_di.di_num.no_addr);
inode_type = DT_DIR;
break;
case S_IFREG:
- sprintf(tmp_name, "lost_file_%llu", ip->i_di.di_num.no_addr);
+ sprintf(tmp_name, "lost_file_%llu",
+ (unsigned long long)ip->i_di.di_num.no_addr);
inode_type = DT_REG;
break;
case S_IFLNK:
- sprintf(tmp_name, "lost_link_%llu", ip->i_di.di_num.no_addr);
+ sprintf(tmp_name, "lost_link_%llu",
+ (unsigned long long)ip->i_di.di_num.no_addr);
inode_type = DT_LNK;
break;
case S_IFBLK:
- sprintf(tmp_name, "lost_blkdev_%llu", ip->i_di.di_num.no_addr);
+ sprintf(tmp_name, "lost_blkdev_%llu",
+ (unsigned long long)ip->i_di.di_num.no_addr);
inode_type = DT_BLK;
break;
case S_IFCHR:
- sprintf(tmp_name, "lost_chrdev_%llu", ip->i_di.di_num.no_addr);
+ sprintf(tmp_name, "lost_chrdev_%llu",
+ (unsigned long long)ip->i_di.di_num.no_addr);
inode_type = DT_CHR;
break;
case S_IFIFO:
- sprintf(tmp_name, "lost_fifo_%llu", ip->i_di.di_num.no_addr);
+ sprintf(tmp_name, "lost_fifo_%llu",
+ (unsigned long long)ip->i_di.di_num.no_addr);
inode_type = DT_FIFO;
break;
case S_IFSOCK:
- sprintf(tmp_name, "lost_socket_%llu", ip->i_di.di_num.no_addr);
+ sprintf(tmp_name, "lost_socket_%llu",
+ (unsigned long long)ip->i_di.di_num.no_addr);
inode_type = DT_SOCK;
break;
default:
- sprintf(tmp_name, "lost_%llu", ip->i_di.di_num.no_addr);
+ sprintf(tmp_name, "lost_%llu",
+ (unsigned long long)ip->i_di.di_num.no_addr);
inode_type = DT_REG;
break;
}
@@ -132,6 +140,6 @@ int add_inode_to_lf(struct gfs2_inode *ip){
free(filename);
log_notice("Added inode #%"PRIu64" to lost+found dir\n",
- ip->i_di.di_num.no_addr);
+ ip->i_di.di_num.no_addr);
return 0;
}
diff --git a/gfs2/quota/main.c b/gfs2/quota/main.c
index 747049b..79aae05 100644
--- a/gfs2/quota/main.c
+++ b/gfs2/quota/main.c
@@ -244,25 +244,33 @@ print_quota(commandline_t *comline,
case GQ_UNITS_KILOBYTE:
if (sb->sb_bsize == 512)
printf("limit: %-10llu warn: %-10lluvalue: %-10llu\n",
- q->qu_limit / 2,
- q->qu_warn / 2,
- q->qu_value / 2);
+ (unsigned long long)q->qu_limit / 2,
+ (unsigned long long)q->qu_warn / 2,
+ (unsigned long long)q->qu_value / 2);
else
printf("limit: %-10llu warn: %-10lluvalue: %-10llu\n",
+ (unsigned long long)
q->qu_limit << (sb->sb_bsize_shift - 10),
+ (unsigned long long)
q->qu_warn << (sb->sb_bsize_shift - 10),
+ (unsigned long long)
q->qu_value << (sb->sb_bsize_shift - 10));
break;
case GQ_UNITS_FSBLOCK:
printf("limit: %-10llu warn: %-10llu value: %-10llu\n",
- q->qu_limit, q->qu_warn, q->qu_value);
+ (unsigned long long)q->qu_limit,
+ (unsigned long long)q->qu_warn,
+ (unsigned long long)q->qu_value);
break;
case GQ_UNITS_BASICBLOCK:
printf("limit: %-10llu warn: %-10llu value: %-10llu\n",
+ (unsigned long long)
q->qu_limit << (sb->sb_bsize_shift - 9),
+ (unsigned long long)
q->qu_warn << (sb->sb_bsize_shift - 9),
+ (unsigned long long)
q->qu_value << (sb->sb_bsize_shift - 9));
break;
diff --git a/gfs2/tool/df.c b/gfs2/tool/df.c
index 386a217..5237072 100644
--- a/gfs2/tool/df.c
+++ b/gfs2/tool/df.c
@@ -121,14 +121,17 @@ do_df_one(char *path)
percentage = sc.sc_total ?
(100.0 * (sc.sc_total - sc.sc_free)) / sc.sc_total + 0.5 : 0;
printf(" %-15s%-15llu%-15llu%-15llu%u%%\n", "data",
- sc.sc_total, sc.sc_total - sc.sc_free, sc.sc_free, percentage);
+ (unsigned long long)sc.sc_total,
+ (unsigned long long)sc.sc_total - sc.sc_free,
+ (unsigned long long)sc.sc_free, percentage);
percentage = (sc.sc_dinodes + sc.sc_free) ?
(100.0 * sc.sc_dinodes / (sc.sc_dinodes + sc.sc_free)) + 0.5 :
0;
printf(" %-15s%-15llu%-15llu%-15llu%u%%\n", "inodes",
- sc.sc_dinodes + sc.sc_free, sc.sc_dinodes,
- sc.sc_free, percentage);
+ (unsigned long long)sc.sc_dinodes + sc.sc_free,
+ (unsigned long long)sc.sc_dinodes,
+ (unsigned long long)sc.sc_free, percentage);
}
hooks/post-receive
--
Cluster Project
reply other threads:[~2008-06-12 3:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20080612034723.24526.qmail@sourceware.org \
--to=rpeterso@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 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).