]> git.proxmox.com Git - mirror_zfs.git/blob - include/sys/vdev_disk.h
d5a1889d2a26f31bed58b9095b63e03613c77746
[mirror_zfs.git] / include / sys / vdev_disk.h
1 /*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright (C) 2008-2010 Lawrence Livermore National Security, LLC.
23 * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
24 * Written by Brian Behlendorf <behlendorf1@llnl.gov>.
25 * LLNL-CODE-403049.
26 */
27
28 #ifndef _SYS_VDEV_DISK_H
29 #define _SYS_VDEV_DISK_H
30
31 #ifdef _KERNEL
32 #include <sys/vdev.h>
33
34 typedef struct vdev_disk {
35 ddi_devid_t vd_devid;
36 char *vd_minor;
37 struct block_device *vd_bdev;
38 } vdev_disk_t;
39
40 extern int vdev_disk_physio(struct block_device *, caddr_t,
41 size_t, uint64_t, int);
42 extern int vdev_disk_read_rootlabel(char *, char *, nvlist_t **);
43
44 #endif /* _KERNEL */
45 #endif /* _SYS_VDEV_DISK_H */