forked from pool/parted
updated always_print_geom.diff to print also physical/logical sector size
OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=34
This commit is contained in:
parent
1f016cff29
commit
6009f756ed
@ -2,12 +2,14 @@ Index: parted/parted.c
|
||||
===================================================================
|
||||
--- parted/parted.c.orig 2010-07-08 13:29:24.000000000 +0200
|
||||
+++ parted/parted.c 2010-07-08 13:29:28.000000000 +0200
|
||||
@@ -1437,8 +1437,20 @@ do_print (PedDevice** dev)
|
||||
@@ -1437,8 +1437,22 @@ do_print (PedDevice** dev)
|
||||
wchar_t* table_rendered;
|
||||
|
||||
disk = ped_disk_new (*dev);
|
||||
- if (!disk)
|
||||
+ if (!disk) {
|
||||
+ printf (_("Sector size (logical/physical): %lldB/%lldB\n"),
|
||||
+ (*dev)->sector_size, (*dev)->phys_sector_size);
|
||||
+ if (ped_unit_get_default () == PED_UNIT_CHS ||
|
||||
+ ped_unit_get_default () == PED_UNIT_CYLINDER) {
|
||||
+ PedCHSGeometry* chs = &(*dev)->bios_geom;
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 9 12:16:04 UTC 2010 - puzel@novell.com
|
||||
|
||||
- updated always_print_geom.diff to print also physical/logical
|
||||
sector size (patch by Arvin Schnell)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 17 14:47:04 UTC 2010 - puzel@novell.com
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user