X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fguestfsd.c;h=eaba7f04537335abdf7a41740b71cdae080434d9;hb=40ca9a57829f2e82362e391d7d998bf33c8bd671;hp=c27d1b6e12082781e4e7b322a88f8a17775bb66f;hpb=15dbb6973a7af11b81df047194228ea86d46939b;p=libguestfs.git diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index c27d1b6..eaba7f0 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -27,7 +27,10 @@ #include #include -static void xwrite (int sock, const void *buf, size_t len); +#include "daemon.h" + +void xwrite (int sock, const void *buf, size_t len); + static void usage (void); /* Also in guestfs.c */ @@ -177,12 +180,15 @@ main (int argc, char *argv[]) - sleep (1000000); + + + + main_loop (sock); exit (0); } -static void +void xwrite (int sock, const void *buf, size_t len) { int r; @@ -203,3 +209,18 @@ usage (void) { fprintf (stderr, "guestfsd [-f] [-h host -p port]\n"); } + +/* Some unimplemented actions. */ +int +do_mount (const char *device, const char *mountpoint) +{ + reply_with_error ("mount not implemented"); + return -1; +} + +int +do_touch (const char *path) +{ + reply_with_error ("touch not implemented"); + return -1; +}