[block] Open block files with O_DIRECT | O_SYNC.
Putting this back in. Dumping metadata snapshots fails without. So there's more caching in the kernel than I expected.
This commit is contained in:
parent
fd7c539a58
commit
e7816d2f43
@ -38,8 +38,8 @@ namespace {
|
||||
|
||||
int const DEFAULT_MODE = 0666;
|
||||
|
||||
// FIXME: these will slow it down until we start doing asyn io. O_DIRECT | O_SYNC;
|
||||
int const OPEN_FLAGS = 0;
|
||||
// FIXME: these will slow it down until we start doing async io.
|
||||
int const OPEN_FLAGS = O_DIRECT | O_SYNC;
|
||||
|
||||
// FIXME: introduce a new exception for this, or at least lift this
|
||||
// to exception.h
|
||||
|
Loading…
Reference in New Issue
Block a user