[PATCH] lomount: Use O_LARGEFILE | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Use O_LARGEFILE in lomount if this possible.
Signed-off-by: Alexey Gladkov <legion@xxxxxxxxxxxx>
---
mount/lomount.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/mount/lomount.c b/mount/lomount.c
index c3ac68a..f12661f 100644
--- a/mount/lomount.c
+++ b/mount/lomount.c
@@ -626,6 +626,9 @@ set_loop(const char *device, const char *file, unsigned long long offset,
}
mode = (*options & SETLOOP_RDONLY) ? O_RDONLY : O_RDWR;
+#ifdef O_LARGEFILE
+ mode |= O_LARGEFILE;
+#endif
if ((ffd = open(file, mode)) < 0) {
if (!(*options & SETLOOP_RDONLY) && errno == EROFS)
ffd = open(file, mode = O_RDONLY);
--
1.5.4.5.GIT
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Site Home] [Netdev] [Ethernet Bridging] [Linux Wireless] [Kernel Newbies] [Memory] [Security] [Linux for Hams] [Netfilter] [Bugtraq] [Rubini] [Photo] [Yosemite] [Yosemite News] [MIPS Linux] [ARM Linux] [Linux RAID] [Linux Admin] [Samba] [Video 4 Linux] [Linux Resources]