1 From 503c54ef274a923dcac337361936062b37a0ac1a Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Mon, 11 Jan 2010 11:46:36 +0100
4 Subject: [PATCH parted 1/3] linux: use blkid_topology_get_physical_sector_size
6 The official 2.17 release of util-linux-ng, has added a function to
7 get the physical sector size, use that instead of getting the
9 * libparted/arch/linux.c(_device_set_sector_size): use
10 blkid_topology_get_physical_sector_size.
12 libparted/arch/linux.c | 2 +-
13 1 files changed, 1 insertions(+), 1 deletions(-)
15 diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
16 index aefe788..bf33059 100644
17 --- a/libparted/arch/linux.c
18 +++ b/libparted/arch/linux.c
19 @@ -668,7 +668,7 @@ _device_set_sector_size (PedDevice* dev)
20 dev->path, strerror (errno), PED_SECTOR_SIZE_DEFAULT);
22 dev->phys_sector_size =
23 - blkid_topology_get_minimum_io_size(
24 + blkid_topology_get_physical_sector_size(
25 arch_specific->topology);