Skip to content

Commit

Permalink
Disown dataset in zfs_sb_create()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
behlendorf committed Nov 8, 2011
1 parent ae6ba3d commit 591fb62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/zfs_vfsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 591fb62

Please sign in to comment.