summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2011-06-21 04:06:39 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2011-06-21 04:06:39 +0000
commit621f3e6d9ca3ccd2a68347ed40d2b988ab1c8c23 (patch)
tree959dae84943c1851d5a07d7b4ff58d9c32923da4 /sbin
parent24c02d2f9e4cb17e32735f0362453c74eafdb952 (diff)
downloadsrc-test2-621f3e6d9ca3ccd2a68347ed40d2b988ab1c8c23.tar.gz
src-test2-621f3e6d9ca3ccd2a68347ed40d2b988ab1c8c23.zip
Notes
Diffstat (limited to 'sbin')
-rw-r--r--sbin/geom/class/part/geom_part.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/geom/class/part/geom_part.c b/sbin/geom/class/part/geom_part.c
index eaf58450166d..a6840e2a0e13 100644
--- a/sbin/geom/class/part/geom_part.c
+++ b/sbin/geom/class/part/geom_part.c
@@ -499,8 +499,8 @@ gpart_autofill(struct gctl_req *req)
/* Adjust parameters to stripeoffset */
offset = pp->lg_stripeoffset / pp->lg_sectorsize;
start = ALIGNUP(start + offset, alignment);
- if (size + offset > alignment)
- size = ALIGNDOWN(size + offset, alignment);
+ if (size > alignment)
+ size = ALIGNDOWN(size, alignment);
first = (off_t)strtoimax(find_geomcfg(gp, "first"), NULL, 0);
last = (off_t)strtoimax(find_geomcfg(gp, "last"), NULL, 0);