Small updates to the generator.

This commit is contained in:
Richard Jones
2009-04-03 22:45:42 +01:00
parent 99bd425a0a
commit b72ec21d24
3 changed files with 6 additions and 3 deletions

View File

@@ -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<sync> and C<noatime> are set with this
call, in order to improve reliability.
This function return 0 on success or -1 on error.
=head2 guestfs_sync

View File

@@ -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

View File

@@ -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);