diff options
author | Matt Wilson <msw@redhat.com> | 2003-01-17 21:42:19 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2003-01-17 21:42:19 +0000 |
commit | 6093392910d5f467083cb92027befd3c29204072 (patch) | |
tree | a467ddf93ce613d1a6c3bec857a70b0172456e50 | |
parent | 4cb7298da9b7dd2a17a9c374c1229d5d6d213498 (diff) | |
download | anaconda-6093392910d5f467083cb92027befd3c29204072.tar.gz anaconda-6093392910d5f467083cb92027befd3c29204072.tar.xz anaconda-6093392910d5f467083cb92027befd3c29204072.zip |
work on non-o_direct systems
-rw-r--r-- | loader2/method.c | 4 |
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); |