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".
The branch, STABLE2 has been updated
via 66fd7419ac6d0005c7e22c4beca887ccb143a185 (commit)
from 8b33b61ac7d4e2971cab0b095d6cefecd3b03cb7 (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.
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 removes #include linux/fs.h and moves all the required definitions from there to a new local header file iflags.h.
This patch also removes the SYSTEM and DIRECTIO flags as they are not used anymore.
diff --git a/gfs2/mkfs/gfs2_mkfs.h b/gfs2/tool/iflags.h
similarity index 72%
copy from gfs2/mkfs/gfs2_mkfs.h
copy to gfs2/tool/iflags.h
index 627c018..c577c4a 100644
--- a/gfs2/mkfs/gfs2_mkfs.h
+++ b/gfs2/tool/iflags.h
@@ -2,7 +2,7 @@
************************************************** *****************************
**
** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
-** Copyright (C) 2004 Red Hat, Inc. All rights reserved.
+** Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
**
** This copyrighted material is made available to anyone wishing to use,
** modify, copy, or redistribute it subject to the terms and conditions
@@ -11,45 +11,13 @@
************************************************** *****************************
************************************************** ****************************/
-#ifndef __GFS2_MKFS_DOT_H__
-#define __GFS2_MKFS_DOT_H__
-
-#include "linux_endian.h"
-#include <linux/gfs2_ondisk.h>
-#include "osi_list.h"
-#include "copyright.cf"
-#include "ondisk.h"
-
-#define SRANDOM do { srandom(time(NULL) ^ getpid()); } while (0)
-#define RESRANDOM do { srandom(RANDOM(1000000000)); } while (0)
-
-/* main_grow */
-void main_grow(int argc, char *argv[]);
-
-/* main_jadd */
-void main_jadd(int argc, char *argv[]);
-
-/* main_mkfs */
-void main_mkfs(int argc, char *argv[]);
-
-/* main_shrink */
-void main_shrink(int argc, char *argv[]);
-
-/*
- * The following inode IOCTL macros and inode flags
- * are copied from linux/fs.h, because we have duplicate
- * definition of symbols when we include both linux/fs.h and
- * sys/mount.h in our program
- */
+#ifndef __IFLAGS_DOT_H__
+#define __IFLAGS_DOT_H__
-
-#endif /* __GFS2_MKFS_DOT_H__ */
+#endif /* __IFLAGS_DOT_H__ */
diff --git a/gfs2/tool/misc.c b/gfs2/tool/misc.c
index 0a39f8b..7053076 100644
--- a/gfs2/tool/misc.c
+++ b/gfs2/tool/misc.c
@@ -2,7 +2,7 @@
************************************************** *****************************
**
** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
-** Copyright (C) 2004 Red Hat, Inc. All rights reserved.
+** Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
**
** This copyrighted material is made available to anyone wishing to use,
** modify, copy, or redistribute it subject to the terms and conditions
@@ -29,10 +29,10 @@
#define __user
#include <linux/gfs2_ondisk.h>
#include <sys/mount.h>
-#include <linux/fs.h>