[sheepdog] [PATCH v3 0/4] add a new API for atomic creation and writing and let config use it
Hitoshi Mitake
mitake.hitoshi at lab.ntt.co.jp
Wed Apr 17 11:04:40 CEST 2013
Because config cannot employ the journaling mechanism, this patchset
adds a new API, atomic_create_and_write() and let the config subsystem
use it for safe update of its data.
v3:
- fixed invalid error messages
- remove unnecessary access(2) in check_tmp_config(), take 2
v2:
- move def_fmode and def_dmode to libsheepdog.a
- don't panic() even if temporal files reamin
- remove unnecessary access(2) in check_tmp_config()
Hitoshi Mitake (4):
journal: remove journaling support for config
util: move def_fmode and def_dmode to libsheepdog.a
util: add a new API atomic_create_and_write()
sheep: let config use atomic_create_and_write()
include/util.h | 4 ++++
lib/util.c | 38 ++++++++++++++++++++++++++++++++++++++
sheep/config.c | 45 +++++++++++++++++++++------------------------
sheep/journal.c | 19 +------------------
sheep/md.c | 2 +-
sheep/object_cache.c | 14 +++++++-------
sheep/plain_store.c | 6 +++---
sheep/sheep_priv.h | 2 --
sheep/store.c | 9 +++------
9 files changed, 78 insertions(+), 61 deletions(-)
--
1.7.2.5
More information about the sheepdog
mailing list