search for: guestfs_mkswap_label_bitmask

Displaying 7 results from an estimated 7 matches for "guestfs_mkswap_label_bitmask".

2017 Apr 19
0
[PATCH] daemon: Add an assertion to suppress a warning with GCC.
...<string.h> #include <unistd.h> +#include <assert.h> #include "guestfs_protocol.h" #include "daemon.h" @@ -58,6 +59,7 @@ do_mkswap (const char *device, const char *label, const char *uuid) ADD_ARG (argv, i, "-f"); if (optargs_bitmask & GUESTFS_MKSWAP_LABEL_BITMASK) { + assert (label != NULL); /* suppress a warning with -O3 */ if (strlen (label) > SWAP_LABEL_MAX) { reply_with_error ("%s: Linux swap labels are limited to %d bytes", label, SWAP_LABEL_MAX); -- 2.12.0
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...r, "-U") != NULL; free (err); @@ -66,7 +70,7 @@ do_mkswap (const char *device, const char *label, const char *uuid) int r; char *err; - ADD_ARG (argv, i, "mkswap"); + ADD_ARG (argv, i, str_mkswap); ADD_ARG (argv, i, "-f"); if (optargs_bitmask & GUESTFS_MKSWAP_LABEL_BITMASK) { @@ -129,7 +133,7 @@ do_mkswap_file (const char *path) return -1; } - r = command (NULL, &err, "mkswap", "-f", buf, NULL); + r = command (NULL, &err, str_mkswap, "-f", buf, NULL); free (buf); if (r == -1) { @@ -173,13 +177,13 @@ swaponoff...
2012 Aug 30
1
[PATCH] collect list of called external commands
...r, "-U") != NULL; free (err); @@ -66,7 +70,7 @@ do_mkswap (const char *device, const char *label, const char *uuid) int r; char *err; - ADD_ARG (argv, i, "mkswap"); + ADD_ARG (argv, i, str_mkswap); ADD_ARG (argv, i, "-f"); if (optargs_bitmask & GUESTFS_MKSWAP_LABEL_BITMASK) { @@ -129,7 +133,7 @@ do_mkswap_file (const char *path) return -1; } - r = command (NULL, &err, "mkswap", "-f", buf, NULL); + r = command (NULL, &err, str_mkswap, "-f", buf, NULL); free (buf); if (r == -1) { @@ -173,13 +177,13 @@ swaponoff...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...ne SWAP_LABEL_MAX 16 @@ -55,7 +50,7 @@ do_mkswap (const char *device, const char *label, const char *uuid) int r; CLEANUP_FREE char *err = NULL; - ADD_ARG (argv, i, str_mkswap); + ADD_ARG (argv, i, "mkswap"); ADD_ARG (argv, i, "-f"); if (optargs_bitmask & GUESTFS_MKSWAP_LABEL_BITMASK) { @@ -117,7 +112,7 @@ do_mkswap_file (const char *path) return -1; } - r = command (NULL, &err, str_mkswap, "-f", buf, NULL); + r = command (NULL, &err, "mkswap", "-f", buf, NULL); if (r == -1) { reply_with_error ("%s: %s", path...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...fine SWAP_LABEL_MAX 16 @@ -55,7 +52,7 @@ do_mkswap (const char *device, const char *label, const char *uuid) int r; CLEANUP_FREE char *err = NULL; - ADD_ARG (argv, i, str_mkswap); + ADD_ARG (argv, i, "mkswap"); ADD_ARG (argv, i, "-f"); if (optargs_bitmask & GUESTFS_MKSWAP_LABEL_BITMASK) { @@ -117,7 +114,7 @@ do_mkswap_file (const char *path) return -1; } - r = command (NULL, &err, str_mkswap, "-f", buf, NULL); + r = command (NULL, &err, "mkswap", "-f", buf, NULL); if (r == -1) { reply_with_error ("%s: %s", path...
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’