Whamcloud - gitweb
LU-7714 osd: propagate errors in osd_objset_open() 95/21495/2
authorJohn L. Hammond <john.hammond@intel.com>
Mon, 25 Jul 2016 13:36:48 +0000 (08:36 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 17 Dec 2016 05:41:08 +0000 (05:41 +0000)
In osd_objset_open() replace GOTO(out, -ENOTSUPP) with
GOTO(out, rc = -ENOTSUPP).

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I30465664a8f50c278335fe5ebcbc5f228e33c25f
Reviewed-on: https://review.whamcloud.com/21495
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Henri Doreau <henri.doreau@cea.fr>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/osd-zfs/osd_handler.c

index 3f7816b..6727ba3 100644 (file)
@@ -884,7 +884,7 @@ static int osd_objset_open(struct osd_device *o)
            DMU_GROUPUSED_DNODE(o->od_os)->dn_type != DMU_OT_USERGROUP_USED) {
                CERROR("%s: Space accounting not supported by this target, "
                        "aborting\n", o->od_svname);
-               GOTO(out, -ENOTSUPP);
+               GOTO(out, rc = -ENOTSUPP);
        }
 
 out: