Deleted Added
full compact
geom_sched.c (212547) geom_sched.c (212554)
1/*-
2 * Copyright (c) 2009 Fabio Checconi
3 * Copyright (c) 2010 Luigi Rizzo, Universita` di Pisa
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 13 unchanged lines hidden (view full) ---

22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28/*
29 * $Id$
1/*-
2 * Copyright (c) 2009 Fabio Checconi
3 * Copyright (c) 2010 Luigi Rizzo, Universita` di Pisa
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 13 unchanged lines hidden (view full) ---

22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28/*
29 * $Id$
30 * $FreeBSD: head/sbin/geom/class/sched/geom_sched.c 212547 2010-09-13 08:56:07Z pjd $
30 * $FreeBSD: head/sbin/geom/class/sched/geom_sched.c 212554 2010-09-13 13:48:18Z pjd $
31 *
32 * This file implements the userspace library used by the 'geom'
33 * command to load and manipulate disk schedulers.
34 */
35
36#include <sys/cdefs.h>
37#include <sys/param.h>
38#include <sys/linker.h>

--- 16 unchanged lines hidden (view full) ---

55 * Right now only the scheduler name is used.
56 */
57#define GSCHED_ALGO "rr" /* default scheduler */
58
59/*
60 * Adapt to differences in geom library.
61 * in V1 struct g_command misses gc_argname, eld, and G_BOOL is undefined
62 */
31 *
32 * This file implements the userspace library used by the 'geom'
33 * command to load and manipulate disk schedulers.
34 */
35
36#include <sys/cdefs.h>
37#include <sys/param.h>
38#include <sys/linker.h>

--- 16 unchanged lines hidden (view full) ---

55 * Right now only the scheduler name is used.
56 */
57#define GSCHED_ALGO "rr" /* default scheduler */
58
59/*
60 * Adapt to differences in geom library.
61 * in V1 struct g_command misses gc_argname, eld, and G_BOOL is undefined
62 */
63#if G_LIB_VERSION == 1
64#define G_ARGNAME
63#if G_LIB_VERSION <= 1
65#define G_TYPE_BOOL G_TYPE_NUMBER
64#define G_TYPE_BOOL G_TYPE_NUMBER
66#else
65#endif
66#if G_LIB_VERSION >= 3 && G_LIB_VERSION <= 4
67#define G_ARGNAME NULL,
67#define G_ARGNAME NULL,
68#else
69#define G_ARGNAME
68#endif
69
70static void
71gcmd_createinsert(struct gctl_req *req, unsigned flags __unused)
72{
73 const char *reqalgo;
74 char name[64];
75

--- 49 unchanged lines hidden ---
70#endif
71
72static void
73gcmd_createinsert(struct gctl_req *req, unsigned flags __unused)
74{
75 const char *reqalgo;
76 char name[64];
77

--- 49 unchanged lines hidden ---