Merge "Add support for Xen PV disks"

This commit is contained in:
Jenkins 2015-11-04 21:07:25 +00:00 committed by Gerrit Code Review
commit 29f42e2f15

View File

@ -129,7 +129,7 @@ function prepend_dev() {
function whole_disk_name() { function whole_disk_name() {
local dev=`prepend_dev "$1"` local dev=`prepend_dev "$1"`
case "$dev" in case "$dev" in
/dev/sd*|/dev/hd*|/dev/vd*) /dev/sd*|/dev/hd*|/dev/vd*|/dev/xvd*)
echo "$dev" | sed -e 's/[0-9]*$//' echo "$dev" | sed -e 's/[0-9]*$//'
;; ;;
/dev/cciss/*) /dev/cciss/*)
@ -146,7 +146,7 @@ function partition_name() {
local dev=`prepend_dev "$1"` local dev=`prepend_dev "$1"`
local part=$2 local part=$2
case "$dev" in case "$dev" in
/dev/sd*|/dev/hd*|/dev/vd*) /dev/sd*|/dev/hd*|/dev/vd*|/dev/xvd*)
echo "${dev}${part}" echo "${dev}${part}"
;; ;;
/dev/cciss/*) /dev/cciss/*)