• O
    storage: dir: adapt .refreshVol and .refreshPool for ploop volumes · ea94be47
    Olga Krishtal 提交于
    Refreshes meta-information such as allocation, capacity, format, etc.
    Ploop volumes differ from other volume types. Path to volume is the path
    to directory with image file root.hds and DiskDescriptor.xml.
    https://openvz.org/Ploop/format
    Due to this fact, operations of opening the volume have to be done once
    again. get the information.
    
    To decide whether the given volume is ploops one, it is necessary to check
    the presence of root.hds and DiskDescriptor.xml files in volumes' directory.
    Only in this case the volume can be manipulated as the ploops one.
    Such strategy helps us to resolve problems that might occure, when we
    upload some other volume type from ploop source.
    Signed-off-by: NOlga Krishtal <okrishtal@virtuozzo.com>
    Signed-off-by: NJán Tomko <jtomko@redhat.com>
    ea94be47
storage_backend.h 14.0 KB