[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCH] Target::LibVirt: Don't truncate a volume when opening it



On Wed, Apr 07, 2010 at 12:05:37PM +0100, Matthew Booth wrote:
> perl's '>' open mode truncates by default, and will create a new file if
> necessary. We don't want to truncate an existing volume when writing to it, and
> it's an error if the volume doesn't already exist. Use sysopen to be explicit
> about this.

Yes, looks fine.  ACK.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]