blob: 0385e2be6b2377dc0d939ad114ed56673714908c [file] [log] [blame] [edit]
--- libparted/arch/linux.c 2014-11-13 14:23:10.147494213 -0800
+++ libparted/arch/linux.c 2014-11-13 15:18:09.673789395 -0800
@@ -65,6 +65,8 @@
#define HDIO_GETGEO 0x0301 /* get device geometry */
#define HDIO_GET_IDENTITY 0x030d /* get IDE identification info */
+/* O_DIRECT mode not supported in Sapphire */
+#undef O_DIRECT
#if defined(O_DIRECT) && (!defined(__s390__) || !defined(__s390x__))
#define RD_MODE (O_RDONLY | O_DIRECT)
#define WR_MODE (O_WRONLY | O_DIRECT)