summaryrefslogtreecommitdiff
path: root/sbin/geom/class/label
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2008-03-05 23:31:49 +0000
committerXin LI <delphij@FreeBSD.org>2008-03-05 23:31:49 +0000
commitbc69d66f2ff93070916f90c91cf0aef120a8031a (patch)
treea27d084c39846e2cfd0d757141ca68f6a56566e4 /sbin/geom/class/label
parenta6a568708b99d21a8efa7db409ec3f5d8714b75e (diff)
Notes
Diffstat (limited to 'sbin/geom/class/label')
-rw-r--r--sbin/geom/class/label/geom_label.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sbin/geom/class/label/geom_label.c b/sbin/geom/class/label/geom_label.c
index 9e27eec376e8..eec20ca7e7a3 100644
--- a/sbin/geom/class/label/geom_label.c
+++ b/sbin/geom/class/label/geom_label.c
@@ -40,16 +40,21 @@ __FBSDID("$FreeBSD$");
#include "core/geom.h"
#include "misc/subr.h"
+#ifdef RESCUE
+#define PUBSYM(x) glabel_##x
+#else
+#define PUBSYM(x) x
+#endif
-uint32_t lib_version = G_LIB_VERSION;
-uint32_t version = G_LABEL_VERSION;
+uint32_t PUBSYM(lib_version) = G_LIB_VERSION;
+uint32_t PUBSYM(version) = G_LABEL_VERSION;
static void label_main(struct gctl_req *req, unsigned flags);
static void label_clear(struct gctl_req *req);
static void label_dump(struct gctl_req *req);
static void label_label(struct gctl_req *req);
-struct g_command class_commands[] = {
+struct g_command PUBSYM(class_commands)[] = {
{ "clear", G_FLAG_VERBOSE, label_main, G_NULL_OPTS, NULL,
"[-v] dev ..."
},