Displaying 5 results from an estimated 5 matches for "optgroup_linuxfsuuid_avail".
2015 Oct 05
0
Re: [PATCH] Remove multiple hacks that only apply to RHEL 5.
...true for Linux swap partitions from the Linux sources. */
> #define SWAP_LABEL_MAX 16
>
> -/* Convenient place to test for the later version of e2fsprogs
> - * and util-linux which supports -U parameters to specify UUIDs.
> - * (Not supported in RHEL 5).
> - */
> int
> optgroup_linuxfsuuid_available (void)
> {
> - CLEANUP_FREE char *err = NULL;
> - int av;
> -
> - /* Upstream util-linux have been gradually changing '--help' to go
> - * from stderr to stdout, and changing the return code from 1 to 0.
> - * Thus we need to fold stdout and stderr together,...
2015 Oct 05
2
[PATCH] Remove multiple hacks that only apply to RHEL 5.
...label, swaplabel);
/* Confirmed this is true for Linux swap partitions from the Linux sources. */
#define SWAP_LABEL_MAX 16
-/* Convenient place to test for the later version of e2fsprogs
- * and util-linux which supports -U parameters to specify UUIDs.
- * (Not supported in RHEL 5).
- */
int
optgroup_linuxfsuuid_available (void)
{
- CLEANUP_FREE char *err = NULL;
- int av;
-
- /* Upstream util-linux have been gradually changing '--help' to go
- * from stderr to stdout, and changing the return code from 1 to 0.
- * Thus we need to fold stdout and stderr together, and ignore the
- * return code....
2011 Jun 09
15
[PATCH 00/13] Fix errors found using Coverity static analyzer.
I ran the Coverity static analyzer[1] on libguestfs, and fixed many
errors as a result.
Coverity found some errors in gnulib, but it doesn't seem to be worth
following those up since the version of gnulib we are using is so old.
There are a couple more errors (possibly 1 false-positive) which I'm
going to send in a separate email.
BTW all the errors found by Coverity were in the daemon
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...+30,10 @@
#include "ignore-value.h"
+GUESTFSD_EXT_CMD(str_mkswap, mkswap);
+GUESTFSD_EXT_CMD(str_swapon, swapon);
+GUESTFSD_EXT_CMD(str_swapoff, swapoff);
+
/* Confirmed this is true for Linux swap partitions from the Linux sources. */
#define SWAP_LABEL_MAX 16
@@ -49,7 +53,7 @@ optgroup_linuxfsuuid_available (void)
* return code.
*/
ignore_value (commandf (NULL, &err, COMMAND_FLAG_FOLD_STDOUT_ON_STDERR,
- "mkswap", "--help", NULL));
+ str_mkswap, "--help", NULL));
av = strstr (err, "-U") !=...
2012 Aug 30
1
[PATCH] collect list of called external commands
...0,6 +30,10 @@
#include "ignore-value.h"
+GUESTFS_EXT_CMD(str_mkswap, mkswap);
+GUESTFS_EXT_CMD(str_swapon, swapon);
+GUESTFS_EXT_CMD(str_swapoff, swapoff);
+
/* Confirmed this is true for Linux swap partitions from the Linux sources. */
#define SWAP_LABEL_MAX 16
@@ -49,7 +53,7 @@ optgroup_linuxfsuuid_available (void)
* return code.
*/
ignore_value (commandf (NULL, &err, COMMAND_FLAG_FOLD_STDOUT_ON_STDERR,
- "mkswap", "--help", NULL));
+ str_mkswap, "--help", NULL));
av = strstr (err, "-U") !=...