|
|
f96e0b |
From 189c134b407a9addc5f8cc4b7c95042820103c0e Mon Sep 17 00:00:00 2001
|
|
|
f96e0b |
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
Date: Fri, 26 Apr 2013 23:41:13 +0200
|
|
|
f96e0b |
Subject: [PATCH 357/482] * util/getroot.c (exec_pipe): Put proper #if's
|
|
|
f96e0b |
so that its users don't compile when not needed.
|
|
|
f96e0b |
|
|
|
f96e0b |
---
|
|
|
f96e0b |
ChangeLog | 5 +++++
|
|
|
f96e0b |
util/getroot.c | 11 ++++++-----
|
|
|
f96e0b |
2 files changed, 11 insertions(+), 5 deletions(-)
|
|
|
f96e0b |
|
|
|
f96e0b |
diff --git a/ChangeLog b/ChangeLog
|
|
|
f96e0b |
index 5ddb7a8..4975a2c 100644
|
|
|
f96e0b |
--- a/ChangeLog
|
|
|
f96e0b |
+++ b/ChangeLog
|
|
|
f96e0b |
@@ -1,5 +1,10 @@
|
|
|
f96e0b |
2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
|
|
|
f96e0b |
+ * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
|
|
|
f96e0b |
+ compile when not needed.
|
|
|
f96e0b |
+
|
|
|
f96e0b |
+2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
+
|
|
|
f96e0b |
* tests/pseries_test.in: New test.
|
|
|
f96e0b |
|
|
|
f96e0b |
2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
diff --git a/util/getroot.c b/util/getroot.c
|
|
|
f96e0b |
index ecf7ce1..2ad8a55 100644
|
|
|
f96e0b |
--- a/util/getroot.c
|
|
|
f96e0b |
+++ b/util/getroot.c
|
|
|
f96e0b |
@@ -220,9 +220,6 @@ xgetcwd (void)
|
|
|
f96e0b |
|
|
|
f96e0b |
#if !defined (__MINGW32__) && !defined (__CYGWIN__) && !defined (__GNU__)
|
|
|
f96e0b |
|
|
|
f96e0b |
-#if (defined (__linux__) || \
|
|
|
f96e0b |
- !defined (HAVE_LIBZFS) || !defined (HAVE_LIBNVPAIR))
|
|
|
f96e0b |
-
|
|
|
f96e0b |
static pid_t
|
|
|
f96e0b |
exec_pipe (char **argv, int *fd)
|
|
|
f96e0b |
{
|
|
|
f96e0b |
@@ -268,8 +265,6 @@ exec_pipe (char **argv, int *fd)
|
|
|
f96e0b |
}
|
|
|
f96e0b |
}
|
|
|
f96e0b |
|
|
|
f96e0b |
-#endif
|
|
|
f96e0b |
-
|
|
|
f96e0b |
static char **
|
|
|
f96e0b |
find_root_devices_from_poolname (char *poolname)
|
|
|
f96e0b |
{
|
|
|
f96e0b |
@@ -1322,6 +1317,8 @@ grub_util_get_dev_abstraction (const char *os_dev)
|
|
|
f96e0b |
return GRUB_DEV_ABSTRACTION_NONE;
|
|
|
f96e0b |
}
|
|
|
f96e0b |
|
|
|
f96e0b |
+#if !defined (__MINGW32__) && !defined (__CYGWIN__) && !defined (__GNU__)
|
|
|
f96e0b |
+
|
|
|
f96e0b |
static void
|
|
|
f96e0b |
pull_lvm_by_command (const char *os_dev)
|
|
|
f96e0b |
{
|
|
|
f96e0b |
@@ -1392,6 +1389,8 @@ out:
|
|
|
f96e0b |
free (buf);
|
|
|
f96e0b |
}
|
|
|
f96e0b |
|
|
|
f96e0b |
+#endif
|
|
|
f96e0b |
+
|
|
|
f96e0b |
#ifdef __linux__
|
|
|
f96e0b |
static char *
|
|
|
f96e0b |
get_mdadm_uuid (const char *os_dev)
|
|
|
f96e0b |
@@ -1615,7 +1614,9 @@ grub_util_pull_device (const char *os_dev)
|
|
|
f96e0b |
break;
|
|
|
f96e0b |
|
|
|
f96e0b |
case GRUB_DEV_ABSTRACTION_LVM:
|
|
|
f96e0b |
+#if !defined (__MINGW32__) && !defined (__CYGWIN__) && !defined (__GNU__)
|
|
|
f96e0b |
pull_lvm_by_command (os_dev);
|
|
|
f96e0b |
+#endif
|
|
|
f96e0b |
/* Fallthrough in case that lvm-tools are unavailable. */
|
|
|
f96e0b |
case GRUB_DEV_ABSTRACTION_LUKS:
|
|
|
f96e0b |
#ifdef HAVE_DEVICE_MAPPER
|
|
|
f96e0b |
--
|
|
|
f96e0b |
1.8.2.1
|
|
|
f96e0b |
|