diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-05-01 02:24:05 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-05-01 02:24:05 +0000 |
commit | f32d2926b0f3151409079b0a7b3b7cd3cec73ee2 (patch) | |
tree | 40e161dbc2a5b51098c923f7ba5378838673b0f2 /sbin/geom/class | |
parent | 312717174d2266e8e3f830bbe5238beabdaec2e6 (diff) |
Notes
Diffstat (limited to 'sbin/geom/class')
-rw-r--r-- | sbin/geom/class/virstor/geom_virstor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/geom/class/virstor/geom_virstor.c b/sbin/geom/class/virstor/geom_virstor.c index 15a56761da187..7b83852eba899 100644 --- a/sbin/geom/class/virstor/geom_virstor.c +++ b/sbin/geom/class/virstor/geom_virstor.c @@ -255,7 +255,7 @@ virstor_label(struct gctl_req *req) if (md.md_chunk_size % MAXPHYS != 0) { /* XXX: This is not strictly needed, but it's convenient to * impose some limitations on it, so why not MAXPHYS. */ - size_t new_size = (md.md_chunk_size / MAXPHYS) * MAXPHYS; + size_t new_size = rounddown(md.md_chunk_size, MAXPHYS); if (new_size < md.md_chunk_size) new_size += MAXPHYS; fprintf(stderr, "Resizing chunk size to be a multiple of " |