summaryrefslogtreecommitdiff
path: root/package/xfsprogs/patches/patch-fsr_xfs_fsr_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-01-22 22:37:50 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-22 22:37:50 +0100
commit9436a026e2e23d207fbdcb9e8bc9b076e3573700 (patch)
treeadb1937bc90be8869a5f7c9636da84773414eb3b /package/xfsprogs/patches/patch-fsr_xfs_fsr_c
parent52b1b0100c53b1f8699955df618fcb47744e0a7e (diff)
activate GCC cflags check, cleanup FLAGS stuff in OpenADK.
* remove TCFLAGS/TLDFLAGS/TCPPFLAGS and only use TARGET_CFLAGS/TARGET_LDFLAGS/TARGET_CPPFLAGS, ... * activate GCC_HONOUR_COPTS and fix all packages to honour CFLAGS * use CC_FOR_BUILD, CFLAGS_FOR_BUILD, ... for all build compilation, remove HOST* variants * introduce KERNEL_MODULE_FLAGS for external kernel modules * mark rpm package as broken, mark syslinux for native builds only, mark libhugetlb for eglibc/glibc only usage
Diffstat (limited to 'package/xfsprogs/patches/patch-fsr_xfs_fsr_c')
-rw-r--r--package/xfsprogs/patches/patch-fsr_xfs_fsr_c57
1 files changed, 57 insertions, 0 deletions
diff --git a/package/xfsprogs/patches/patch-fsr_xfs_fsr_c b/package/xfsprogs/patches/patch-fsr_xfs_fsr_c
new file mode 100644
index 000000000..5093c2924
--- /dev/null
+++ b/package/xfsprogs/patches/patch-fsr_xfs_fsr_c
@@ -0,0 +1,57 @@
+--- xfsprogs-3.1.4.orig/fsr/xfs_fsr.c 2010-10-01 19:33:38.000000000 +0200
++++ xfsprogs-3.1.4/fsr/xfs_fsr.c 2011-01-22 20:34:12.465325200 +0100
+@@ -35,7 +35,6 @@
+ #include <sys/wait.h>
+ #include <sys/vfs.h>
+ #include <sys/statvfs.h>
+-#include <sys/xattr.h>
+
+
+ #ifndef XFS_XFLAG_NODEFRAG
+@@ -1003,6 +1002,7 @@ fsr_setup_attr_fork(
+ * use the old method if we have attr1 or the kernel does not yet
+ * support passing the fork offset in the bulkstat data.
+ */
++#if 0
+ if (!(fsgeom.flags & XFS_FSOP_GEOM_FLAGS_ATTR2) ||
+ bstatp->bs_forkoff == 0) {
+ /* attr1 */
+@@ -1013,6 +1013,7 @@ fsr_setup_attr_fork(
+ }
+ goto out;
+ }
++#endif
+
+ /* attr2 w/ fork offsets */
+
+@@ -1050,6 +1051,7 @@ fsr_setup_attr_fork(
+ * If there is no attribute, then we need to create one to get
+ * an attribute fork at the default location.
+ */
++#if 0
+ if (!tbstat.bs_forkoff) {
+ ret = fsetxattr(tfd, name, "XX", 2, XATTR_CREATE);
+ if (ret) {
+@@ -1058,7 +1060,7 @@ fsr_setup_attr_fork(
+ }
+ continue;
+ }
+-
++#endif
+ /*
+ * make a progress check so we don't get stuck trying to extend
+ * a large btree form attribute fork.
+@@ -1097,11 +1099,13 @@ fsr_setup_attr_fork(
+ }
+
+ /* we need to grow the attr fork, so create another attr */
++#if 0
+ ret = fsetxattr(tfd, name, "XX", 2, XATTR_CREATE);
+ if (ret) {
+ fsrprintf(_("could not set ATTR\n"));
+ return -1;
+ }
++#endif
+
+ } while (++i < 100); /* don't go forever */
+