]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Extend stripeoffset and stripesize of GEOMs from u_int to off_t
authoreugen <eugen@FreeBSD.org>
Sat, 27 Oct 2018 16:14:42 +0000 (16:14 +0000)
committereugen <eugen@FreeBSD.org>
Sat, 27 Oct 2018 16:14:42 +0000 (16:14 +0000)
commitf8a3770ab6517397834a9b5b82d209917c134481
tree8495463a7d64559836d52c4c61404b80ee46dad9
parent1d48df1cfe12a9c3e5035467164d19ea52406fa0
Extend stripeoffset and stripesize of GEOMs from u_int to off_t

GEOM's stripeoffset overflows at 4 gigabyte margin (2^32)
because of its u_int type. This leads to incorrect data in the output
generated by "sysctl kern.geom.confxml" command, "graid list" etc.
when GEOM array has volumes larger than 4G, for example.

This change does not affect ABI but changes KBI. No MFC planned.

Differential Revision: https://reviews.freebsd.org/D13426
sys/geom/geom.h
sys/geom/geom_disk.h
sys/geom/geom_dump.c
sys/geom/geom_redboot.c
sys/geom/geom_subr.c
sys/geom/nop/g_nop.c
sys/geom/part/g_part.c
sys/geom/raid/g_raid.c
sys/geom/stripe/g_stripe.c
sys/geom/stripe/g_stripe.h
sys/geom/uzip/g_uzip.c