OSDN Git Service
(root)
/
android-x86
/
external-parted.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d472d3
)
linux: use blkid_topology_get_physical_sector_size
author
Hans de Goede
<hdegoede@redhat.com>
Mon, 11 Jan 2010 10:59:25 +0000
(11:59 +0100)
committer
Jim Meyering
<meyering@redhat.com>
Fri, 29 Jan 2010 08:58:16 +0000
(09:58 +0100)
The official 2.17 release of util-linux-ng, has added a function to
get the physical sector size. Use that instead of getting the
minimum io size.
* libparted/arch/linux.c (_device_set_sector_size): Use
blkid_topology_get_physical_sector_size.
libparted/arch/linux.c
patch
|
blob
|
history
diff --git
a/libparted/arch/linux.c
b/libparted/arch/linux.c
index
aefe788
..
bf33059
100644
(file)
--- a/
libparted/arch/linux.c
+++ b/
libparted/arch/linux.c
@@
-668,7
+668,7
@@
_device_set_sector_size (PedDevice* dev)
dev->path, strerror (errno), PED_SECTOR_SIZE_DEFAULT);
} else {
dev->phys_sector_size =
- blkid_topology_get_
minimum_io
_size(
+ blkid_topology_get_
physical_sector
_size(
arch_specific->topology);
}
#endif