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
This commit is contained in:
parent
1bf27bb166
commit
743c3cceb9
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user