summaryrefslogtreecommitdiffstats
path: root/loader2/method.c
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2003-01-17 21:42:19 +0000
committerMatt Wilson <msw@redhat.com>2003-01-17 21:42:19 +0000
commit6093392910d5f467083cb92027befd3c29204072 (patch)
treea467ddf93ce613d1a6c3bec857a70b0172456e50 /loader2/method.c
parent4cb7298da9b7dd2a17a9c374c1229d5d6d213498 (diff)
downloadanaconda-6093392910d5f467083cb92027befd3c29204072.tar.gz
anaconda-6093392910d5f467083cb92027befd3c29204072.tar.xz
anaconda-6093392910d5f467083cb92027befd3c29204072.zip
work on non-o_direct systems
Diffstat (limited to 'loader2/method.c')
-rw-r--r--loader2/method.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/loader2/method.c b/loader2/method.c
index ee3baa178..700033e8c 100644
--- a/loader2/method.c
+++ b/loader2/method.c
@@ -89,14 +89,18 @@ int mountLoopback(char * fsystem, char * mntpoint, char * device) {
mkdirChain(mntpoint);
+#ifdef O_DIRECT
targfd = open(fsystem, O_RDONLY | O_DIRECT);
if (targfd == -1) {
+#endif
targfd = open(fsystem, O_RDONLY);
if (targfd == -1) {
logMessage("open file to loop mount %s failed", fsystem);
return LOADER_ERROR;
}
+#ifdef O_DIRECT
}
+#endif
devMakeInode(device, filename);
loopfd = open(filename, O_RDONLY);