GNU bug report logs - #25756
Problems using "parted ... print" on nvme devices

Previous Next

Package: parted;

Reported by: Douglas Miller <dougmill <at> linux.vnet.ibm.com>

Date: Thu, 16 Feb 2017 16:35:03 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Douglas Miller <dougmill <at> linux.vnet.ibm.com>
To: 25756 <at> debbugs.gnu.org
Cc: Guilherme Piccoli <gpiccoli <at> br.ibm.com>, chavez <at> us.ibm.com, ruddk <at> us.ibm.com
Subject: bug#25756: Problems using "parted ... print" on nvme devices
Date: Thu, 16 Feb 2017 09:08:44 -0600
We have seen a problem in some test infrastructure that uses "parted ... 
print" to query partition information and then configure test cases. The 
problem shows up when using parted on nvme drives because systemd.udevd 
is monitoring nvme devices for changes to the partition tables, and 
rebuilds the devices. This results in the devices disappearing for a few 
seconds after running "parted ... print" and causing failures to 
configure tests. The root cause is that parted opens the device "O_RDWR" 
regardless of whether it is actually modifying the partition table, and 
this notifies systemd-udevd causing the disruption in the block devices.

I have not worked up a patch yet, or even studied the code in-depth, but 
it seems to me that parted could be better about using open modes that 
reflect it's true intentions. Does that seem like a reasonable change?

I expect that our test infrastructure will have to be modified, probably 
to use fdisk or something other than parted, but it still seems like 
something to be fixed.


Thoughts?

Thanks,

Doug





This bug report was last modified 8 years and 82 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.