diff options
author | Eugene Grosbein <eugen@FreeBSD.org> | 2020-09-17 04:39:39 +0000 |
---|---|---|
committer | Eugene Grosbein <eugen@FreeBSD.org> | 2020-09-17 04:39:39 +0000 |
commit | b2b5d4c07ddebb0fad61dd2ac0e7b054c13a7af3 (patch) | |
tree | 89934090b99d06ef7dad6e13a7d103e1a2200370 /sys/geom | |
parent | 185e8af021c62becd3029045655d2b84447d0375 (diff) |
Notes
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/part/g_part.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c index 621058c9d4028..57d45911c54d9 100644 --- a/sys/geom/part/g_part.c +++ b/sys/geom/part/g_part.c @@ -1852,7 +1852,8 @@ g_part_ctlreq(struct gctl_req *req, struct g_class *mp, const char *verb) table = gpp.gpp_geom->softc; if (table != NULL && table->gpt_corrupt && ctlreq != G_PART_CTL_DESTROY && - ctlreq != G_PART_CTL_RECOVER) { + ctlreq != G_PART_CTL_RECOVER && + geom_part_check_integrity) { gctl_error(req, "%d table '%s' is corrupt", EPERM, gpp.gpp_geom->name); return; |