obd_name is not initialized in OSD, but there is od_svname in
osd_device to be used instead.
Signed-off-by: Mikhail Pershin <tappro@whamcloud.com>
Change-Id: I87a83badc358ad508ecb8a4e593a7e744277e57f
Reviewed-on: http://review.whamcloud.com/4165
Tested-by: Hudson
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
#define QUOTA_IT_READ_ERROR(it, rc) \
CERROR("%s: Error while trying to read quota information, " \
"failed with %d\n", \
#define QUOTA_IT_READ_ERROR(it, rc) \
CERROR("%s: Error while trying to read quota information, " \
"failed with %d\n", \
- it->oiq_obj->oo_dt.do_lu.lo_dev->ld_obd->obd_name, rc); \
+ osd_dev(it->oiq_obj->oo_dt.do_lu.lo_dev)->od_svname, rc); \
/**
* Initialize osd Iterator for given osd index object.
/**
* Initialize osd Iterator for given osd index object.
if (!lu_device_is_md(&d->dd_lu_dev) && rc == -ENOSPC)
CERROR("%s: failed to start transaction due to ENOSPC. "
"Metadata overhead is underestimated or "
if (!lu_device_is_md(&d->dd_lu_dev) && rc == -ENOSPC)
CERROR("%s: failed to start transaction due to ENOSPC. "
"Metadata overhead is underestimated or "
- "grant_ratio is too low.\n",
- osd->od_dt_dev.dd_lu_dev.ld_obd->obd_name);
+ "grant_ratio is too low.\n", osd->od_svname);
else
CERROR("%s: can't assign tx: rc = %d\n",
else
CERROR("%s: can't assign tx: rc = %d\n",
- osd->od_dt_dev.dd_lu_dev.ld_obd->obd_name, rc);
} else {
/* add commit callback */
dmu_tx_callback_register(oh->ot_tx, osd_trans_commit_cb, oh);
} else {
/* add commit callback */
dmu_tx_callback_register(oh->ot_tx, osd_trans_commit_cb, oh);
else
LU_OBJECT_DEBUG(D_ERROR, env, luch,
"%s: object can't be located "DFID"\n",
else
LU_OBJECT_DEBUG(D_ERROR, env, luch,
"%s: object can't be located "DFID"\n",
- ludev->ld_obd->obd_name, PFID(fid));
+ osd_dev(ludev)->od_svname, PFID(fid));
if (child == NULL) {
lu_object_put(env, luch);
CERROR("%s: Unable to get osd_object "DFID"\n",
if (child == NULL) {
lu_object_put(env, luch);
CERROR("%s: Unable to get osd_object "DFID"\n",
- ludev->ld_obd->obd_name, PFID(fid));
+ osd_dev(ludev)->od_svname, PFID(fid));
child = ERR_PTR(-ENOENT);
}
} else {
LU_OBJECT_DEBUG(D_ERROR, env, luch,
"%s: lu_object does not exists "DFID"\n",
child = ERR_PTR(-ENOENT);
}
} else {
LU_OBJECT_DEBUG(D_ERROR, env, luch,
"%s: lu_object does not exists "DFID"\n",
- ludev->ld_obd->obd_name, PFID(fid));
+ osd_dev(ludev)->od_svname, PFID(fid));
lu_object_put(env, luch);
child = ERR_PTR(-ENOENT);
}
lu_object_put(env, luch);
child = ERR_PTR(-ENOENT);
}
if (rc == -ENOENT)
/* user/group has not created anything yet */
CDEBUG(D_QUOTA, "%s: id %s not found in DMU accounting ZAP\n",
if (rc == -ENOENT)
/* user/group has not created anything yet */
CDEBUG(D_QUOTA, "%s: id %s not found in DMU accounting ZAP\n",
- osd->od_dt_dev.dd_lu_dev.ld_obd->obd_name, buf);
if (rc == -ENOENT)
/* user/group has not created any file yet */
CDEBUG(D_QUOTA, "%s: id %s not found in accounting ZAP\n",
if (rc == -ENOENT)
/* user/group has not created any file yet */
CDEBUG(D_QUOTA, "%s: id %s not found in accounting ZAP\n",
- osd->od_dt_dev.dd_lu_dev.ld_obd->obd_name, buf);
if (rc == -ENOENT)
/* user/group has not created any file yet */
CDEBUG(D_QUOTA, "%s: id %s not found in accounting ZAP\n",
if (rc == -ENOENT)
/* user/group has not created any file yet */
CDEBUG(D_QUOTA, "%s: id %s not found in accounting ZAP\n",
- osd->od_dt_dev.dd_lu_dev.ld_obd->obd_name, buf);