diff options
author | Richard Jones <rjones@redhat.com> | 2009-06-08 17:44:18 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-06-08 17:44:18 +0100 |
commit | 460d139e6a52da67a4f1947035b1978610349f78 (patch) | |
tree | 798177aa71bc9615074cd1a9a351ff4b38165c7c /daemon | |
parent | 3de234656bc61a2d35b0f1a9ccb1e6ef7535166b (diff) | |
download | libguestfs-460d139e6a52da67a4f1947035b1978610349f78.tar.gz libguestfs-460d139e6a52da67a4f1947035b1978610349f78.tar.xz libguestfs-460d139e6a52da67a4f1947035b1978610349f78.zip |
Generated code for ntfs_3g_probe command.
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/actions.h | 1 | ||||
-rw-r--r-- | daemon/stubs.c | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/daemon/actions.h b/daemon/actions.h index 2c869474..e8291d56 100644 --- a/daemon/actions.h +++ b/daemon/actions.h @@ -130,3 +130,4 @@ extern int do_resize2fs (const char *device); extern char **do_find (const char *directory); extern int do_e2fsck_f (const char *device); extern int do_sleep (int secs); +extern int do_ntfs_3g_probe (int rw, const char *device); diff --git a/daemon/stubs.c b/daemon/stubs.c index 0e6af849..2a296446 100644 --- a/daemon/stubs.c +++ b/daemon/stubs.c @@ -2743,6 +2743,34 @@ done: xdr_free ((xdrproc_t) xdr_guestfs_sleep_args, (char *) &args); } +static void ntfs_3g_probe_stub (XDR *xdr_in) +{ + int r; + struct guestfs_ntfs_3g_probe_args args; + int rw; + const char *device; + + memset (&args, 0, sizeof args); + + if (!xdr_guestfs_ntfs_3g_probe_args (xdr_in, &args)) { + reply_with_error ("%s: daemon failed to decode procedure arguments", "ntfs_3g_probe"); + return; + } + rw = args.rw; + device = args.device; + + r = do_ntfs_3g_probe (rw, device); + if (r == -1) + /* do_ntfs_3g_probe has already called reply_with_error */ + goto done; + + struct guestfs_ntfs_3g_probe_ret ret; + ret.status = r; + reply ((xdrproc_t) &xdr_guestfs_ntfs_3g_probe_ret, (char *) &ret); +done: + xdr_free ((xdrproc_t) xdr_guestfs_ntfs_3g_probe_args, (char *) &args); +} + void dispatch_incoming_message (XDR *xdr_in) { switch (proc_nr) { @@ -3073,6 +3101,9 @@ void dispatch_incoming_message (XDR *xdr_in) case GUESTFS_PROC_SLEEP: sleep_stub (xdr_in); break; + case GUESTFS_PROC_NTFS_3G_PROBE: + ntfs_3g_probe_stub (xdr_in); + break; default: reply_with_error ("dispatch_incoming_message: unknown procedure number %d", proc_nr); } |