search for: blkid_with_p_i_opt

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

2012 Jan 24
14
[PATCH 00/14] Run the daemon under valgrind and fix resultant errors.
This patch series lets you run the daemon under valgrind. Many errors were found and fixed. With the complete series applied, valgrind doesn't show any errors.
2016 Jul 07
0
[PATCH 2/2] daemon: fix cleanup of stringsbuf usages
...ees */ + return take_stringsbuf (&groups); /* caller frees */ } /* Search for filesystem in /proc/filesystems, ignoring "nodev". */ diff --git a/daemon/blkid.c b/daemon/blkid.c index 99546b4..1fe5ff9 100644 --- a/daemon/blkid.c +++ b/daemon/blkid.c @@ -138,19 +138,19 @@ blkid_with_p_i_opt (const char *device) int r; CLEANUP_FREE char *out = NULL, *err = NULL; CLEANUP_FREE_STRING_LIST char **lines = NULL; - DECLARE_STRINGSBUF (ret); + CLEANUP_FREE_STRINGSBUF DECLARE_STRINGSBUF (ret); r = command (&out, &err, str_blkid, "-c", "/dev/null",...
2016 Jul 07
2
[PATCH 1/2] daemon: free the string on stringsbuf add failure
If add_string_nodup fails free the passed string instead of leaking it, as that string would have been owned by the stringbuf. Adapt few places to this behaviour. --- daemon/btrfs.c | 4 +--- daemon/devsparts.c | 8 ++++---- daemon/guestfsd.c | 1 + 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/daemon/btrfs.c b/daemon/btrfs.c index 9b52aa8..d70565a 100644 ---
2012 Mar 13
2
[PATCH 0/2] 'int' to 'size_t' changes
These two patches are probably not completely independent, but separating them is a lot of work. With *both* patches applied, all the tests and extra-tests pass. That's no guarantee however that there isn't a mistake, so I don't think this patch is a candidate for the 1.16 branch, until it's had a lot more testing in development. Rich.
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...ll. */ command_failed: @@ -111,7 +113,7 @@ test_blkid_p_i_opt (void) } free (err); - r = commandr (NULL, &err, "blkid", "-i", NULL); + r = commandr (NULL, &err, str_blkid, "-i", NULL); if (r == -1) goto command_failed; @@ -134,7 +136,7 @@ blkid_with_p_i_opt (const char *device) char **lines = NULL; DECLARE_STRINGSBUF (ret); - r = command (&out, &err, "blkid", "-c", "/dev/null", + r = command (&out, &err, str_blkid, "-c", "/dev/null", "-p", "-i&qu...
2012 Aug 30
1
[PATCH] collect list of called external commands
...ll. */ command_failed: @@ -111,7 +113,7 @@ test_blkid_p_i_opt (void) } free (err); - r = commandr (NULL, &err, "blkid", "-i", NULL); + r = commandr (NULL, &err, str_blkid, "-i", NULL); if (r == -1) goto command_failed; @@ -134,7 +136,7 @@ blkid_with_p_i_opt (const char *device) char **lines = NULL; DECLARE_STRINGSBUF (ret); - r = command (&out, &err, "blkid", "-c", "/dev/null", + r = command (&out, &err, str_blkid, "-c", "/dev/null", "-p", "-i&qu...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
.... */ command_failed: @@ -119,7 +117,7 @@ test_blkid_p_i_opt (void) return 0; } - r = commandr (NULL, &err2, str_blkid, "-i", NULL); + r = commandr (NULL, &err2, "blkid", "-i", NULL); if (r == -1) goto command_failed; @@ -140,7 +138,7 @@ blkid_with_p_i_opt (const char *device) CLEANUP_FREE_STRING_LIST char **lines = NULL; CLEANUP_FREE_STRINGSBUF DECLARE_STRINGSBUF (ret); - r = command (&out, &err, str_blkid, "-c", "/dev/null", + r = command (&out, &err, "blkid", "-c", "/dev/null&q...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
.... */ command_failed: @@ -119,7 +119,7 @@ test_blkid_p_i_opt (void) return 0; } - r = commandr (NULL, &err2, str_blkid, "-i", NULL); + r = commandr (NULL, &err2, "blkid", "-i", NULL); if (r == -1) goto command_failed; @@ -140,7 +140,7 @@ blkid_with_p_i_opt (const char *device) CLEANUP_FREE_STRING_LIST char **lines = NULL; CLEANUP_FREE_STRINGSBUF DECLARE_STRINGSBUF (ret); - r = command (&out, &err, str_blkid, "-c", "/dev/null", + r = command (&out, &err, "blkid", "-c", "/dev/null&q...
2015 Oct 05
0
[PATCH 2/2] Fix whitespace.
...? ": " : "", details ? details : ""); \ } \ } while (0) diff --git a/daemon/blkid.c b/daemon/blkid.c index 74d2fa6..99546b4 100644 --- a/daemon/blkid.c +++ b/daemon/blkid.c @@ -191,7 +191,7 @@ blkid_with_p_i_opt (const char *device) return ret.argv; -error: + error: if (ret.argv) free_strings (ret.argv); @@ -225,7 +225,7 @@ blkid_without_p_i_opt (const char *device) if (end_stringsbuf (&ret) == -1) goto error; return ret.argv; -error: + error: if (ret.argv) free_strings...
2015 Oct 05
3
[PATCH 1/2] Change 'fprintf (stdout,...)' -> printf.
Result of earlier copy and paste. --- align/scan.c | 35 ++++++++++--------- cat/cat.c | 39 +++++++++++---------- cat/filesystems.c | 69 +++++++++++++++++++------------------- cat/log.c | 35 ++++++++++--------- cat/ls.c | 61 +++++++++++++++++---------------- df/main.c | 43 ++++++++++++------------ diff/diff.c | 67
2017 Jul 27
3
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
This is a simpler patch that removes GUESTFSD_EXT_CMD completely.
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’