search for: do_pvresize

Displaying 10 results from an estimated 10 matches for "do_pvresize".

2009 Aug 12
23
[PATCH 0/23] factor and const-correctness
This started as a simple warning-elimination change. I'll get back to that series shortly ;-) It turned into a factorization and constification exercise during which I got a taste of ocaml. Thanks to Rich Jones for help with a few snippets in generator.ml. The overall result is that many previously-manually-maintained bits from daemon/*.c functions are now hoisted into the automatically-
2012 Feb 01
1
[PATCH] Clarify the error message when unavailable functions are called (RHBZ#679737).
...ULL); if (r == -1) { @@ -434,6 +462,8 @@ do_pvremove (const char *device) char *err; int r; + IF_NOT_AVAILABLE_ERROR (lvm2, -1); + r = command (NULL, &err, "lvm", "pvremove", "-ff", 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;...
2009 Aug 17
13
total warning-removal for daemon/
The warnings in daemon were aggravating and risky for development (too easy to miss new ones) so I spent some time last week and today working on removing them. The first patch gets us down to almost no warnings with the original -Wall setting. That was by far the hardest part. Once I'd done that, I enabled nearly all of gcc's warnings via gnulib's warnings and manywarnings modules
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...r = command (NULL, &err, - "lvm", "pvremove", "-ff", device, NULL); + str_lvm, "pvremove", "-ff", device, NULL); if (r == -1) { reply_with_error ("%s", err); free (err); @@ -489,7 +491,7 @@ do_pvresize (const char *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...
2012 Aug 30
1
[PATCH] collect list of called external commands
...r = command (NULL, &err, - "lvm", "pvremove", "-ff", device, NULL); + str_lvm, "pvremove", "-ff", device, NULL); if (r == -1) { reply_with_error ("%s", err); free (err); @@ -489,7 +491,7 @@ do_pvresize (const char *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...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...r = command (NULL, &err, - str_lvm, "pvremove", "-ff", device, NULL); + "lvm", "pvremove", "-ff", device, NULL); if (r == -1) { reply_with_error ("%s", err); return -1; @@ -605,7 +603,7 @@ do_pvresize (const char *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 +...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...r = command (NULL, &err, - str_lvm, "pvremove", "-ff", device, NULL); + "lvm", "pvremove", "-ff", device, NULL); if (r == -1) { reply_with_error ("%s", err); return -1; @@ -605,7 +605,7 @@ do_pvresize (const char *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 +...
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’
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...and (NULL, &err, - "/sbin/lvm", "pvremove", "-ff", device, NULL); + "/sbin/lvm", "pvremove", "-ff", device, NULL); if (r == -1) { reply_with_error ("%s", err); free (err); @@ -422,7 +422,7 @@ do_pvresize (char *device) IS_DEVICE (device, -1); r = command (NULL, &err, - "/sbin/lvm", "pvresize", device, NULL); + "/sbin/lvm", "pvresize", device, NULL); if (r == -1) { reply_with_error ("pvresize: %s: %s", device,...