Displaying 7 results from an estimated 7 matches for "do_btrfstune_seeding".
2015 Mar 01
5
[PATCH v2 0/3] btrfs: add support to btrfstune
This series adds new APIs to support btrfstune.
v2:
- merge btrfstune_S_[enable|disable] together
- fix naming issue
Chen Hanxiao (3):
New API: btrfstune_seeding
New API: btrfstune_enable_extended_inode_refs
New API: btrfstune_enable_skinny_metadata_extent_refs
daemon/btrfs.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++
generator/actions.ml | 47
2015 Jun 16
1
[PATCH] btrfs: remove unused 'out' variables
..._rescue_super_recover (const char *device)
ADD_ARG (argv, i, device);
ADD_ARG (argv, i, NULL);
- r = commandv (&out, &err, argv);
+ r = commandv (NULL, &err, argv);
if (r == -1) {
reply_with_error ("%s: %s", device, err);
return -1;
@@ -1973,7 +1957,6 @@ do_btrfstune_seeding (const char *device, int svalue)
const char *argv[MAX_ARGS];
size_t i = 0;
CLEANUP_FREE char *err = NULL;
- CLEANUP_FREE char *out = NULL;
int r;
const char *s_value = svalue ? "1" : "0";
@@ -1985,7 +1968,7 @@ do_btrfstune_seeding (const char *device, int svalu...
2015 Mar 01
0
[PATCH v2 1/3] New API: btrfstune_seeding
...ons.ml | 17 +++++++++++++++++
src/MAX_PROC_NR | 2 +-
3 files changed, 46 insertions(+), 1 deletion(-)
diff --git a/daemon/btrfs.c b/daemon/btrfs.c
index 6b93973..d2d4492 100644
--- a/daemon/btrfs.c
+++ b/daemon/btrfs.c
@@ -1929,3 +1929,31 @@ error:
free (ret);
return NULL;
}
+
+int
+do_btrfstune_seeding (const char *device, int svalue)
+{
+ const size_t MAX_ARGS = 64;
+ const char *argv[MAX_ARGS];
+ size_t i = 0;
+ CLEANUP_FREE char *err = NULL;
+ CLEANUP_FREE char *out = NULL;
+ int r;
+ const char *s_value = svalue ? "1" : "0";
+
+ ADD_ARG (argv, i, str_btrfstune);
+...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...918,7 +1911,7 @@ do_btrfs_scrub_status (const char *path)
return NULL;
}
- ADD_ARG (argv, i, str_btrfs);
+ ADD_ARG (argv, i, "btrfs");
ADD_ARG (argv, i, "scrub");
ADD_ARG (argv, i, "status");
ADD_ARG (argv, i, "-R");
@@ -2052,7 +2045,7 @@ do_btrfstune_seeding (const char *device, int svalue)
int r;
const char *s_value = svalue ? "1" : "0";
- ADD_ARG (argv, i, str_btrfstune);
+ ADD_ARG (argv, i, "btrfstune");
ADD_ARG (argv, i, "-S");
ADD_ARG (argv, i, s_value);
if (svalue == 0)
@@ -2078,7 +2071,7...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...918,7 +1914,7 @@ do_btrfs_scrub_status (const char *path)
return NULL;
}
- ADD_ARG (argv, i, str_btrfs);
+ ADD_ARG (argv, i, "btrfs");
ADD_ARG (argv, i, "scrub");
ADD_ARG (argv, i, "status");
ADD_ARG (argv, i, "-R");
@@ -2052,7 +2048,7 @@ do_btrfstune_seeding (const char *device, int svalue)
int r;
const char *s_value = svalue ? "1" : "0";
- ADD_ARG (argv, i, str_btrfstune);
+ ADD_ARG (argv, i, "btrfstune");
ADD_ARG (argv, i, "-S");
ADD_ARG (argv, i, s_value);
if (svalue == 0)
@@ -2078,7 +2074,7...
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’