Fix some ZFS debugging messages
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c Be more careful about the use of provider names vs vdev names in ZFS_LOG statements. MFC after: 3 weeks Sponsored by: Spectra Logic Corp
This commit is contained in:
parent
53d1eddd44
commit
69b14f7acd
@ -745,7 +745,7 @@ vdev_geom_open_by_guids(vdev_t *vd)
|
||||
|
||||
ZFS_LOG(1, "Attach by guid [%ju:%ju] succeeded, provider %s.",
|
||||
(uintmax_t)spa_guid(vd->vdev_spa),
|
||||
(uintmax_t)vd->vdev_guid, vd->vdev_path);
|
||||
(uintmax_t)vd->vdev_guid, cp->provider->name);
|
||||
} else {
|
||||
ZFS_LOG(1, "Search by guid [%ju:%ju] failed.",
|
||||
(uintmax_t)spa_guid(vd->vdev_spa),
|
||||
@ -847,12 +847,12 @@ vdev_geom_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize,
|
||||
VERIFY(tsd_set(zfs_geom_probe_vdev_key, NULL) == 0);
|
||||
|
||||
if (cp == NULL) {
|
||||
ZFS_LOG(1, "Provider %s not found.", vd->vdev_path);
|
||||
ZFS_LOG(1, "Vdev %s not found.", vd->vdev_path);
|
||||
error = ENOENT;
|
||||
} else if (cp->provider->sectorsize > VDEV_PAD_SIZE ||
|
||||
!ISP2(cp->provider->sectorsize)) {
|
||||
ZFS_LOG(1, "Provider %s has unsupported sectorsize.",
|
||||
vd->vdev_path);
|
||||
cp->provider->name);
|
||||
|
||||
vdev_geom_close_locked(vd);
|
||||
error = EINVAL;
|
||||
@ -870,7 +870,7 @@ vdev_geom_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize,
|
||||
}
|
||||
if (error != 0) {
|
||||
printf("ZFS WARNING: Unable to open %s for writing (error=%d).\n",
|
||||
vd->vdev_path, error);
|
||||
cp->provider->name, error);
|
||||
vdev_geom_close_locked(vd);
|
||||
cp = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user