Do not try to release objectset if we failed to open it.
Change-Id: I85926d0b0a7fb5faf832a3907eac2324e7e6c07f
Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-on: http://review.whamcloud.com/15671
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
rc = -dmu_objset_own(o->od_mntdev, DMU_OST_ZFS, B_FALSE, o, &o->od_os);
if (rc) {
+ CERROR("%s: can't open %s\n", o->od_svname, o->od_mntdev);
o->od_os = NULL;
goto out;
}
rc = osd_objset_open(o);
if (rc)
- GOTO(err, rc);
+ RETURN(rc);
o->od_xattr_in_sa = B_TRUE;
o->od_max_blksz = SPA_OLD_MAXBLOCKSIZE;