geom_stripe.c (155175) | geom_stripe.c (162868) |
---|---|
1/*- 2 * Copyright (c) 2004-2005 Pawel Jakub Dawidek <pjd@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2004-2005 Pawel Jakub Dawidek <pjd@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sbin/geom/class/stripe/geom_stripe.c 155175 2006-02-01 12:11:37Z pjd $"); | 28__FBSDID("$FreeBSD: head/sbin/geom/class/stripe/geom_stripe.c 162868 2006-09-30 14:40:50Z pjd $"); |
29 30#include <sys/param.h> 31#include <errno.h> 32#include <paths.h> 33#include <stdio.h> 34#include <stdlib.h> 35#include <stdint.h> 36#include <string.h> --- 24 unchanged lines hidden (view full) --- 61 { 62 { 's', "stripesize", &default_stripesize, G_TYPE_NUMBER }, 63 G_OPT_SENTINEL 64 }, 65 "[-hv] [-s stripesize] name prov prov ..." 66 }, 67 { "destroy", G_FLAG_VERBOSE, NULL, 68 { | 29 30#include <sys/param.h> 31#include <errno.h> 32#include <paths.h> 33#include <stdio.h> 34#include <stdlib.h> 35#include <stdint.h> 36#include <string.h> --- 24 unchanged lines hidden (view full) --- 61 { 62 { 's', "stripesize", &default_stripesize, G_TYPE_NUMBER }, 63 G_OPT_SENTINEL 64 }, 65 "[-hv] [-s stripesize] name prov prov ..." 66 }, 67 { "destroy", G_FLAG_VERBOSE, NULL, 68 { |
69 { 'f', "force", NULL, G_TYPE_NONE }, | 69 { 'f', "force", NULL, G_TYPE_BOOL }, |
70 G_OPT_SENTINEL 71 }, 72 "[-fv] name ..." 73 }, 74 { "dump", 0, stripe_main, G_NULL_OPTS, 75 "dump prov ..." 76 }, 77 { "label", G_FLAG_VERBOSE | G_FLAG_LOADKLD, stripe_main, 78 { | 70 G_OPT_SENTINEL 71 }, 72 "[-fv] name ..." 73 }, 74 { "dump", 0, stripe_main, G_NULL_OPTS, 75 "dump prov ..." 76 }, 77 { "label", G_FLAG_VERBOSE | G_FLAG_LOADKLD, stripe_main, 78 { |
79 { 'h', "hardcode", NULL, G_TYPE_NONE }, | 79 { 'h', "hardcode", NULL, G_TYPE_BOOL }, |
80 { 's', "stripesize", &default_stripesize, G_TYPE_NUMBER }, 81 G_OPT_SENTINEL 82 }, 83 "[-hv] [-s stripesize] name prov prov ..." 84 }, 85 { "stop", G_FLAG_VERBOSE, NULL, 86 { | 80 { 's', "stripesize", &default_stripesize, G_TYPE_NUMBER }, 81 G_OPT_SENTINEL 82 }, 83 "[-hv] [-s stripesize] name prov prov ..." 84 }, 85 { "stop", G_FLAG_VERBOSE, NULL, 86 { |
87 { 'f', "force", NULL, G_TYPE_NONE }, | 87 { 'f', "force", NULL, G_TYPE_BOOL }, |
88 G_OPT_SENTINEL 89 }, 90 "[-fv] name ..." 91 }, 92 G_CMD_SENTINEL 93}; 94 95static int verbose = 0; --- 190 unchanged lines hidden --- | 88 G_OPT_SENTINEL 89 }, 90 "[-fv] name ..." 91 }, 92 G_CMD_SENTINEL 93}; 94 95static int verbose = 0; --- 190 unchanged lines hidden --- |