svn commit: r218315 - projects/graid/head/sbin/geom/class/raid
Alexander Motin
mav at FreeBSD.org
Sat Feb 5 09:39:32 UTC 2011
Author: mav
Date: Sat Feb 5 09:39:32 2011
New Revision: 218315
URL: http://svn.freebsd.org/changeset/base/218315
Log:
Some cleanup.
Modified:
projects/graid/head/sbin/geom/class/raid/geom_raid.c
Modified: projects/graid/head/sbin/geom/class/raid/geom_raid.c
==============================================================================
--- projects/graid/head/sbin/geom/class/raid/geom_raid.c Sat Feb 5 09:37:34 2011 (r218314)
+++ projects/graid/head/sbin/geom/class/raid/geom_raid.c Sat Feb 5 09:39:32 2011 (r218315)
@@ -44,12 +44,6 @@ __FBSDID("$FreeBSD$");
uint32_t lib_version = G_LIB_VERSION;
uint32_t version = G_RAID_VERSION;
-#define GRAID_BALANCE "load"
-#define GRAID_SLICE "4096"
-#define GRAID_PRIORITY "0"
-
-//static void raid_main(struct gctl_req *req, unsigned flags);
-
struct g_command class_commands[] = {
{ "label", G_FLAG_VERBOSE, NULL,
{
@@ -89,32 +83,3 @@ struct g_command class_commands[] = {
G_CMD_SENTINEL
};
-#if 0
-static int verbose = 0;
-
-static void
-raid_main(struct gctl_req *req, unsigned flags)
-{
- const char *name;
-
- if ((flags & G_FLAG_VERBOSE) != 0)
- verbose = 1;
-
- name = gctl_get_ascii(req, "verb");
- if (name == NULL) {
- gctl_error(req, "No '%s' argument.", "verb");
- return;
- }
- if (strcmp(name, "label") == 0)
- raid_label(req);
- else if (strcmp(name, "clear") == 0)
- raid_clear(req);
- else if (strcmp(name, "dump") == 0)
- raid_dump(req);
- else if (strcmp(name, "activate") == 0)
- raid_activate(req);
- else
- gctl_error(req, "Unknown command: %s.", name);
-}
-#endif
-
More information about the svn-src-projects
mailing list