]> git.apps.os.sepia.ceph.com Git - ffsb.git/commitdiff
Revert "Exit FFSB if filesystem can't be reused." 2/head
authorXiubo Li <xiubli@redhat.com>
Thu, 6 May 2021 05:39:58 +0000 (13:39 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 6 May 2021 05:39:58 +0000 (13:39 +0800)
This reverts commit 63e4ab020e307762614fc6d474fb76a3e250d7ba.

ffsb_fs.c

index 89c2c2c6b0147844b37aa56edc20d54202f4e29c..39283f9b2e96befa7af2826a764013678c2f605b 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) {
-            fprintf(stderr, "Can not reuse filesystem");
-            exit(1);
+                       printf("recreating new fileset\n");
+                       ret = construct_new_fileset(fs);
                }
        } else {
                printf("creating new fileset %s\n", fs->basedir);