OSDN Git Service

linux: correct phys_sector_size setting
authorHans de Goede <hdegoede@redhat.com>
Sat, 30 Jan 2010 16:53:47 +0000 (17:53 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 10 Feb 2010 13:26:17 +0000 (14:26 +0100)
commit92c7aa408ec950ffc8e0823df6a333dd77920643
tree6fc102fb1e519ea6dff1861f82987a68b86d4653
parent7e1d447e000dd574333a1c9ca07a42e8e0ba4d8e
linux: correct phys_sector_size setting

1) Use the logical sector size as physical sector size instead of 512
   when not compiled with libblkid support, this fixes problems
   with logical sector size > physical sector size.
2) blkid_topology_get_physical_sector_size() returns 0 when it fails
   to determine the physical sector size, handle this.
* libparted/arch/linux.c (_device_set_sector_size): Correct
phys_sector_size setting.
* NEWS (Bug fixes): Mention it.
NEWS
libparted/arch/linux.c