Displaying 7 results from an estimated 7 matches for "pulse_mode_start".
2014 Aug 08
3
[PATCH] daemon: add CLEANUP_CLOSE
Just call close on the specified fd, if valid.
---
daemon/daemon.h | 3 +++
daemon/guestfsd.c | 9 +++++++++
2 files changed, 12 insertions(+)
diff --git a/daemon/daemon.h b/daemon/daemon.h
index fb74e91..0caad45 100644
--- a/daemon/daemon.h
+++ b/daemon/daemon.h
@@ -173,6 +173,7 @@ asprintf_nowarn (char **strp, const char *fmt, ...)
extern void cleanup_free (void *ptr);
extern void
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’
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...git a/daemon/du.c b/daemon/du.c
index 62f1142..4392bef 100644
--- a/daemon/du.c
+++ b/daemon/du.c
@@ -28,6 +28,8 @@
#include "daemon.h"
#include "actions.h"
+GUESTFSD_EXT_CMD(str_du, du);
+
int64_t
do_du (const char *path)
{
@@ -45,7 +47,7 @@ do_du (const char *path)
pulse_mode_start ();
- r = command (&out, &err, "du", "-s", buf, NULL);
+ r = command (&out, &err, str_du, "-s", buf, NULL);
free (buf);
if (r == -1) {
pulse_mode_cancel ();
diff --git a/daemon/ext2.c b/daemon/ext2.c
index 943b441..40b36d2 100644
--- a/da...
2012 Aug 30
1
[PATCH] collect list of called external commands
...-git a/daemon/du.c b/daemon/du.c
index 62f1142..1aa3b52 100644
--- a/daemon/du.c
+++ b/daemon/du.c
@@ -28,6 +28,8 @@
#include "daemon.h"
#include "actions.h"
+GUESTFS_EXT_CMD(str_du, du);
+
int64_t
do_du (const char *path)
{
@@ -45,7 +47,7 @@ do_du (const char *path)
pulse_mode_start ();
- r = command (&out, &err, "du", "-s", buf, NULL);
+ r = command (&out, &err, str_du, "-s", buf, NULL);
free (buf);
if (r == -1) {
pulse_mode_cancel ();
diff --git a/daemon/ext2.c b/daemon/ext2.c
index 7876e66..7a769bd 100644
--- a/da...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...a/daemon/du.c b/daemon/du.c
index 5bb764075..7e6e329a3 100644
--- a/daemon/du.c
+++ b/daemon/du.c
@@ -28,8 +28,6 @@
#include "daemon.h"
#include "actions.h"
-GUESTFSD_EXT_CMD(str_du, du);
-
int64_t
do_du (const char *path)
{
@@ -46,7 +44,7 @@ do_du (const char *path)
pulse_mode_start ();
- r = command (&out, &err, str_du, "-s", buf, NULL);
+ r = command (&out, &err, "du", "-s", buf, NULL);
if (r == -1) {
pulse_mode_cancel ();
reply_with_error ("%s: %s", path, err);
diff --git a/daemon/ext2.c b/daemon/ext2....
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...75..e4203f2dd 100644
--- a/daemon/du.c
+++ b/daemon/du.c
@@ -28,7 +28,7 @@
#include "daemon.h"
#include "actions.h"
-GUESTFSD_EXT_CMD(str_du, du);
+DECLARE_EXTERNAL_COMMANDS ("du")
int64_t
do_du (const char *path)
@@ -46,7 +46,7 @@ do_du (const char *path)
pulse_mode_start ();
- r = command (&out, &err, str_du, "-s", buf, NULL);
+ r = command (&out, &err, "du", "-s", buf, NULL);
if (r == -1) {
pulse_mode_cancel ();
reply_with_error ("%s: %s", path, err);
diff --git a/daemon/ext2.c b/daemon/ext2....
2017 Jul 27
3
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
This is a simpler patch that removes GUESTFSD_EXT_CMD completely.