summaryrefslogtreecommitdiffstats
path: root/tools/e2fsprogs/patches/003-darwin_directio_fix.patch
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2012-06-09 17:59:57 +0000
committerLuka Perkov <luka@openwrt.org>2012-06-09 17:59:57 +0000
commit5d141f8b1e8076768c7c5a1bd053e339d03df9d8 (patch)
treedffeb3313afc89aef145b4a08d0c1d061e635f90 /tools/e2fsprogs/patches/003-darwin_directio_fix.patch
parent30edb14356c6db742b85104e5b684219f432d17e (diff)
downloadmaster-31e0f0ae-5d141f8b1e8076768c7c5a1bd053e339d03df9d8.tar.gz
master-31e0f0ae-5d141f8b1e8076768c7c5a1bd053e339d03df9d8.tar.bz2
master-31e0f0ae-5d141f8b1e8076768c7c5a1bd053e339d03df9d8.zip
e2fsprogs: update to 1.42.3
SVN-Revision: 32142
Diffstat (limited to 'tools/e2fsprogs/patches/003-darwin_directio_fix.patch')
-rw-r--r--tools/e2fsprogs/patches/003-darwin_directio_fix.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/tools/e2fsprogs/patches/003-darwin_directio_fix.patch b/tools/e2fsprogs/patches/003-darwin_directio_fix.patch
deleted file mode 100644
index 971c7ad99b..0000000000
--- a/tools/e2fsprogs/patches/003-darwin_directio_fix.patch
+++ /dev/null
@@ -1,36 +0,0 @@
---- a/lib/ext2fs/unix_io.c
-+++ b/lib/ext2fs/unix_io.c
-@@ -428,6 +428,7 @@ static errcode_t unix_open(const char *n
- struct unix_private_data *data = NULL;
- errcode_t retval;
- int open_flags;
-+ int f_nocache = 0;
- struct stat st;
- #ifdef __linux__
- struct utsname ut;
-@@ -464,7 +465,11 @@ static errcode_t unix_open(const char *n
- if (flags & IO_FLAG_EXCLUSIVE)
- open_flags |= O_EXCL;
- if (flags & IO_FLAG_DIRECT_IO)
-+#if !defined(O_DIRECT) && defined(F_NOCACHE)
-+ f_nocache = F_NOCACHE;
-+#else
- open_flags |= O_DIRECT;
-+#endif
- data->flags = flags;
-
- #ifdef HAVE_OPEN64
-@@ -477,6 +482,13 @@ static errcode_t unix_open(const char *n
- goto cleanup;
- }
-
-+ if (f_nocache) {
-+ if (fcntl(data->dev, f_nocache, 1) < 0) {
-+ retval = errno;
-+ goto cleanup;
-+ }
-+ }
-+
- #ifdef BLKSSZGET
- if (flags & IO_FLAG_DIRECT_IO) {
- if (ioctl(data->dev, BLKSSZGET, &data->align) != 0)