Displaying 7 results from an estimated 7 matches for "str_fstrim".
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...fstype, device, NULL);
if (r == -1) {
reply_with_error ("%s: %s", device, err);
free (err);
diff --git a/daemon/fstrim.c b/daemon/fstrim.c
index e2daf6a..ea47c95 100644
--- a/daemon/fstrim.c
+++ b/daemon/fstrim.c
@@ -30,10 +30,12 @@
#define MAX_ARGS 64
+GUESTFSD_EXT_CMD(str_fstrim, fstrim);
+
int
optgroup_fstrim_available (void)
{
- return prog_exists ("fstrim");
+ return prog_exists (str_fstrim);
}
/* Takes optional arguments, consult optargs_bitmask. */
@@ -47,7 +49,7 @@ do_fstrim (const char *path,
char *err;
int r;
- ADD_ARG (argv, i, "fs...
2012 Aug 30
1
[PATCH] collect list of called external commands
..., fstype, device, NULL);
if (r == -1) {
reply_with_error ("%s: %s", device, err);
free (err);
diff --git a/daemon/fstrim.c b/daemon/fstrim.c
index e2daf6a..e0a2377 100644
--- a/daemon/fstrim.c
+++ b/daemon/fstrim.c
@@ -30,10 +30,12 @@
#define MAX_ARGS 64
+GUESTFS_EXT_CMD(str_fstrim, fstrim);
+
int
optgroup_fstrim_available (void)
{
- return prog_exists ("fstrim");
+ return prog_exists (str_fstrim);
}
/* Takes optional arguments, consult optargs_bitmask. */
@@ -47,7 +49,7 @@ do_fstrim (const char *path,
char *err;
int r;
- ADD_ARG (argv, i, "fs...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...type, device, NULL);
if (r == -1) {
reply_with_error ("%s: %s", device, err);
return -1;
diff --git a/daemon/fstrim.c b/daemon/fstrim.c
index 527acfd48..f68690420 100644
--- a/daemon/fstrim.c
+++ b/daemon/fstrim.c
@@ -30,12 +30,10 @@
#define MAX_ARGS 64
-GUESTFSD_EXT_CMD(str_fstrim, fstrim);
-
int
optgroup_fstrim_available (void)
{
- return prog_exists (str_fstrim);
+ return prog_exists ("fstrim");
}
/* Takes optional arguments, consult optargs_bitmask. */
@@ -55,7 +53,7 @@ do_fstrim (const char *path,
*/
sync_disks ();
- ADD_ARG (argv, i, str_fst...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...type, device, NULL);
if (r == -1) {
reply_with_error ("%s: %s", device, err);
return -1;
diff --git a/daemon/fstrim.c b/daemon/fstrim.c
index 527acfd48..913267054 100644
--- a/daemon/fstrim.c
+++ b/daemon/fstrim.c
@@ -30,12 +30,12 @@
#define MAX_ARGS 64
-GUESTFSD_EXT_CMD(str_fstrim, fstrim);
+DECLARE_EXTERNAL_COMMANDS ("fstrim")
int
optgroup_fstrim_available (void)
{
- return prog_exists (str_fstrim);
+ return prog_exists ("fstrim");
}
/* Takes optional arguments, consult optargs_bitmask. */
@@ -55,7 +55,7 @@ do_fstrim (const char *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’
2014 Mar 11
21
[PATCH v2 00/18] Add discard support.
This still isn't working at the moment. See:
http://marc.info/?t=139457409300003&r=1&w=2
This set of patches:
- Adds new APIs to support discard in libguestfs.
- Adds discard support to virt-format.
- Adds discard support to virt-sysprep.
- Implements virt-sparsify --in-place.
Rich.