]> git-server-git.apps.pok.os.sepia.ceph.com Git - ffsb.git/commitdiff
Exit FFSB if filesystem can't be reused.
authorDominik Bruhn <dominik@dbruhn.de>
Mon, 23 Apr 2012 13:02:18 +0000 (15:02 +0200)
committerDominik Bruhn <dominik@dbruhn.de>
Mon, 23 Apr 2012 13:02:18 +0000 (15:02 +0200)
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.

ffsb_fs.c

index 72e6a894bb53b22c6a736946d2d9dad42ec8276e..94b80c17c5a6d25262f1f2d8effee3000fc0a439 100644 (file)
--- 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);