From: Dominik Bruhn Date: Mon, 23 Apr 2012 13:02:18 +0000 (+0200) Subject: Exit FFSB if filesystem can't be reused. X-Git-Tag: ceph_v1.0~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=63e4ab020e307762614fc6d474fb76a3e250d7ba;p=ffsb.git Exit FFSB if filesystem can't be reused. Change the FFSB behaviour if the reuse-flag of the filesystem is "1" but the filesystem can not be reused: Previously FFSB created a new filesystem, now FFSB fails with an error message. --- diff --git a/ffsb_fs.c b/ffsb_fs.c index 72e6a89..94b80c1 100644 --- a/ffsb_fs.c +++ b/ffsb_fs.c @@ -171,8 +171,8 @@ void *construct_ffsb_fs(void *data) printf("checking existing fs: %s\n", fs->basedir); ret = check_existing_fileset(fs); if (ret == NULL) { - printf("recreating new fileset\n"); - ret = construct_new_fileset(fs); + fprintf(stderr, "Can not reuse filesystem"); + exit(1); } } else { printf("creating new fileset %s\n", fs->basedir);