search for: do_df

Displaying 12 results from an estimated 12 matches for "do_df".

Did you mean: d_df
2009 Aug 17
13
total warning-removal for daemon/
The warnings in daemon were aggravating and risky for development (too easy to miss new ones) so I spent some time last week and today working on removing them. The first patch gets us down to almost no warnings with the original -Wall setting. That was by far the hardest part. Once I'd done that, I enabled nearly all of gcc's warnings via gnulib's warnings and manywarnings modules
2017 Apr 20
6
[PATCH 0/5] generator: daemon: Various simplifications to stubs code.
This is a series of simplifications to the stubs code. It's all refactoring, there is no functional change. Rich.
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...-la"; for (i = 0; i < len; ++i) cargv[2+i] = argv[i]; diff --git a/daemon/df.c b/daemon/df.c index 14954d2..e723685 100644 --- a/daemon/df.c +++ b/daemon/df.c @@ -27,6 +27,8 @@ #include "daemon.h" #include "actions.h" +GUESTFSD_EXT_CMD(str_df, df); + char * do_df (void) { @@ -35,7 +37,7 @@ do_df (void) NEED_ROOT (, return NULL); - r = command (&out, &err, "df", NULL); + r = command (&out, &err, str_df, NULL); if (r == -1) { reply_with_error ("%s", err); free (out); @@ -56,7 +58,7 @@ do_df_h (void)...
2012 Aug 30
1
[PATCH] collect list of called external commands
...;-la"; for (i = 0; i < len; ++i) cargv[2+i] = argv[i]; diff --git a/daemon/df.c b/daemon/df.c index 14954d2..ad71e05 100644 --- a/daemon/df.c +++ b/daemon/df.c @@ -27,6 +27,8 @@ #include "daemon.h" #include "actions.h" +GUESTFS_EXT_CMD(str_df, df); + char * do_df (void) { @@ -35,7 +37,7 @@ do_df (void) NEED_ROOT (, return NULL); - r = command (&out, &err, "df", NULL); + r = command (&out, &err, str_df, NULL); if (r == -1) { reply_with_error ("%s", err); free (out); @@ -56,7 +58,7 @@ do_df_h (void)...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...quot;; for (i = 0; i < len; ++i) cargv[2+i] = argv[i]; diff --git a/daemon/df.c b/daemon/df.c index 80b765f30..1b68a7b55 100644 --- a/daemon/df.c +++ b/daemon/df.c @@ -27,8 +27,6 @@ #include "daemon.h" #include "actions.h" -GUESTFSD_EXT_CMD(str_df, df); - char * do_df (void) { @@ -38,7 +36,7 @@ do_df (void) NEED_ROOT (0, return NULL); - r = command (&out, &err, str_df, NULL); + r = command (&out, &err, "df", NULL); if (r == -1) { reply_with_error ("%s", err); free (out); @@ -57,7 +55,7 @@ do_df_h (void)...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...cargv[2+i] = argv[i]; diff --git a/daemon/df.c b/daemon/df.c index 80b765f30..b6578c6d4 100644 --- a/daemon/df.c +++ b/daemon/df.c @@ -27,7 +27,7 @@ #include "daemon.h" #include "actions.h" -GUESTFSD_EXT_CMD(str_df, df); +DECLARE_EXTERNAL_COMMANDS ("df") char * do_df (void) @@ -38,7 +38,7 @@ do_df (void) NEED_ROOT (0, return NULL); - r = command (&out, &err, str_df, NULL); + r = command (&out, &err, "df", NULL); if (r == -1) { reply_with_error ("%s", err); free (out); @@ -57,7 +57,7 @@ do_df_h (void)...
2017 Jul 27
3
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
This is a simpler patch that removes GUESTFSD_EXT_CMD completely.
2011 Jan 28
1
builder-debian libguestfs FAILED build step 82f5fdb0dbbc0c7b04861edeadf70c86c9342df2
...me/rjones/d/libguestfs/generator' CC guestfsd-names.o CC guestfsd-stubs.o CC guestfsd-sync.o CCLD guestfsd guestfsd-command.o: In function `do_command': /home/rjones/d/libguestfs/daemon/command.c:39: undefined reference to `root_mounted' guestfsd-df.o: In function `do_df_h': /home/rjones/d/libguestfs/daemon/df.c:57: undefined reference to `root_mounted' guestfsd-df.o: In function `do_df': /home/rjones/d/libguestfs/daemon/df.c:36: undefined reference to `root_mounted' guestfsd-inotify.o: In function `do_inotify_init': /home/rjones/d/libguestfs/da...
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...(readonly => 1); + $conn = Sys::Virt->new (readonly => 1); } my @doms = $conn->list_defined_domains (); @@ -162,10 +162,10 @@ if (@ARGV == 0) { my @domnames = map { $_->get_name () } @doms; if (@domnames) { - print_title (); - foreach (@domnames) { - do_df ($_); - } + print_title (); + foreach (@domnames) { + do_df ($_); + } } } else { print_title (); @@ -177,9 +177,9 @@ sub do_df my $g; if ($uri) { - $g = open_guest (\@_, address => $uri); + $g = open_guest (\@_, address => $uri);...
2017 Jul 24
6
[PATCH 0/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
Replace GUESTFSD_EXT_CMD with a command line option ‘./guestfsd --print-external-commands’
2011 Jan 28
0
builder-ubuntu libguestfs FAILED build step f060d5bcd40b4a6506d7994e67d57dccab1651b8
...me/rjones/d/libguestfs/generator' CC guestfsd-names.o CC guestfsd-stubs.o CC guestfsd-sync.o CCLD guestfsd guestfsd-command.o: In function `do_command': /home/rjones/d/libguestfs/daemon/command.c:39: undefined reference to `root_mounted' guestfsd-df.o: In function `do_df': /home/rjones/d/libguestfs/daemon/df.c:36: undefined reference to `root_mounted' guestfsd-df.o: In function `do_df_h': /home/rjones/d/libguestfs/daemon/df.c:57: undefined reference to `root_mounted' guestfsd-inotify.o: In function `do_inotify_init': /home/rjones/d/libguestfs/da...
2009 Aug 12
23
[PATCH 0/23] factor and const-correctness
This started as a simple warning-elimination change. I'll get back to that series shortly ;-) It turned into a factorization and constification exercise during which I got a taste of ocaml. Thanks to Rich Jones for help with a few snippets in generator.ml. The overall result is that many previously-manually-maintained bits from daemon/*.c functions are now hoisted into the automatically-