diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-04-05 15:16:51 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-04-05 15:16:51 +0200 |
commit | 1465e15f735333d9b8686a3eb56b151bb3d9426e (patch) | |
tree | 68fe8e3e03ce406abb15eda2ed9c30e5df450be0 /package/xfsprogs/patches/patch-libxfs_linux_c | |
parent | 75ea54a673167c1b27f1e0946c4288ab54c98431 (diff) |
make qemu mips64 work again, allow xfsprogs to build with uclibc, add partprobe
Diffstat (limited to 'package/xfsprogs/patches/patch-libxfs_linux_c')
-rw-r--r-- | package/xfsprogs/patches/patch-libxfs_linux_c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/package/xfsprogs/patches/patch-libxfs_linux_c b/package/xfsprogs/patches/patch-libxfs_linux_c new file mode 100644 index 000000000..3ace20dab --- /dev/null +++ b/package/xfsprogs/patches/patch-libxfs_linux_c @@ -0,0 +1,37 @@ +--- xfsprogs-3.1.10.orig/libxfs/linux.c 2012-12-13 22:29:24.000000000 +0100 ++++ xfsprogs-3.1.10/libxfs/linux.c 2013-04-04 16:47:19.000000000 +0200 +@@ -16,14 +16,12 @@ + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +-#define ustat __kernel_ustat + #include <xfs/libxfs.h> + #include <mntent.h> + #include <sys/stat.h> +-#undef ustat +-#include <sys/ustat.h> + #include <sys/mount.h> + #include <sys/ioctl.h> ++#include <sys/statvfs.h> + #include <sys/sysinfo.h> + + int platform_has_uuid = 1; +@@ -49,8 +47,7 @@ static int max_block_alignment; + int + platform_check_ismounted(char *name, char *block, struct stat64 *s, int verbose) + { +- /* Pad ust; pre-2.6.28 linux copies out too much in 32bit compat mode */ +- struct ustat ust[2]; ++ struct statvfs info; + struct stat64 st; + + if (!s) { +@@ -61,7 +58,7 @@ platform_check_ismounted(char *name, cha + s = &st; + } + +- if (ustat(s->st_rdev, ust) >= 0) { ++ if (statvfs(name, &info) >= 0) { + if (verbose) + fprintf(stderr, + _("%s: %s contains a mounted filesystem\n"), |