diff options
-rw-r--r-- | sbin/geom/class/mirror/geom_mirror.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/geom/class/mirror/geom_mirror.c b/sbin/geom/class/mirror/geom_mirror.c index 2f9d5dc..0ace733 100644 --- a/sbin/geom/class/mirror/geom_mirror.c +++ b/sbin/geom/class/mirror/geom_mirror.c @@ -215,6 +215,7 @@ mirror_label(struct gctl_req *req) } md.md_mediasize = mediasize; md.md_sectorsize = sectorsize; + md.md_mediasize -= (md.md_mediasize % md.md_sectorsize); /* * Clear last sector first, to spoil all components if device exists. |