g_stripe.c (129747) | g_stripe.c (131649) |
---|---|
1/*- 2 * Copyright (c) 2003 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) 2003 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/sys/geom/stripe/g_stripe.c 129747 2004-05-26 11:36:27Z pjd $"); | 28__FBSDID("$FreeBSD: head/sys/geom/stripe/g_stripe.c 131649 2004-07-05 21:16:37Z pjd $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/kernel.h> 33#include <sys/module.h> 34#include <sys/lock.h> 35#include <sys/mutex.h> 36#include <sys/bio.h> --- 817 unchanged lines hidden (view full) --- 854 if (*version != G_STRIPE_VERSION) { 855 gctl_error(req, "Userland and kernel parts are out of sync."); 856 return; 857 } 858 859 if (strcmp(verb, "create") == 0) { 860 g_stripe_ctl_create(req, mp); 861 return; | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/kernel.h> 33#include <sys/module.h> 34#include <sys/lock.h> 35#include <sys/mutex.h> 36#include <sys/bio.h> --- 817 unchanged lines hidden (view full) --- 854 if (*version != G_STRIPE_VERSION) { 855 gctl_error(req, "Userland and kernel parts are out of sync."); 856 return; 857 } 858 859 if (strcmp(verb, "create") == 0) { 860 g_stripe_ctl_create(req, mp); 861 return; |
862 } else if (strcmp(verb, "destroy") == 0) { | 862 } else if (strcmp(verb, "destroy") == 0 || 863 strcmp(verb, "stop") == 0) { |
863 g_stripe_ctl_destroy(req, mp); 864 return; 865 } 866 867 gctl_error(req, "Unknown verb."); 868} 869 870static void --- 40 unchanged lines hidden --- | 864 g_stripe_ctl_destroy(req, mp); 865 return; 866 } 867 868 gctl_error(req, "Unknown verb."); 869} 870 871static void --- 40 unchanged lines hidden --- |