Unverified Commit 3f6ddb6f authored by Fabian-Gruenbichler's avatar Fabian-Gruenbichler Committed by GitHub
Browse files

support zvol devices (#2678)



their partitions are exposed as "/dev/zdXXpY", handle accordingly.
Signed-off-by: default avatarFabian Grünbichler <f.gruenbichler@proxmox.com>
parent b8838b30
......@@ -92,6 +92,8 @@ get_disk_part_name() {
echo ${DISK}p${2}
elif echo $DISK | grep -q "/dev/nbd[0-9]"; then
echo ${DISK}p${2}
elif echo $DISK | grep -q "/dev/zd[0-9]"; then
echo ${DISK}p${2}
else
echo ${DISK}${2}
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment