geom_dev.c (109253) | geom_dev.c (109623) |
---|---|
1/*- 2 * Copyright (c) 2002 Poul-Henning Kamp 3 * Copyright (c) 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 7 * and NAI Labs, the Security Research Division of Network Associates, Inc. 8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 18 unchanged lines hidden (view full) --- 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * | 1/*- 2 * Copyright (c) 2002 Poul-Henning Kamp 3 * Copyright (c) 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 7 * and NAI Labs, the Security Research Division of Network Associates, Inc. 8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 18 unchanged lines hidden (view full) --- 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * |
35 * $FreeBSD: head/sys/geom/geom_dev.c 109253 2003-01-14 21:31:00Z phk $ | 35 * $FreeBSD: head/sys/geom/geom_dev.c 109623 2003-01-21 08:56:16Z alfred $ |
36 */ 37 38#include <sys/param.h> 39#include <sys/stdint.h> 40#include <sys/systm.h> 41#include <sys/malloc.h> 42#include <sys/kernel.h> 43#include <sys/conf.h> --- 253 unchanged lines hidden (view full) --- 297 kd.length = OFF_MAX; 298 i = sizeof kd; 299 error = g_io_getattr("GEOM::kerneldump", cp, &i, &kd); 300 if (!error) 301 dev->si_flags |= SI_DUMPDEV; 302 break; 303 304 default: | 36 */ 37 38#include <sys/param.h> 39#include <sys/stdint.h> 40#include <sys/systm.h> 41#include <sys/malloc.h> 42#include <sys/kernel.h> 43#include <sys/conf.h> --- 253 unchanged lines hidden (view full) --- 297 kd.length = OFF_MAX; 298 i = sizeof kd; 299 error = g_io_getattr("GEOM::kerneldump", cp, &i, &kd); 300 if (!error) 301 dev->si_flags |= SI_DUMPDEV; 302 break; 303 304 default: |
305 gio = g_malloc(sizeof *gio, M_WAITOK | M_ZERO); | 305 gio = g_malloc(sizeof *gio, M_ZERO); |
306 gio->cmd = cmd; 307 gio->data = data; 308 gio->fflag = fflag; 309 gio->td = td; 310 i = sizeof *gio; 311 /* 312 * We always issue ioctls as getattr since the direction of data 313 * movement in ioctl is no indication of the ioctl being a "set" --- 134 unchanged lines hidden --- | 306 gio->cmd = cmd; 307 gio->data = data; 308 gio->fflag = fflag; 309 gio->td = td; 310 i = sizeof *gio; 311 /* 312 * We always issue ioctls as getattr since the direction of data 313 * movement in ioctl is no indication of the ioctl being a "set" --- 134 unchanged lines hidden --- |