]> git.ipfire.org Git - ipfire-3.x.git/blame - parted/patches/parted-2.1-blkid_topology_get_physical_sector_size.patch
Move all packages to root.
[ipfire-3.x.git] / parted / patches / parted-2.1-blkid_topology_get_physical_sector_size.patch
CommitLineData
a7d4b011
SS
1From 503c54ef274a923dcac337361936062b37a0ac1a Mon Sep 17 00:00:00 2001
2From: Hans de Goede <hdegoede@redhat.com>
3Date: Mon, 11 Jan 2010 11:46:36 +0100
4Subject: [PATCH parted 1/3] linux: use blkid_topology_get_physical_sector_size
5
6The official 2.17 release of util-linux-ng, has added a function to
7get the physical sector size, use that instead of getting the
8minimum io size.
9* libparted/arch/linux.c(_device_set_sector_size): use
10blkid_topology_get_physical_sector_size.
11---
12 libparted/arch/linux.c | 2 +-
13 1 files changed, 1 insertions(+), 1 deletions(-)
14
15diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
16index 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);
21 } else {
22 dev->phys_sector_size =
23- blkid_topology_get_minimum_io_size(
24+ blkid_topology_get_physical_sector_size(
25 arch_specific->topology);
26 }
27 #endif
28--
291.6.5.2
30