From b72ec21d24824720385c9cd024b7f1eae734f4a4 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Fri, 3 Apr 2009 22:45:42 +0100 Subject: [PATCH] Small updates to the generator. --- guestfs-actions.pod | 6 ++++++ src/generator.ml | 1 - src/guestfs-actions.c | 2 -- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/guestfs-actions.pod b/guestfs-actions.pod index c8a6077..f1ef332 100644 --- a/guestfs-actions.pod +++ b/guestfs-actions.pod @@ -15,6 +15,12 @@ first be mounted on C before others can be mounted. Other filesystems can only be mounted on directories which already exist. +The mounted filesystem is writable, if we have sufficient permissions +on the underlying device. + +The filesystem options C and C are set with this +call, in order to improve reliability. + This function return 0 on success or -1 on error. =head2 guestfs_sync diff --git a/src/generator.ml b/src/generator.ml index 29f7438..5868e17 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -318,7 +318,6 @@ and generate_client_actions () = pr " serial = dispatch (g, GUESTFS_PROC_%s, NULL, NULL);\n" (String.uppercase shortname) | (_, args) -> - pr "\n"; iter_args ( function | String name -> pr " args.%s = (char *) %s;\n" name name diff --git a/src/guestfs-actions.c b/src/guestfs-actions.c index fd7a0b9..484bb8d 100644 --- a/src/guestfs-actions.c +++ b/src/guestfs-actions.c @@ -61,7 +61,6 @@ int guestfs_mount (guestfs_h *g, memset (&rv, 0, sizeof rv); - args.device = (char *) device; args.mountpoint = (char *) mountpoint; serial = dispatch (g, GUESTFS_PROC_MOUNT, @@ -197,7 +196,6 @@ int guestfs_touch (guestfs_h *g, memset (&rv, 0, sizeof rv); - args.path = (char *) path; serial = dispatch (g, GUESTFS_PROC_TOUCH, (xdrproc_t) xdr_guestfs_touch_args, (char *) &args); -- 1.8.3.1