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:
Xin LI 2014-01-01 01:26:39 +00:00
commit 647795d181
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=260157

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);
/*