Disown dataset in zfs_sb_create()

Fix an unlikely failure cause in zfs_sb_create() which could
leave the dataset owned on error and thus unavailable until
after a reboot.  Disown the dataset if SA are expected but
are in fact missing.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
Brian Behlendorf 2011-11-07 16:25:49 -08:00
parent ae6ba3dbe6
commit 591fb62f19
1 changed files with 1 additions and 1 deletions

View File

@ -646,7 +646,7 @@ zfs_sb_create(const char *osname, zfs_sb_t **zsbp)
error = zap_lookup(os, MASTER_NODE_OBJ, ZFS_SA_ATTRS, 8, 1,
&sa_obj);
if (error)
return (error);
goto out;
} else {
/*
* Pre SA versions file systems should never touch