geom_nop.c (162142) | geom_nop.c (162868) |
---|---|
1/*- 2 * Copyright (c) 2004-2006 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-2006 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/nop/geom_nop.c 162142 2006-09-08 09:21:21Z pjd $"); | 28__FBSDID("$FreeBSD: head/sbin/geom/class/nop/geom_nop.c 162868 2006-09-30 14:40:50Z pjd $"); |
29 30#include <stdio.h> 31#include <stdint.h> 32#include <libgeom.h> 33#include <geom/nop/g_nop.h> 34 35#include "core/geom.h" 36 --- 28 unchanged lines hidden (view full) --- 65 { 'r', "rfailprob", &rfailprob, G_TYPE_NUMBER }, 66 { 'w', "wfailprob", &wfailprob, G_TYPE_NUMBER }, 67 G_OPT_SENTINEL 68 }, 69 "[-v] [-e error] [-r rfailprob] [-w wfailprob] prov ..." 70 }, 71 { "destroy", G_FLAG_VERBOSE, NULL, 72 { | 29 30#include <stdio.h> 31#include <stdint.h> 32#include <libgeom.h> 33#include <geom/nop/g_nop.h> 34 35#include "core/geom.h" 36 --- 28 unchanged lines hidden (view full) --- 65 { 'r', "rfailprob", &rfailprob, G_TYPE_NUMBER }, 66 { 'w', "wfailprob", &wfailprob, G_TYPE_NUMBER }, 67 G_OPT_SENTINEL 68 }, 69 "[-v] [-e error] [-r rfailprob] [-w wfailprob] prov ..." 70 }, 71 { "destroy", G_FLAG_VERBOSE, NULL, 72 { |
73 { 'f', "force", NULL, G_TYPE_NONE }, | 73 { 'f', "force", NULL, G_TYPE_BOOL }, |
74 G_OPT_SENTINEL 75 }, 76 "[-fv] prov ..." 77 }, 78 { "reset", G_FLAG_VERBOSE, NULL, G_NULL_OPTS, 79 "[-v] prov ..." 80 }, 81 G_CMD_SENTINEL 82}; | 74 G_OPT_SENTINEL 75 }, 76 "[-fv] prov ..." 77 }, 78 { "reset", G_FLAG_VERBOSE, NULL, G_NULL_OPTS, 79 "[-v] prov ..." 80 }, 81 G_CMD_SENTINEL 82}; |