Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/include/sys/dmu.h
Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | |||||
#define DMU_OT_IS_METADATA(ot) (((ot) & DMU_OT_NEWTYPE) ? \ | #define DMU_OT_IS_METADATA(ot) (((ot) & DMU_OT_NEWTYPE) ? \ | ||||
((ot) & DMU_OT_METADATA) : \ | ((ot) & DMU_OT_METADATA) : \ | ||||
DMU_OT_IS_METADATA_IMPL(ot)) | DMU_OT_IS_METADATA_IMPL(ot)) | ||||
#define DMU_OT_IS_DDT(ot) \ | #define DMU_OT_IS_DDT(ot) \ | ||||
((ot) == DMU_OT_DDT_ZAP) | ((ot) == DMU_OT_DDT_ZAP) | ||||
#define DMU_OT_IS_ZIL(ot) \ | |||||
((ot) == DMU_OT_INTENT_LOG) | |||||
/* Note: ztest uses DMU_OT_UINT64_OTHER as a proxy for file blocks */ | /* Note: ztest uses DMU_OT_UINT64_OTHER as a proxy for file blocks */ | ||||
#define DMU_OT_IS_FILE(ot) \ | #define DMU_OT_IS_FILE(ot) \ | ||||
((ot) == DMU_OT_PLAIN_FILE_CONTENTS || (ot) == DMU_OT_UINT64_OTHER) | ((ot) == DMU_OT_PLAIN_FILE_CONTENTS || (ot) == DMU_OT_UINT64_OTHER) | ||||
#define DMU_OT_IS_ENCRYPTED(ot) (((ot) & DMU_OT_NEWTYPE) ? \ | #define DMU_OT_IS_ENCRYPTED(ot) (((ot) & DMU_OT_NEWTYPE) ? \ | ||||
((ot) & DMU_OT_ENCRYPTED) : \ | ((ot) & DMU_OT_ENCRYPTED) : \ | ||||
DMU_OT_IS_ENCRYPTED_IMPL(ot)) | DMU_OT_IS_ENCRYPTED_IMPL(ot)) | ||||
▲ Show 20 Lines • Show All 686 Lines • ▼ Show 20 Lines | int dmu_read_by_dnode(dnode_t *dn, uint64_t offset, uint64_t size, void *buf, | ||||
uint32_t flags); | uint32_t flags); | ||||
void dmu_write(objset_t *os, uint64_t object, uint64_t offset, uint64_t size, | void dmu_write(objset_t *os, uint64_t object, uint64_t offset, uint64_t size, | ||||
const void *buf, dmu_tx_t *tx); | const void *buf, dmu_tx_t *tx); | ||||
void dmu_write_by_dnode(dnode_t *dn, uint64_t offset, uint64_t size, | void dmu_write_by_dnode(dnode_t *dn, uint64_t offset, uint64_t size, | ||||
const void *buf, dmu_tx_t *tx); | const void *buf, dmu_tx_t *tx); | ||||
void dmu_prealloc(objset_t *os, uint64_t object, uint64_t offset, uint64_t size, | void dmu_prealloc(objset_t *os, uint64_t object, uint64_t offset, uint64_t size, | ||||
dmu_tx_t *tx); | dmu_tx_t *tx); | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
int dmu_read_uio(objset_t *os, uint64_t object, struct uio *uio, uint64_t size); | int dmu_read_uio(objset_t *os, uint64_t object, zfs_uio_t *uio, uint64_t size); | ||||
int dmu_read_uio_dbuf(dmu_buf_t *zdb, struct uio *uio, uint64_t size); | int dmu_read_uio_dbuf(dmu_buf_t *zdb, zfs_uio_t *uio, uint64_t size); | ||||
int dmu_read_uio_dnode(dnode_t *dn, struct uio *uio, uint64_t size); | int dmu_read_uio_dnode(dnode_t *dn, zfs_uio_t *uio, uint64_t size); | ||||
int dmu_write_uio(objset_t *os, uint64_t object, struct uio *uio, uint64_t size, | int dmu_write_uio(objset_t *os, uint64_t object, zfs_uio_t *uio, uint64_t size, | ||||
dmu_tx_t *tx); | dmu_tx_t *tx); | ||||
int dmu_write_uio_dbuf(dmu_buf_t *zdb, struct uio *uio, uint64_t size, | int dmu_write_uio_dbuf(dmu_buf_t *zdb, zfs_uio_t *uio, uint64_t size, | ||||
dmu_tx_t *tx); | dmu_tx_t *tx); | ||||
int dmu_write_uio_dnode(dnode_t *dn, struct uio *uio, uint64_t size, | int dmu_write_uio_dnode(dnode_t *dn, zfs_uio_t *uio, uint64_t size, | ||||
dmu_tx_t *tx); | dmu_tx_t *tx); | ||||
#endif | #endif | ||||
struct arc_buf *dmu_request_arcbuf(dmu_buf_t *handle, int size); | struct arc_buf *dmu_request_arcbuf(dmu_buf_t *handle, int size); | ||||
void dmu_return_arcbuf(struct arc_buf *buf); | void dmu_return_arcbuf(struct arc_buf *buf); | ||||
int dmu_assign_arcbuf_by_dnode(dnode_t *dn, uint64_t offset, | int dmu_assign_arcbuf_by_dnode(dnode_t *dn, uint64_t offset, | ||||
struct arc_buf *buf, dmu_tx_t *tx); | struct arc_buf *buf, dmu_tx_t *tx); | ||||
int dmu_assign_arcbuf_by_dbuf(dmu_buf_t *handle, uint64_t offset, | int dmu_assign_arcbuf_by_dbuf(dmu_buf_t *handle, uint64_t offset, | ||||
struct arc_buf *buf, dmu_tx_t *tx); | struct arc_buf *buf, dmu_tx_t *tx); | ||||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |