Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/vdev.h
Show First 20 Lines • Show All 161 Lines • ▼ Show 20 Lines | typedef enum { | ||||
VDEV_LABEL_SPARE, /* add a new hot spare */ | VDEV_LABEL_SPARE, /* add a new hot spare */ | ||||
VDEV_LABEL_REMOVE, /* remove an existing device */ | VDEV_LABEL_REMOVE, /* remove an existing device */ | ||||
VDEV_LABEL_L2CACHE, /* add an L2ARC cache device */ | VDEV_LABEL_L2CACHE, /* add an L2ARC cache device */ | ||||
VDEV_LABEL_SPLIT /* generating new label for split-off dev */ | VDEV_LABEL_SPLIT /* generating new label for split-off dev */ | ||||
} vdev_labeltype_t; | } vdev_labeltype_t; | ||||
extern int vdev_label_init(vdev_t *vd, uint64_t txg, vdev_labeltype_t reason); | extern int vdev_label_init(vdev_t *vd, uint64_t txg, vdev_labeltype_t reason); | ||||
extern int vdev_label_write_pad2(vdev_t *vd, const char *buf, size_t size); | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
} | } | ||||
#endif | #endif | ||||
#endif /* _SYS_VDEV_H */ | #endif /* _SYS_VDEV_H */ |