From 743c3cceb9f2fc54e6e878bbdfc787d96079dd69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 2 May 2004 22:58:15 +0000 Subject: [PATCH] The BeOS cache will no longer be turned off in case of a mounted image when NO_FILE_UNCACHED_IO is defined at compile time. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7353 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/file_systems/bfs/Volume.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/kernel/file_systems/bfs/Volume.cpp b/src/add-ons/kernel/file_systems/bfs/Volume.cpp index 7b4c83c750..4d1f590231 100644 --- a/src/add-ons/kernel/file_systems/bfs/Volume.cpp +++ b/src/add-ons/kernel/file_systems/bfs/Volume.cpp @@ -288,7 +288,7 @@ Volume::Mount(const char *deviceName, uint32 flags) if (fstat(fDevice, &stat) < 0) RETURN_ERROR(B_ERROR); -//#ifndef USER +#ifndef NO_FILE_UNCACHED_IO if (stat.st_mode & S_FILE && ioctl(fDevice, IOCTL_FILE_UNCACHED_IO, NULL) < 0) { // mount read-only if the cache couldn't be disabled # ifdef DEBUG @@ -298,7 +298,7 @@ Volume::Mount(const char *deviceName, uint32 flags) Panic(); # endif } -//#endif +#endif // read the super block char buffer[1024];