Revision ade6513a src/datastore_mad/remotes/libfs.sh

View differences:

src/datastore_mad/remotes/libfs.sh
53 53
}
54 54

  
55 55
#-------------------------------------------------------------------------------
56
# Get file format using qemu-img
57
#   @return string representation of the format, empty if error
58
#-------------------------------------------------------------------------------
59
function image_format {
60
    echo "$($QEMU_IMG info $1 2>/dev/null | grep -Po '(?<=file format: )\w+')"
61
}
62

  
63
#-------------------------------------------------------------------------------
56 64
# Generates an unique image hash. Requires ID to be set
57 65
#   @return hash for the image (empty if error)
58 66
#-------------------------------------------------------------------------------

Also available in: Unified diff