[sheepdog] [PATCH] sheep: make config file compatible with the previous one
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Fri Aug 10 06:36:00 CEST 2012
This patch also introduces a new member 'version' to use for config
file version check in future.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/store.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/sheep/store.c b/sheep/store.c
index b093916..4a63a8a 100644
--- a/sheep/store.c
+++ b/sheep/store.c
@@ -30,10 +30,12 @@
struct sheepdog_config {
uint64_t ctime;
- uint64_t space;
uint16_t flags;
uint8_t copies;
uint8_t store[STORE_LEN];
+ uint8_t __pad[3];
+ uint16_t version;
+ uint64_t space;
};
char *obj_path;
--
1.7.2.5
More information about the sheepdog
mailing list