[sheepdog] [PATCH v2] sheep: make config file compatible with the previous one

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Mon Aug 20 20:37:48 CEST 2012


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---

Changes from v1:
 - remove 'version' from sheepdog_config

Even if we don't support a version check of the config in the next
release, we should fix the compatibility issue at least.


 sheep/store.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sheep/store.c b/sheep/store.c
index 542804a..fcbf32d 100644
--- a/sheep/store.c
+++ b/sheep/store.c
@@ -30,10 +30,11 @@
 
 struct sheepdog_config {
 	uint64_t ctime;
-	uint64_t space;
 	uint16_t flags;
 	uint8_t copies;
 	uint8_t store[STORE_LEN];
+	uint8_t __pad[5];
+	uint64_t space;
 };
 
 char *obj_path;
-- 
1.7.2.5




More information about the sheepdog mailing list