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:
@@ -288,7 +288,7 @@ Volume::Mount(const char *deviceName, uint32 flags)
|
|||||||
if (fstat(fDevice, &stat) < 0)
|
if (fstat(fDevice, &stat) < 0)
|
||||||
RETURN_ERROR(B_ERROR);
|
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) {
|
if (stat.st_mode & S_FILE && ioctl(fDevice, IOCTL_FILE_UNCACHED_IO, NULL) < 0) {
|
||||||
// mount read-only if the cache couldn't be disabled
|
// mount read-only if the cache couldn't be disabled
|
||||||
# ifdef DEBUG
|
# ifdef DEBUG
|
||||||
@@ -298,7 +298,7 @@ Volume::Mount(const char *deviceName, uint32 flags)
|
|||||||
Panic();
|
Panic();
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
//#endif
|
#endif
|
||||||
|
|
||||||
// read the super block
|
// read the super block
|
||||||
char buffer[1024];
|
char buffer[1024];
|
||||||
|
|||||||
Reference in New Issue
Block a user