|
FreeBSD ZFS
The Zettabyte File System
|
Virtual device vector for disks. More...
#include <sys/zfs_context.h>#include <sys/spa_impl.h>#include <sys/refcount.h>#include <sys/vdev_disk.h>#include <sys/vdev_impl.h>#include <sys/fs/zfs.h>#include <sys/zio.h>#include <sys/sunldi.h>#include <sys/efi_partition.h>#include <sys/fm/fs/zfs.h>
Go to the source code of this file.
Data Structures | |
| struct | vdev_disk_buf |
Typedefs | |
| typedef struct vdev_disk_buf | vdev_disk_buf_t |
Functions | |
| static void | vdev_disk_hold (vdev_t *vd) |
| static void | vdev_disk_rele (vdev_t *vd) |
| static uint64_t | vdev_disk_get_space (vdev_t *vd, uint64_t capacity, uint_t blksz) |
| static int | vdev_disk_open (vdev_t *vd, uint64_t *psize, uint64_t *max_psize, uint64_t *ashift) |
| static void | vdev_disk_close (vdev_t *vd) |
| int | vdev_disk_physio (ldi_handle_t vd_lh, caddr_t data, size_t size, uint64_t offset, int flags) |
| static void | vdev_disk_io_intr (buf_t *bp) |
| static void | vdev_disk_ioctl_free (zio_t *zio) |
| static void | vdev_disk_ioctl_done (void *zio_arg, int error) |
| static int | vdev_disk_io_start (zio_t *zio) |
| static void | vdev_disk_io_done (zio_t *zio) |
| int | vdev_disk_read_rootlabel (char *devpath, char *devid, nvlist_t **config) |
| Given the root disk device devid or pathname, read the label from the device, and construct a configuration nvlist. | |
Variables | |
| ldi_ident_t | zfs_li |
| static const zio_vsd_ops_t | vdev_disk_vsd_ops |
| vdev_ops_t | vdev_disk_ops |
Virtual device vector for disks.
Definition in file vdev_disk.c.
| typedef struct vdev_disk_buf vdev_disk_buf_t |
| static void vdev_disk_close | ( | vdev_t * | vd | ) | [static] |
Definition at line 349 of file vdev_disk.c.
| static uint64_t vdev_disk_get_space | ( | vdev_t * | vd, |
| uint64_t | capacity, | ||
| uint_t | blksz | ||
| ) | [static] |
Definition at line 109 of file vdev_disk.c.
| static void vdev_disk_hold | ( | vdev_t * | vd | ) | [static] |
Definition at line 50 of file vdev_disk.c.
| static void vdev_disk_io_done | ( | zio_t * | zio | ) | [static] |
Definition at line 532 of file vdev_disk.c.
| static void vdev_disk_io_intr | ( | buf_t * | bp | ) | [static] |
Definition at line 399 of file vdev_disk.c.
| static int vdev_disk_io_start | ( | zio_t * | zio | ) | [static] |
Definition at line 441 of file vdev_disk.c.
| static void vdev_disk_ioctl_done | ( | void * | zio_arg, |
| int | error | ||
| ) | [static] |
Definition at line 431 of file vdev_disk.c.
| static void vdev_disk_ioctl_free | ( | zio_t * | zio | ) | [static] |
Definition at line 420 of file vdev_disk.c.
| static int vdev_disk_open | ( | vdev_t * | vd, |
| uint64_t * | psize, | ||
| uint64_t * | max_psize, | ||
| uint64_t * | ashift | ||
| ) | [static] |
Definition at line 139 of file vdev_disk.c.
| int vdev_disk_physio | ( | ldi_handle_t | vd_lh, |
| caddr_t | data, | ||
| size_t | size, | ||
| uint64_t | offset, | ||
| int | flags | ||
| ) |
Definition at line 371 of file vdev_disk.c.
| int vdev_disk_read_rootlabel | ( | char * | devpath, |
| char * | devid, | ||
| nvlist_t ** | config | ||
| ) |
Given the root disk device devid or pathname, read the label from the device, and construct a configuration nvlist.
Definition at line 581 of file vdev_disk.c.
| static void vdev_disk_rele | ( | vdev_t * | vd | ) | [static] |
Definition at line 92 of file vdev_disk.c.
{
vdev_disk_open,
vdev_disk_close,
vdev_default_asize,
vdev_disk_io_start,
vdev_disk_io_done,
NULL,
vdev_disk_hold,
vdev_disk_rele,
VDEV_TYPE_DISK,
B_TRUE
}
Definition at line 563 of file vdev_disk.c.
const zio_vsd_ops_t vdev_disk_vsd_ops [static] |
Definition at line 425 of file vdev_disk.c.
| ldi_ident_t zfs_li |
1.7.3