OSDN Git Service

fix >512-byte sector label/disk-test failure
authorJim Meyering <meyering@redhat.com>
Tue, 15 Jul 2008 10:51:25 +0000 (12:51 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 24 Jul 2009 13:04:41 +0000 (15:04 +0200)
commitf4af35cec5be4d0e4fe0d6888d35c4ea179d44f9
treee0d90ac75fa0a2edb1d0ad3b1cc6d9ec2c052b59
parent3bb13560631718860b5ecc26384698b6e7367224
fix >512-byte sector label/disk-test failure

* libparted/tests/disk.c: Include xstrtol.h.
(get_sector_size): New function: get sector size from the environment.
(create_disk): Use the new function to calculate a usable size,
rather than hard-coding the 512-byte-sector-specific size of 20MB.
* libparted/tests/common.c (_create_disk): Change meaning (and name)
of parameter to be size in bytes, not MiB.
Adjust callers.
* po/POTFILES.in: Add lib/xstrtol-error.c.
libparted/tests/common.c
libparted/tests/disk.c
libparted/tests/label.c
po/POTFILES.in