Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zvol.h
Show All 30 Lines | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" { | extern "C" { | ||||
#endif | #endif | ||||
#define ZVOL_OBJ 1ULL | #define ZVOL_OBJ 1ULL | ||||
#define ZVOL_ZAP_OBJ 2ULL | #define ZVOL_ZAP_OBJ 2ULL | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
extern int zvol_check_open(const char *); | |||||
extern int zvol_check_volsize(uint64_t volsize, uint64_t blocksize); | extern int zvol_check_volsize(uint64_t volsize, uint64_t blocksize); | ||||
extern int zvol_check_volblocksize(uint64_t volblocksize); | extern int zvol_check_volblocksize(uint64_t volblocksize); | ||||
extern int zvol_get_stats(objset_t *os, nvlist_t *nv); | extern int zvol_get_stats(objset_t *os, nvlist_t *nv); | ||||
extern void zvol_create_cb(objset_t *os, void *arg, cred_t *cr, dmu_tx_t *tx); | extern void zvol_create_cb(objset_t *os, void *arg, cred_t *cr, dmu_tx_t *tx); | ||||
extern int zvol_create_minor(const char *); | extern int zvol_create_minor(const char *); | ||||
extern int zvol_remove_minor(const char *); | extern int zvol_remove_minor(const char *); | ||||
extern void zvol_remove_minors(const char *); | extern void zvol_remove_minors(const char *); | ||||
extern int zvol_set_volsize(const char *, uint64_t); | extern int zvol_set_volsize(const char *, uint64_t); | ||||
Show All 39 Lines |