[CRIU] [PATCH 1/2] zdtm: introduced a local version of O_LARGEFILE

Alexander Kartashov alekskartashov at parallels.com
Mon Jan 28 03:22:33 EST 2013


It turned out that the macro O_LARGEFILE is 0 on Debian
so we need a local definition of the macro that matches
the kernel one.

Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 test/zdtm/lib/arch/arm/include/asm/fcntl.h |    7 +++++++
 test/zdtm/lib/arch/x86/include/asm/fcntl.h |    7 +++++++
 2 files changed, 14 insertions(+)
 create mode 100644 test/zdtm/lib/arch/arm/include/asm/fcntl.h
 create mode 100644 test/zdtm/lib/arch/x86/include/asm/fcntl.h

diff --git a/test/zdtm/lib/arch/arm/include/asm/fcntl.h b/test/zdtm/lib/arch/arm/include/asm/fcntl.h
new file mode 100644
index 0000000..5af4e85
--- /dev/null
+++ b/test/zdtm/lib/arch/arm/include/asm/fcntl.h
@@ -0,0 +1,7 @@
+#ifndef __CR_FCNTL_H__
+#define __CR_FCNTL_H__
+
+#undef  O_LARGEFILE
+#define O_LARGEFILE 0400000
+
+#endif
diff --git a/test/zdtm/lib/arch/x86/include/asm/fcntl.h b/test/zdtm/lib/arch/x86/include/asm/fcntl.h
new file mode 100644
index 0000000..1446d52
--- /dev/null
+++ b/test/zdtm/lib/arch/x86/include/asm/fcntl.h
@@ -0,0 +1,7 @@
+#ifndef __CR_FCNTL_H__
+#define __CR_FCNTL_H__
+
+#undef  O_LARGEFILE
+#define O_LARGEFILE 00100000
+
+#endif
-- 
1.7.10.4



More information about the CRIU mailing list