summaryrefslogtreecommitdiff
path: root/package/xfsprogs/patches/patch-fsr_xfs_fsr_c
blob: f220d0d14d05d1558892dd3850f7fe0ec44ef34a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
--- xfsprogs-3.1.11.orig/fsr/xfs_fsr.c	2013-05-08 20:14:32.000000000 +0200
+++ xfsprogs-3.1.11/fsr/xfs_fsr.c	2014-05-06 07:55:04.000000000 +0200
@@ -35,7 +35,6 @@
 #include <sys/wait.h>
 #include <sys/vfs.h>
 #include <sys/statvfs.h>
-#include <sys/xattr.h>
 
 
 #ifndef XFS_XFLAG_NODEFRAG
@@ -1034,6 +1033,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 */
@@ -1044,6 +1044,7 @@ fsr_setup_attr_fork(
 		}
 		goto out;
 	}
+#endif
 
 	/* attr2 w/ fork offsets */
 
@@ -1081,6 +1082,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) {
@@ -1089,7 +1091,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.
@@ -1128,11 +1130,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 */