Revision 40a03283

b/lib/backend.py
665 665
        # we need the children open in case the device itself has to
666 666
        # be assembled
667 667
        crdev.Open()
668
      else:
669
        crdev.Close()
670 668
      clist.append(crdev)
671 669
  try:
672 670
    device = bdev.FindDevice(disk.dev_type, disk.physical_id, clist)
......
766 764
    result = r_dev
767 765
    if as_primary or disk.OpenOnSecondary():
768 766
      r_dev.Open()
769
    else:
770
      r_dev.Close()
771 767
    DevCacheManager.UpdateCache(r_dev.dev_path, owner,
772 768
                                as_primary, disk.iv_name)
773 769

  

Also available in: Unified diff