Re: [PATCH] libparted: use ioctl(BLKPBSZGET) to get phys sector size

2012-10-20 Thread Yang Bai
ping. Any comments? Please cc to me since I am not in these 2 mailing lists. Thanks, Yang On Wed, Oct 17, 2012 at 10:27 PM, Yang Bai wrote: > Before, we use ioctl(BLKSSZGET) to get a disk's sector size and use this > value as both logical and physical sector size, but this value is just > the l

[PATCH] libparted: use ioctl(BLKPBSZGET) to get phys sector size

2012-10-17 Thread Yang Bai
Before, we use ioctl(BLKSSZGET) to get a disk's sector size and use this value as both logical and physical sector size, but this value is just the logical sector size. For physical sector size, we should use ioctl(BLKPBSZGET). Since the popular of 4K AF hard disks, the logical sector size if diffe