All of lore.kernel.org
 help / color / mirror / Atom feed
From: adas@sourceware.org <adas@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] Cluster Project branch, master, updated. gfs-kernel_0_1_22-156-gd2a926d
Date: 11 Apr 2008 14:18:59 -0000	[thread overview]
Message-ID: <20080411141859.9161.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=d2a926d2122c23e6175a62326b5e2b421b842a93

The branch, master has been updated
       via  d2a926d2122c23e6175a62326b5e2b421b842a93 (commit)
      from  56e13f474bc8abf02324e294462527755f8752f4 (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 d2a926d2122c23e6175a62326b5e2b421b842a93
Author: Abhijith Das <adas@redhat.com>
Date:   Fri Apr 11 09:10:47 2008 -0500

    gfs2_tool: Fix build warnings in misc.c bz 441636
    
    gfs2_tool used to include both linux/fs.h and sys/mount.h that caused some symbols to be defined twice and hence caused some build warnings. This patch uses linux/ext3_fs.h instead of /linux/fs.h and uses EXT3_XXX_FL inode flags instead of the respective FS_XXX_FL flags.
    This patch also removes the SYSTEM and DIRECTIO flags as they are not used anymore.

-----------------------------------------------------------------------

Summary of changes:
 gfs2/tool/misc.c |   28 +++++++++++-----------------
 1 files changed, 11 insertions(+), 17 deletions(-)

diff --git a/gfs2/tool/misc.c b/gfs2/tool/misc.c
index 1d46e1d..555976b 100644
--- a/gfs2/tool/misc.c
+++ b/gfs2/tool/misc.c
@@ -29,7 +29,7 @@
 #define __user
 #include <linux/gfs2_ondisk.h>
 #include <sys/mount.h>
-#include <linux/fs.h>
+#include <linux/ext3_fs.h>
 
 #include "libgfs2.h"
 #include "gfs2_tool.h"
@@ -198,16 +198,12 @@ print_flags(struct gfs2_dinode *di)
 {
 	if (di->di_flags) {
 		printf("Flags:\n");
-		if (di->di_flags & GFS2_DIF_SYSTEM)
-			printf("  system\n");
 		if (di->di_flags & GFS2_DIF_JDATA)
 			printf("  jdata\n");
 		if (di->di_flags & GFS2_DIF_EXHASH)
 			printf("  exhash\n");
 		if (di->di_flags & GFS2_DIF_EA_INDIRECT)
 			printf("  ea_indirect\n");
-		if (di->di_flags & GFS2_DIF_DIRECTIO)
-			printf("  directio\n");
 		if (di->di_flags & GFS2_DIF_IMMUTABLE)
 			printf("  immutable\n");
 		if (di->di_flags & GFS2_DIF_APPENDONLY)
@@ -228,20 +224,18 @@ print_flags(struct gfs2_dinode *di)
 static unsigned int 
 get_flag_from_name(char *name)
 {
-	if (strncmp(name, "system", 6) == 0)
-		return GFS2_DIF_SYSTEM;
-	else if (strncmp(name, "jdata", 5) == 0)
-		return FS_JOURNAL_DATA_FL;
-	else if (strncmp(name, "directio", 8) == 0)
-		return FS_DIRECTIO_FL;
+	if (strncmp(name, "jdata", 5) == 0)
+		return EXT3_JOURNAL_DATA_FL;
+	else if (strncmp(name, "exhash", 6) == 0)
+		return EXT3_INDEX_FL;
 	else if (strncmp(name, "immutable", 9) == 0)
-		return FS_IMMUTABLE_FL;
+		return EXT3_IMMUTABLE_FL;
 	else if (strncmp(name, "appendonly", 10) == 0)
-		return FS_APPEND_FL;
+		return EXT3_APPEND_FL;
 	else if (strncmp(name, "noatime", 7) == 0)
-		return FS_NOATIME_FL;
+		return EXT3_NOATIME_FL;
 	else if (strncmp(name, "sync", 4) == 0)
-		return FS_SYNC_FL;
+		return EXT3_SYNC_FL;
 	else 
 		return 0;
 }
@@ -276,13 +270,13 @@ set_flag(int argc, char **argv)
 		if (fd < 0)
 			die("can't open %s: %s\n", argv[optind], strerror(errno));
 		/* first get the existing flags on the file */
-		error = ioctl(fd, FS_IOC_GETFLAGS, &newflags);
+		error = ioctl(fd, EXT3_IOC_GETFLAGS, &newflags);
 		if (error)
 			die("can't get flags on %s: %s\n", 
 			    argv[optind], strerror(errno));
 		newflags = set ? newflags | flag : newflags & ~flag;
 		/* new flags */
-		error = ioctl(fd, FS_IOC_SETFLAGS, &newflags);
+		error = ioctl(fd, EXT3_IOC_SETFLAGS, &newflags);
 		if (error)
 			die("can't set flags on %s: %s\n", 
 			    argv[optind], strerror(errno));


hooks/post-receive
--
Cluster Project



             reply	other threads:[~2008-04-11 14:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-11 14:18 adas [this message]
2008-04-14 12:28 ` [Cluster-devel] Cluster Project branch, master, updated. gfs-kernel_0_1_22-156-gd2a926d Fabio M. Di Nitto

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=20080411141859.9161.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.