Hi Radu,
> > xen-create-image will overwrite existing files. perhaps a command line
> > option should be added to force overwriting and refuse to overwrite
> > files as default?
> >
>
> Could you be more specific ? What files are you talking about ?
Sorry :). I was talking about the image files. Something like this (be
advised, this patch is untested):
--- xen-create-image.orig 2006-05-05 13:57:05.000000000 +0200
+++ xen-create-image 2006-05-05 13:59:18.000000000 +0200
@@ -671,6 +671,10 @@
}
else
{
+ if ( -f $swap ) {
+ print "ERROR: file exists, aborting.\n");
+ exit
+ }
$swap_cmd = "/bin/dd if=/dev/zero of=$swap bs=1024k count=$CONFIG{'swap'}";
}
@@ -700,6 +704,10 @@
{
#
# Loopback
+ if ( -f $image ) {
+ print "ERROR: file exists, aborting.\n");
+ exit
+ }
$image_cmd = "/bin/dd if=/dev/zero of=$image bs=$CONFIG{'size'} count=0
seek=1024";
}
regards
Stefan
--
Do not overtax your powers.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]