Date: Sat, 5 Feb 2011 09:39:32 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r218315 - projects/graid/head/sbin/geom/class/raid Message-ID: <201102050939.p159dW8u021784@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 -
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102050939.p159dW8u021784>