mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
get_lv_name in tm_lvmrc now handles multiple disks (#32)
git-svn-id: http://svn.opennebula.org/one/trunk@853 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
1 parent
3fbfc9708f
commit
369aea92ed
1 file changed
+2
-1
@@ -28,5 +28,6 @@ DEFAULT_LV_SIZE="1G"
|
||||
|
||||
function get_lv_name {
|
||||
VID=`echo $1 |sed -e 's%^.*/\([^/]*\)/images.*$%\1%'`
|
||||
echo "lv-one-$VID"
|
||||
DISK=`echo $1|awk -F. '{printf $NF}'`
|
||||
echo "lv-one-$VID-$DISK"
|
||||
}
|
||||
Reference in new issue
Block a user