diff options
author | Karel Zak | 2013-02-04 18:29:05 +0100 |
---|---|---|
committer | Karel Zak | 2013-03-11 13:00:55 +0100 |
commit | 9d3d9754e7af4799aa5872f5ab394f93c725f0fe (patch) | |
tree | 64f215b7a37e8e929c722f2180eab83c24a226c5 /libblkid | |
parent | inlude/pt-sun: add flags and tags (diff) | |
download | kernel-qcow2-util-linux-9d3d9754e7af4799aa5872f5ab394f93c725f0fe.tar.gz kernel-qcow2-util-linux-9d3d9754e7af4799aa5872f5ab394f93c725f0fe.tar.xz kernel-qcow2-util-linux-9d3d9754e7af4799aa5872f5ab394f93c725f0fe.zip |
libblkid: rename in sun_disklabel for compatibility with fdisk
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid')
-rw-r--r-- | libblkid/src/partitions/sun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libblkid/src/partitions/sun.c b/libblkid/src/partitions/sun.c index f1b839258..c2c700d96 100644 --- a/libblkid/src/partitions/sun.c +++ b/libblkid/src/partitions/sun.c @@ -49,7 +49,7 @@ static int probe_sun_pt(blkid_probe pr, goto err; /* sectors per cylinder (partition offset is in cylinders...) */ - spc = be16_to_cpu(l->ntrks) * be16_to_cpu(l->nsect); + spc = be16_to_cpu(l->nhead) * be16_to_cpu(l->nsect); DBG(DEBUG_LOWPROBE, printf("Sun VTOC sanity=%u version=%u nparts=%u\n", |