Changeset View
Changeset View
Standalone View
Standalone View
head/sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h
Show All 15 Lines | |||||
* fields enclosed by brackets "[]" replaced with your own identifying | * fields enclosed by brackets "[]" replaced with your own identifying | ||||
* information: Portions Copyright [yyyy] [name of copyright owner] | * information: Portions Copyright [yyyy] [name of copyright owner] | ||||
* | * | ||||
* CDDL HEADER END | * CDDL HEADER END | ||||
*/ | */ | ||||
/* | /* | ||||
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. | * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. | ||||
* Copyright (c) 2011, 2016 by Delphix. All rights reserved. | * Copyright (c) 2011, 2018 by Delphix. All rights reserved. | ||||
* Copyright 2011 Nexenta Systems, Inc. All rights reserved. | * Copyright 2011 Nexenta Systems, Inc. All rights reserved. | ||||
* Copyright (c) 2012, Martin Matuska <mm@FreeBSD.org>. All rights reserved. | * Copyright (c) 2012, Martin Matuska <mm@FreeBSD.org>. All rights reserved. | ||||
* Copyright (c) 2014 Integros [integros.com] | * Copyright (c) 2014 Integros [integros.com] | ||||
* Copyright 2017 Joyent, Inc. | * Copyright 2017 Joyent, Inc. | ||||
* Copyright (c) 2019 Datto Inc. | * Copyright (c) 2019 Datto Inc. | ||||
* Copyright (c) 2017, Intel Corporation. | * Copyright (c) 2017, Intel Corporation. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 925 Lines • ▼ Show 20 Lines | |||||
#define ZVOL_FULL_DEV_DIR ZVOL_DIR "/dsk/" | #define ZVOL_FULL_DEV_DIR ZVOL_DIR "/dsk/" | ||||
#define ZVOL_FULL_RDEV_DIR ZVOL_DIR "/rdsk/" | #define ZVOL_FULL_RDEV_DIR ZVOL_DIR "/rdsk/" | ||||
#define ZVOL_PROP_NAME "name" | #define ZVOL_PROP_NAME "name" | ||||
#define ZVOL_DEFAULT_BLOCKSIZE 8192 | #define ZVOL_DEFAULT_BLOCKSIZE 8192 | ||||
/* | /* | ||||
* /dev/zfs ioctl numbers. | * /dev/zfs ioctl numbers. | ||||
* | |||||
* These numbers cannot change over time. New ioctl numbers must be appended. | |||||
*/ | */ | ||||
typedef enum zfs_ioc { | typedef enum zfs_ioc { | ||||
/* | |||||
* Core features - 81/128 numbers reserved. | |||||
*/ | |||||
#ifdef __FreeBSD__ | |||||
ZFS_IOC_FIRST = 0, | ZFS_IOC_FIRST = 0, | ||||
#else | |||||
ZFS_IOC_FIRST = ('Z' << 8), | |||||
#endif | |||||
ZFS_IOC = ZFS_IOC_FIRST, | |||||
ZFS_IOC_POOL_CREATE = ZFS_IOC_FIRST, | ZFS_IOC_POOL_CREATE = ZFS_IOC_FIRST, | ||||
ZFS_IOC_POOL_DESTROY, | ZFS_IOC_POOL_DESTROY, | ||||
ZFS_IOC_POOL_IMPORT, | ZFS_IOC_POOL_IMPORT, | ||||
ZFS_IOC_POOL_EXPORT, | ZFS_IOC_POOL_EXPORT, | ||||
ZFS_IOC_POOL_CONFIGS, | ZFS_IOC_POOL_CONFIGS, | ||||
ZFS_IOC_POOL_STATS, | ZFS_IOC_POOL_STATS, | ||||
ZFS_IOC_POOL_TRYIMPORT, | ZFS_IOC_POOL_TRYIMPORT, | ||||
ZFS_IOC_POOL_SCAN, | ZFS_IOC_POOL_SCAN, | ||||
▲ Show 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* ZFS-specific error codes used for returning descriptive errors | * ZFS-specific error codes used for returning descriptive errors | ||||
* to the userland through zfs ioctls. | * to the userland through zfs ioctls. | ||||
* | * | ||||
* The enum implicitly includes all the error codes from errno.h. | * The enum implicitly includes all the error codes from errno.h. | ||||
* New code should use and extend this enum for errors that are | * New code should use and extend this enum for errors that are | ||||
* not described precisely by generic errno codes. | * not described precisely by generic errno codes. | ||||
* | |||||
* These numbers should not change over time. New entries should be appended. | |||||
*/ | */ | ||||
typedef enum { | typedef enum { | ||||
ZFS_ERR_CHECKPOINT_EXISTS = 1024, | ZFS_ERR_CHECKPOINT_EXISTS = 1024, | ||||
ZFS_ERR_DISCARDING_CHECKPOINT, | ZFS_ERR_DISCARDING_CHECKPOINT, | ||||
ZFS_ERR_NO_CHECKPOINT, | ZFS_ERR_NO_CHECKPOINT, | ||||
ZFS_ERR_DEVRM_IN_PROGRESS, | ZFS_ERR_DEVRM_IN_PROGRESS, | ||||
ZFS_ERR_VDEV_TOO_BIG, | ZFS_ERR_VDEV_TOO_BIG, | ||||
ZFS_ERR_IOC_CMD_UNAVAIL, | |||||
ZFS_ERR_IOC_ARG_UNAVAIL, | |||||
ZFS_ERR_IOC_ARG_REQUIRED, | |||||
ZFS_ERR_IOC_ARG_BADTYPE, | |||||
ZFS_ERR_WRONG_PARENT, | ZFS_ERR_WRONG_PARENT, | ||||
} zfs_errno_t; | } zfs_errno_t; | ||||
/* | /* | ||||
* Internal SPA load state. Used by FMA diagnosis engine. | * Internal SPA load state. Used by FMA diagnosis engine. | ||||
*/ | */ | ||||
typedef enum { | typedef enum { | ||||
SPA_LOAD_NONE, /* no load in progress */ | SPA_LOAD_NONE, /* no load in progress */ | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |