[sheepdog] [PATCH] sheep: disable journal by default

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Sun Sep 9 18:02:54 CEST 2012


At Fri,  7 Sep 2012 18:17:01 +0900,
MORITA Kazutaka wrote:
> 
> It seems that most modern disk drives implement atomic sector writes
> (e.g. section 7.4 in http://www.sqlite.org/atomiccommit.html).  If it
> is true, we don't need to use journal for vdi object updates because
> we don't update them across a sector boundary.
> 
> This patch uses atomic_put() for vdi creation, and doesn't use journal
> for vdi updates by default.
> 
> Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> ---
>  sheep/ops.c        |    5 ++++-
>  sheep/sheep.c      |    7 ++++++-
>  sheep/sheep_priv.h |    2 ++
>  3 files changed, 12 insertions(+), 2 deletions(-)

Applied.



More information about the sheepdog mailing list