MFV r260153:

4121 vdev_label_init should treat request as succeeded when pool
     is read only

Illumos/illumos-gate@973c78e94b

MFC after:	2 weeks
This commit is contained in:
delphij 2014-01-01 01:26:39 +00:00
parent bc4b7f4186
commit 843c1c95ad

View File

@ -646,7 +646,7 @@ vdev_label_init(vdev_t *vd, uint64_t crtxg, vdev_labeltype_t reason)
/* Track the creation time for this vdev */
vd->vdev_crtxg = crtxg;
if (!vd->vdev_ops->vdev_op_leaf)
if (!vd->vdev_ops->vdev_op_leaf || !spa_writeable(spa))
return (0);
/*