diff options
author | Colin Watson <cjwatson@ubuntu.com> | 2010-11-17 15:14:50 +0000 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-11-18 07:30:44 +0100 |
commit | 783b762aefde2c25f546ba753ac0423a28aaa845 (patch) | |
tree | 0e834c647db3d8673aa125c726123ca84781b592 /bootstrap.conf | |
parent | 9f5b0608611eed40ef33be2096f5d482710602e5 (diff) | |
download | parted-783b762aefde2c25f546ba753ac0423a28aaa845.tar.gz |
libparted: ignore zero-length devices
* bootstrap.conf (gnulib_modules): Add xstrtoll.
* configure.ac: Create DYNAMIC_LOADING output variable.
* libparted/arch/linux.c (_device_get_length): Return the value of
PARTED_TEST_DEVICE_LENGTH if set in the environment, strictly for use by
the test suite.
(init_generic): If geometry probing fails because the device was
zero-length, return quietly rather than throwing an exception. This has
been observed in the wild with cciss devices, and it's difficult for
partitioners to tell the difference between that and more serious
errors.
* libparted/tests/Makefile.am (TESTS): Add t2100-zerolen.sh.
(check_PROGRAMS): Add zerolen.
(zerolen_SOURCES): Add.
(TESTS_ENVIRONMENT): Add DYNAMIC_LOADING and ENABLE_DEVICE_MAPPER.
* libparted/tests/t2100-zerolen.sh: New file.
* libparted/tests/zerolen.c: New file.
* tests/test-lib.sh (wait_for_dev_to_appear_): New function, copied from
tests/t-local.sh.
* NEWS (Bug fixes): Mention it.
Diffstat (limited to 'bootstrap.conf')
-rw-r--r-- | bootstrap.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap.conf b/bootstrap.conf index 01f354b..773c6c5 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -68,6 +68,7 @@ gnulib_modules=" version-etc-fsf warnings xstrtol + xstrtoll " # Additional xgettext options to use. Use "\\\newline" to break lines. |