[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Don't fail if unable to reread partition table
From: |
Soren Hansen |
Subject: |
Re: [PATCH] Don't fail if unable to reread partition table |
Date: |
Wed, 6 Aug 2008 15:02:24 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Wed, Aug 06, 2008 at 02:50:58PM +0200, Jim Meyering wrote:
>> diff -urNad parted-1.8.8.git.2008.03.24~/libparted/arch/linux.c
>> parted-1.8.8.git.2008.03.24/libparted/arch/linux.c
>> --- parted-1.8.8.git.2008.03.24~/libparted/arch/linux.c 2008-08-05
>> 17:02:18.151661314 +0200
>> +++ parted-1.8.8.git.2008.03.24/libparted/arch/linux.c 2008-08-05
>> 17:02:47.096662006 +0200
>> @@ -2454,7 +2467,7 @@
>> int retry_count = 5;
>>
>> sync();
>> - while (ioctl (arch_specific->fd, BLKRRPART)) {
>> + while (ioctl (arch_specific->fd, BLKRRPART) || errno == EINVAL) {
>> retry_count--;
>> sync();
>> if (!retry_count) {
> Thanks!
> This looks like a fine change.
Thanks!
> Do you feel like adding a test to demonstrate the failure and fix?
Sure.
--
Soren Hansen |
Virtualisation specialist | Ubuntu Server Team
Canonical Ltd. | http://www.ubuntu.com/
signature.asc
Description: Digital signature