btrfs-progs: mkfs: treat btrfs_add_to_fsid as fatal error
When btrfs_add_to_fsid fails in mkfs we try to close the ctree. That complains that we already have a transaction open. We should be taking the error path and exit cleanly without writing. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
73ff25c65d
commit
1643179c6a
|
@ -1268,7 +1268,7 @@ int BOX_MAIN(mkfs)(int argc, char **argv)
|
|||
sectorsize, sectorsize, sectorsize);
|
||||
if (ret) {
|
||||
error("unable to add %s to filesystem: %d", file, ret);
|
||||
goto out;
|
||||
goto error;
|
||||
}
|
||||
if (verbose >= 2) {
|
||||
struct btrfs_device *device;
|
||||
|
|
Loading…
Reference in New Issue