g_mirror.c (3d7cfb15) | g_mirror.c (cb08c2cc) |
---|---|
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 --- 31 unchanged lines hidden (view full) --- 40#include <sys/eventhandler.h> 41#include <vm/uma.h> 42#include <geom/geom.h> 43#include <sys/proc.h> 44#include <sys/kthread.h> 45#include <sys/sched.h> 46#include <geom/mirror/g_mirror.h> 47 | 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 --- 31 unchanged lines hidden (view full) --- 40#include <sys/eventhandler.h> 41#include <vm/uma.h> 42#include <geom/geom.h> 43#include <sys/proc.h> 44#include <sys/kthread.h> 45#include <sys/sched.h> 46#include <geom/mirror/g_mirror.h> 47 |
48FEATURE(geom_mirror, "GEOM mirroring support"); |
|
48 49static MALLOC_DEFINE(M_MIRROR, "mirror_data", "GEOM_MIRROR Data"); 50 51SYSCTL_DECL(_kern_geom); 52SYSCTL_NODE(_kern_geom, OID_AUTO, mirror, CTLFLAG_RW, 0, "GEOM_MIRROR stuff"); 53u_int g_mirror_debug = 0; 54TUNABLE_INT("kern.geom.mirror.debug", &g_mirror_debug); 55SYSCTL_UINT(_kern_geom_mirror, OID_AUTO, debug, CTLFLAG_RW, &g_mirror_debug, 0, --- 3197 unchanged lines hidden --- | 49 50static MALLOC_DEFINE(M_MIRROR, "mirror_data", "GEOM_MIRROR Data"); 51 52SYSCTL_DECL(_kern_geom); 53SYSCTL_NODE(_kern_geom, OID_AUTO, mirror, CTLFLAG_RW, 0, "GEOM_MIRROR stuff"); 54u_int g_mirror_debug = 0; 55TUNABLE_INT("kern.geom.mirror.debug", &g_mirror_debug); 56SYSCTL_UINT(_kern_geom_mirror, OID_AUTO, debug, CTLFLAG_RW, &g_mirror_debug, 0, --- 3197 unchanged lines hidden --- |