OSDN Git Service

libparted: Give device_get_*_alignment sane defaults
authorHans de Goede <hdegoede@redhat.com>
Sat, 30 Jan 2010 16:53:48 +0000 (17:53 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 10 Feb 2010 13:28:49 +0000 (14:28 +0100)
commite493fba67b26f14f5bfd2ffaceb22a9c26b7a194
tree5685d8d748f1a409d6d79ffa5e46c168ec504d7a
parent92c7aa408ec950ffc8e0823df6a333dd77920643
libparted: Give device_get_*_alignment sane defaults

When the topology info is incomplete or non existent, return something
more sensible than NULL (which ends up being interpreted as
PedAlignmentAny in most cases). The default minimum alignment aligns to
physical sector size, the default optimal alignment is 1 MiB, which is
what vista and windows 7 do.
* libparted/device.c (device_get_*_alignment): Add default aligments.
* NEWS (New features): Mention it.
NEWS
libparted/device.c