Searched refs:imgfile (Results 1 - 1 of 1) sorted by relevance

/vbox/src/VBox/Devices/PC/ipxe/contrib/vm/
H A Dcow22 imgfile=$1 ; shift
24 if [ -z "$imgfile" -o -z "$command" ] ; then
30 x=`losetup -f` ; losetup -r $x $imgfile ; imgloop=$x
33 tmpfile=`mktemp $imgfile.XXXXXXXXXX`
34 truncate -r $imgfile $tmpfile
39 x=`basename $imgfile` ; echo 0 $imgsize snapshot $imgloop $tmploop N 16 | \
41 chown --reference=$imgfile /dev/mapper/$dmname
42 chmod --reference=$imgfile /dev/mapper/$dmname
45 x=$imgfile.cow ; ln -s /dev/mapper/$dmname $x ; cowlink=$x

Completed in 176 milliseconds