[parted-devel] [PATCH 9/9] libparted: device mapper uses 512b sectors

Brian C. Lane bcl at redhat.com
Fri Feb 6 17:50:37 UTC 2015


On Fri, Feb 06, 2015 at 11:33:21AM -0500, Phillip Susi wrote:
> On 2/6/2015 11:24 AM, Brian C. Lane wrote:
> > We tell device-mapper the size of the disk and the partitions,
> > right now we are using native disk sector units for this. We need
> > to make sure we use 512b units when talking to device-mapper.
> 
> Yes, but the "native disk sector units" are always 512 bytes since
> that is what devmapper tells us it is.  We have no idea that there is
> a 4k sector disk underneath devmapper.

That's not true. Take a look at the test, it demonstrates the problem.


-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)



More information about the parted-devel mailing list