• J
    storage: Handle failure from refreshVol · 3c41b3ea
    John Ferlan 提交于
    Commit id '155ca616' added the 'refreshVol' API. In an NFS root-squash
    environment it was possible that if the just created volume from XML wasn't
    properly created with the right uid/gid and/or mode, then the followup
    refreshVol will fail to open the volume in order to get the allocation/
    capacity values. This would leave the volume still on the server and
    cause a libvirtd crash because 'voldef' would be in the pool list, but
    the cleanup code would free it.
    
    (cherry picked from commit db9277a3)
    3c41b3ea
storage_driver.c 93.6 KB