FreeBSD Bugzilla – Attachment 124099 Details for
Bug 167567
gpart(8) -a alignment silently overrides -b beginning option
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
gpart_align_start.diff
gpart_align_start.diff (text/plain), 549 bytes, created by
Andrey V. Elsukov
on 2012-05-04 15:11:10 UTC
(
hide
)
Description:
gpart_align_start.diff
Filename:
MIME Type:
Creator:
Andrey V. Elsukov
Created:
2012-05-04 15:11:10 UTC
Size:
549 bytes
patch
obsolete
>Index: head/sbin/geom/class/part/geom_part.c >=================================================================== >--- head/sbin/geom/class/part/geom_part.c (revision 233835) >+++ head/sbin/geom/class/part/geom_part.c (working copy) >@@ -538,6 +538,8 @@ gpart_autofill(struct gctl_req *req) > first = (off_t)strtoimax(s, NULL, 0) + 1; > a_first = ALIGNUP(first + offset, alignment); > } >+ if (has_start && a_first < start) >+ a_first = start; > if (a_first <= last) { > /* Free space [first-last] */ > len = ALIGNDOWN(last - a_first + 1, alignment);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 167567
: 124099