From b77ba14a2a6d52c1675e1c034a57d93f887216db Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Tue, 14 Jun 2016 16:28:14 +0100 Subject: [PATCH] [block] Use the definition of SECTOR_SHIFT from block-cache --- persistent-data/block.tcc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/persistent-data/block.tcc b/persistent-data/block.tcc index 0824bf3..02a4117 100644 --- a/persistent-data/block.tcc +++ b/persistent-data/block.tcc @@ -19,6 +19,7 @@ #include "block.h" #include "base/error_string.h" +#include "block-cache/io_engine.h" #include #include @@ -38,8 +39,6 @@ namespace { using namespace std; int const DEFAULT_MODE = 0666; - unsigned const SECTOR_SHIFT = 9; - int const OPEN_FLAGS = O_DIRECT; // FIXME: introduce a new exception for this, or at least lift this