Displaying 8 results from an estimated 8 matches for "do_pvresize_size".
2017 Jun 12
1
[PATCH] daemon: lvm: Pass --yes option to force pvresize (RHBZ#1460577).
...PV.
Pass this flag unconditionally.
Note this does NOT break earlier versions which just ignore this flag.
---
daemon/lvm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/daemon/lvm.c b/daemon/lvm.c
index c186a5a5e..6c57046ff 100644
--- a/daemon/lvm.c
+++ b/daemon/lvm.c
@@ -625,6 +625,7 @@ do_pvresize_size (const char *device, int64_t size)
r = command (NULL, &err,
str_lvm, "pvresize",
+ "--yes",
"--setphysicalvolumesize", buf,
device, NULL);
if (r == -1) {
--
2.12.0
2012 Feb 01
1
[PATCH] Clarify the error message when unavailable functions are called (RHBZ#679737).
...quot;, device, NULL);
if (r == -1) {
@@ -455,6 +485,8 @@ do_pvresize (const char *device)
char *err;
int r;
+ IF_NOT_AVAILABLE_ERROR (lvm2, -1);
+
r = command (NULL, &err,
"lvm", "pvresize", device, NULL);
if (r == -1) {
@@ -472,8 +504,10 @@ do_pvresize_size (const char *device, int64_t size)
{
char *err;
int r;
-
char buf[32];
+
+ IF_NOT_AVAILABLE_ERROR (lvm2, -1);
+
snprintf (buf, sizeof buf, "%" PRIi64 "b", size);
r = command (NULL, &err,
@@ -497,6 +531,8 @@ do_vg_activate (int activate, char *const *volgro...
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...ar *device)
int r;
r = command (NULL, &err,
- "lvm", "pvresize", device, NULL);
+ str_lvm, "pvresize", device, NULL);
if (r == -1) {
reply_with_error ("%s: %s", device, err);
free (err);
@@ -510,7 +512,7 @@ do_pvresize_size (const char *device, int64_t size)
snprintf (buf, sizeof buf, "%" PRIi64 "b", size);
r = command (NULL, &err,
- "lvm", "pvresize",
+ str_lvm, "pvresize",
"--setphysicalvolumesize", bu...
2012 Aug 30
1
[PATCH] collect list of called external commands
...ar *device)
int r;
r = command (NULL, &err,
- "lvm", "pvresize", device, NULL);
+ str_lvm, "pvresize", device, NULL);
if (r == -1) {
reply_with_error ("%s: %s", device, err);
free (err);
@@ -510,7 +512,7 @@ do_pvresize_size (const char *device, int64_t size)
snprintf (buf, sizeof buf, "%" PRIi64 "b", size);
r = command (NULL, &err,
- "lvm", "pvresize",
+ str_lvm, "pvresize",
"--setphysicalvolumesize", bu...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...har *device)
int r;
r = command (NULL, &err,
- str_lvm, "pvresize", device, NULL);
+ "lvm", "pvresize", device, NULL);
if (r == -1) {
reply_with_error ("%s: %s", device, err);
return -1;
@@ -624,7 +622,7 @@ do_pvresize_size (const char *device, int64_t size)
snprintf (buf, sizeof buf, "%" PRIi64 "b", size);
r = command (NULL, &err,
- str_lvm, "pvresize",
+ "lvm", "pvresize",
"--yes",
&quo...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...har *device)
int r;
r = command (NULL, &err,
- str_lvm, "pvresize", device, NULL);
+ "lvm", "pvresize", device, NULL);
if (r == -1) {
reply_with_error ("%s: %s", device, err);
return -1;
@@ -624,7 +624,7 @@ do_pvresize_size (const char *device, int64_t size)
snprintf (buf, sizeof buf, "%" PRIi64 "b", size);
r = command (NULL, &err,
- str_lvm, "pvresize",
+ "lvm", "pvresize",
"--yes",
&quo...
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’