Fix calculation of alignment for odd values. Also do not change value
when it is already aligned.
This commit is contained in:
parent
2956ec9bc7
commit
72b066244c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222263
@ -295,8 +295,8 @@ fmtattrib(struct gprovider *pp)
|
||||
return (buf);
|
||||
}
|
||||
|
||||
#define ALIGNDOWN(d, a) (-(a) & (d))
|
||||
#define ALIGNUP(d, a) (-(-(a) & -(d)))
|
||||
#define ALIGNDOWN(d, a) ((d) % (a) ? (d) - (d) % (a): (d))
|
||||
#define ALIGNUP(d, a) ((d) % (a) ? (d) - (d) % (a) + (a): (d))
|
||||
|
||||
static int
|
||||
gpart_autofill_resize(struct gctl_req *req)
|
||||
|
Loading…
Reference in New Issue
Block a user