Alexander Miroshnichenko
052e5967e1
Red Hat patches from lvm2-2.02.177-5.fc28: https://koji.fedoraproject.org/koji/buildinfo?buildID=1096618
13 lines
285 B
Diff
13 lines
285 B
Diff
--- a/lib/device/dev-io.c
|
|
+++ b/lib/device/dev-io.c
|
|
@@ -505,7 +505,9 @@
|
|
dev->flags |= DEV_NOT_O_NOATIME;
|
|
if ((dev->fd = open(name, flags, 0777)) >= 0) {
|
|
log_debug_devs("%s: Not using O_NOATIME", name);
|
|
+#ifdef O_DIRECT_SUPPORT
|
|
goto opened;
|
|
+#endif
|
|
}
|
|
}
|
|
#endif
|