On Tue, Jan 28, 2014 at 05:53:51PM +0100, Pino Toscano wrote:
On Tuesday 28 January 2014 16:24:52 Richard W.M. Jones wrote:
> --- a/ocaml/examples/create_disk.ml
> +++ b/ocaml/examples/create_disk.ml
> @@ -9,9 +9,7 @@ let () =
> let g = new Guestfs.guestfs () in
>
> (* Create a raw-format sparse disk image, 512 MB in size. *)
> - let fd = openfile output [O_WRONLY;O_CREAT;O_TRUNC;O_NOCTTY] 0o666 in
> - ftruncate fd (512 * 1024 * 1024);
> - close fd;
> + g#disk_create output "raw" 536870912L;
Minor niptick: I'd leave the multiplication, as it was before and as
the other examples do (easier to spot and to change).
Fixed.
This patch series passes 'make -j1 check check-valgrind check-direct
check-valgrind-direct check-uml' so I'm inclined to push it and
release 1.25.30.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top