aboutsummaryrefslogtreecommitdiffstats
path: root/tools/internal
diff options
context:
space:
mode:
authortlh20@labyrinth.cl.cam.ac.uk <tlh20@labyrinth.cl.cam.ac.uk>2003-09-11 10:15:23 +0000
committertlh20@labyrinth.cl.cam.ac.uk <tlh20@labyrinth.cl.cam.ac.uk>2003-09-11 10:15:23 +0000
commite2c12cbc69135bc8305bc2e652bbb80b518973f6 (patch)
treee37ed80f26e2769fd44f38aefbcdc908179f042e /tools/internal
parentea0145702fd3d3e964e0b1a67c9a0a3a3bc6b257 (diff)
downloadxen-e2c12cbc69135bc8305bc2e652bbb80b518973f6.tar.gz
xen-e2c12cbc69135bc8305bc2e652bbb80b518973f6.tar.bz2
xen-e2c12cbc69135bc8305bc2e652bbb80b518973f6.zip
bitkeeper revision 1.424 (3f604b3bXFcuMeirDE8BxjFaH5y6eA)
Many files: Follow parition names through /dev sym-links CommandVbdCreatePhysical.java: *** empty log message ***
Diffstat (limited to 'tools/internal')
-rwxr-xr-xtools/internal/xi_helper9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/internal/xi_helper b/tools/internal/xi_helper
index 8c1f8e1eb1..9e33af7b52 100755
--- a/tools/internal/xi_helper
+++ b/tools/internal/xi_helper
@@ -13,3 +13,12 @@ fi
if [ "$1" = "route" ] ; then
/sbin/route -n | grep $QUERY_DEV | grep 'G' | awk '{print $2}'
fi
+
+if [ "$1" = "expand" ] ; then
+ cd /dev/
+ CURRENT=$2
+ if [ -h "$CURRENT" ] ; then
+ CURRENT=$(basename $(stat -c%N $CURRENT | tr -d "\`\'" | awk '{print $3}'))
+ fi
+ echo $CURRENT
+fi \ No newline at end of file