[PULL REQUEST] one more fix for md: destroy partitions when stopping an array.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just one more... :-)

    md: destroy partitions and notify udev when md array is stopped.
    
    md arrays are not currently destroyed when they are stopped - they
    remain in /sys/block.  Last time I tried this I tripped over locking
    too much.
    
    A consequence of this is that udev doesn't remove anything from /dev.
    This is rather ugly.
    
    As an interim measure until proper device removal can be achieved,
    make sure all partitions are removed using the BLKRRPART ioctl, and
    send a KOBJ_CHANGE when an md array is stopped.
    
    Signed-off-by: NeilBrown <neilb@xxxxxxx>


Thanks,
NeilBrown


The following changes since commit f8d56f1771e4867acc461146764b4feeb5245669:
  Linus Torvalds (1):
        Merge branch 'for-linus' of git://neil.brown.name/md

are available in the git repository at:

  git://neil.brown.name/md for-linus

NeilBrown (1):
      md: destroy partitions and notify udev when md array is stopped.

 drivers/md/md.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux