Displaying 20 results from an estimated 27 matches for "do_lvs".
2015 Nov 10
2
[PATCH] daemon: lvm: Only return public LVs from guestfs_lvs API (RHBZ#1278878).
...s.
Filter the LVs that are returned using "lv_role=public".
Thanks: Fabian Deutsch
---
daemon/lvm.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/daemon/lvm.c b/daemon/lvm.c
index d989986..6e201e3 100644
--- a/daemon/lvm.c
+++ b/daemon/lvm.c
@@ -148,7 +148,9 @@ do_lvs (void)
r = command (&out, &err,
str_lvm, "lvs",
- "-o", "vg_name,lv_name", "--noheadings",
+ "-o", "vg_name,lv_name",
+ "-S", "lv_role=public",
+...
2016 Jan 27
4
[PATCH] lvm: support lvm2 older than 2.02.107
...d (&out, &err, str_lvm, "lvs", "--help", NULL);
+ if (r == -1) {
+ reply_with_error ("lvm lvs --help: %s", err);
+ return -1;
+ }
+
+ if (strstr (out, "-S") == NULL)
+ result = 0;
+ else
+ result = 1;
+
+ return result;
+}
+
char **
do_lvs (void)
{
char *out;
CLEANUP_FREE char *err = NULL;
int r;
+ int has_S = test_lvs_has_S_opt ();
- r = command (&out, &err,
- str_lvm, "lvs",
- "-o", "vg_name,lv_name",
- "-S", "lv_role=public...
2016 Feb 12
1
[PATCH] daemon: lvm: Ignore LVs with the activationskip flag set (RHBZ#1306666).
...gnore activationskip (RHBZ#1306666). */
+ if (strlen (lv_attr) >= 10 && lv_attr[9] == 'k')
+ goto skip_line;
+
/* Ignore "unknown device" message (RHBZ#1054761). */
if (STRNEQ (p, "unknown device")) {
char buf[256];
@@ -260,7 +264,7 @@ do_lvs (void)
r = command (&out, &err,
str_lvm, "lvs",
"-o", "vg_name,lv_name",
- "-S", "lv_role=public",
+ "-S", "lv_role=public && lv_active=active&qu...
2016 Jul 26
0
[PATCH 4/5] daemon: lvm: list PVs/VGs/LVs with --foreign
...;-o", "vg_name", "--noheadings", NULL);
+ str_lvm, "vgs", "--foreign", "-o", "vg_name", "--noheadings", NULL);
if (r == -1) {
reply_with_error ("%s", err);
free (out);
@@ -263,6 +263,7 @@ do_lvs (void)
if (has_S > 0) {
r = command (&out, &err,
str_lvm, "lvs",
+ "--foreign",
"-o", "vg_name,lv_name",
"-S", "lv_role=public && lv_skip_activatio...
2016 Jul 26
8
[PATCH 0/5] Improve LVM handling in the appliance
Hi,
this series improves the way LVM is used in the appliance: in
particular, now lvmetad can eventually run at all, and with the correct
configuration.
Also improve the listing strategies.
Thanks,
Pino Toscano (5):
daemon: lvm-filter: set also global_filter
daemon: lvm-filter: start lvmetad better
daemon: lvm: improve filter for LVs with activationskip flag set
daemon: lvm: list
2015 Nov 10
0
Re: [PATCH] daemon: lvm: Only return public LVs from guestfs_lvs API (RHBZ#1278878).
...e=public".
>
> Thanks: Fabian Deutsch
> ---
> daemon/lvm.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/daemon/lvm.c b/daemon/lvm.c
> index d989986..6e201e3 100644
> --- a/daemon/lvm.c
> +++ b/daemon/lvm.c
> @@ -148,7 +148,9 @@ do_lvs (void)
>
> r = command (&out, &err,
> str_lvm, "lvs",
> - "-o", "vg_name,lv_name", "--noheadings",
> + "-o", "vg_name,lv_name",
> + "-S", &q...
2016 Jan 28
0
Re: [PATCH] lvm: support lvm2 older than 2.02.107
On Wed, Jan 27, 2016 at 07:06:46PM +0100, Pino Toscano wrote:
> char **
> do_lvs (void)
> {
> char *out;
> CLEANUP_FREE char *err = NULL;
> int r;
> + int has_S = test_lvs_has_S_opt ();
> + if (has_S < 0)
> return NULL;
I think this doesn't do the right thing on the second failing call
to test_lvs_has_S_opt, because it won't ret...
2017 May 12
2
[PATCH 1/2] daemon: lvm: use 'yes' as boolean for lvm2
...;yes',
which seems to be supported.
Updates commit 7367945647e774aec4b93c3bf13181212d3c6430.
---
daemon/lvm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/daemon/lvm.c b/daemon/lvm.c
index a270b13..c186a5a 100644
--- a/daemon/lvm.c
+++ b/daemon/lvm.c
@@ -264,7 +264,7 @@ do_lvs (void)
r = command (&out, &err,
str_lvm, "lvs",
"-o", "vg_name,lv_name",
- "-S", "lv_role=public && lv_skip_activation!=1",
+ "-S", "lv_role=publ...
2016 Jan 28
0
[PATCH v2] lvm: support lvm2 older than 2.02.107
...d (&out, &err, str_lvm, "lvs", "--help", NULL);
+ if (r == -1) {
+ reply_with_error ("lvm lvs --help: %s", err);
+ return -1;
+ }
+
+ if (strstr (out, "-S") == NULL)
+ result = 0;
+ else
+ result = 1;
+
+ return result;
+}
+
char **
do_lvs (void)
{
char *out;
CLEANUP_FREE char *err = NULL;
int r;
+ int has_S = test_lvs_has_S_opt ();
- r = command (&out, &err,
- str_lvm, "lvs",
- "-o", "vg_name,lv_name",
- "-S", "lv_role=public...
2012 Feb 01
1
[PATCH] Clarify the error message when unavailable functions are called (RHBZ#679737).
...-122,6 +124,8 @@ do_vgs (void)
char *out, *err;
int r;
+ IF_NOT_AVAILABLE_ERROR (lvm2, NULL);
+
r = command (&out, &err,
"lvm", "vgs", "-o", "vg_name", "--noheadings", NULL);
if (r == -1) {
@@ -142,6 +146,8 @@ do_lvs (void)
char *out, *err;
int r;
+ IF_NOT_AVAILABLE_ERROR (lvm2, NULL);
+
r = command (&out, &err,
"lvm", "lvs",
"-o", "vg_name,lv_name", "--noheadings",
@@ -165,18 +171,24 @@ do_lvs (void)
guestfs_...
2017 Jul 14
0
[PATCH 14/27] daemon: Reimplement ‘lvs’ API in OCaml.
...d (&out, &err, str_lvm, "lvs", "--help", NULL);
- if (r == -1) {
- reply_with_error ("lvm lvs --help: %s", err);
- return -1;
- }
-
- if (strstr (out, "-S") == NULL)
- result = 0;
- else
- result = 1;
-
- return result;
-}
-
-char **
-do_lvs (void)
-{
- char *out;
- CLEANUP_FREE char *err = NULL;
- int r;
- const int has_S = test_lvs_has_S_opt ();
-
- if (has_S < 0)
- return NULL;
-
- if (has_S > 0) {
- r = command (&out, &err,
- str_lvm, "lvs",
- "-o", "...
2016 Jul 26
5
[PATCH v2 0/4] Improve LVM handling in the appliance
Hi,
this series improves the way LVM is used in the appliance: in
particular, now lvmetad can eventually run at all, and with the correct
configuration.
Also improve the listing strategies.
Changes in v2:
- dropped patch #5, will be sent separately
- move lvmetad statup in own function (patch #2)
Thanks,
Pino Toscano (4):
daemon: lvm-filter: set also global_filter
daemon: lvm-filter:
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...= command (&out, &err, str_lvm, "lvs", "--help", NULL);
+ int r = command (&out, &err, "lvm", "lvs", "--help", NULL);
if (r == -1) {
reply_with_error ("lvm lvs --help: %s", err);
return -1;
@@ -262,7 +260,7 @@ do_lvs (void)
if (has_S > 0) {
r = command (&out, &err,
- str_lvm, "lvs",
+ "lvm", "lvs",
"-o", "vg_name,lv_name",
"-S", "lv_role=public && lv_s...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...= command (&out, &err, str_lvm, "lvs", "--help", NULL);
+ int r = command (&out, &err, "lvm", "lvs", "--help", NULL);
if (r == -1) {
reply_with_error ("lvm lvs --help: %s", err);
return -1;
@@ -262,7 +262,7 @@ do_lvs (void)
if (has_S > 0) {
r = command (&out, &err,
- str_lvm, "lvs",
+ "lvm", "lvs",
"-o", "vg_name,lv_name",
"-S", "lv_role=public && lv_s...
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
..."vgs", "-o", "vg_name", "--noheadings", NULL);
+ str_lvm, "vgs", "-o", "vg_name", "--noheadings", NULL);
if (r == -1) {
reply_with_error ("%s", err);
free (out);
@@ -145,7 +147,7 @@ do_lvs (void)
int r;
r = command (&out, &err,
- "lvm", "lvs",
+ str_lvm, "lvs",
"-o", "vg_name,lv_name", "--noheadings",
"--separator", "/", NULL);...
2012 Aug 30
1
[PATCH] collect list of called external commands
..."vgs", "-o", "vg_name", "--noheadings", NULL);
+ str_lvm, "vgs", "-o", "vg_name", "--noheadings", NULL);
if (r == -1) {
reply_with_error ("%s", err);
free (out);
@@ -145,7 +147,7 @@ do_lvs (void)
int r;
r = command (&out, &err,
- "lvm", "lvs",
+ str_lvm, "lvs",
"-o", "vg_name,lv_name", "--noheadings",
"--separator", "/", NULL);...
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’
2017 Jun 05
19
[PATCH v3 00/19] Allow APIs to be implemented in OCaml.
v2 was here:
https://www.redhat.com/archives/libguestfs/2017-June/msg00008.html
This series gets as far as a working (and faster) reimplementation of
‘guestfs_list_filesystems’.
I also have another patch series on top of this one which reimplements
the inspection APIs inside the daemon, but that needs a bit more work
still, since inspection turns out to be a very large piece of code.
Rich.
2017 Jul 27
23
[PATCH v3 00/23] Reimplement many daemon APIs in OCaml.
I think this fixes everything mentioned:
- Added the Optgroups module as suggested.
- Remove command temporary files.
- Replace command ~flags with ?fold_stdout_on_stderr.
- Nest _with_mounted function.
- Rebase & retest.
Rich.