[Parted-maintainers] Bug#842269: parted clobbers in-memory state of	extended partitions
    Marius Vollmer 
    marius.vollmer at redhat.com
       
    Thu Oct 27 14:25:11 UTC 2016
    
    
  
Package: parted
Version: 3.2-16+b1
Please see https://bugzilla.redhat.com/show_bug.cgi?id=1135493
Additional information: This bug is probably masked most of the time
because of the asynchronous BLKRRPART done by udev some time later.
However, newer versions of Storaged disable this BLKRRPART.
This has been fixed upstream, but has not been released.  It is probably
best to tickle a release out of upstream...
To reproduce:
  # flock -s /dev/sda sleep infinity &
  # parted /dev/sda mktable msdos
  # parted /dev/sda mkpart extended 1MiB 40MiB
  # parted /dev/sda mkpart logical ext2 2MiB 40MiB
  # blkid -p /dev/sda1
  error: /dev/sda1: No such device or address
  # kill %1
  [1]+  Terminated              flock -s /dev/sda sleep infinity
  # echo >/dev/sda
  # blkid -p /dev/sda1
  /dev/sda1: PTTYPE="dos" PART_ENTRY_SCHEME="dos"
  PART_ENTRY_UUID="a05ee957-01" PART_ENTRY_TYPE="0xf"
  PART_ENTRY_NUMBER="1" PART_ENTRY_OFFSET="2048" PART_ENTRY_SIZE="79872"
  PART_ENTRY_DISK="8:0"
The "flock" prevents udevd from issuing its usual BLKRRPART ioctl.
    
    
More information about the Parted-maintainers
mailing list