diff --git a/internal/linux/ioctls.go b/internal/linux/ioctls.go index 8e5ed30d0..130109e82 100644 --- a/internal/linux/ioctls.go +++ b/internal/linux/ioctls.go @@ -4,6 +4,9 @@ package linux #include #include #include + +#define ZFS_MAX_DATASET_NAME_LEN 256 +#define BLKZNAME _IOR(0x12, 125, char[ZFS_MAX_DATASET_NAME_LEN]) */ import "C" @@ -16,4 +19,7 @@ const ( // IoctlVhostVsockSetGuestCid matches VHOST_VSOCK_SET_GUEST_CID. IoctlVhostVsockSetGuestCid = C.VHOST_VSOCK_SET_GUEST_CID + + // IoctlBlkZname matches BLKZNAME (ZFS specific). + IoctlBlkZname = C.BLKZNAME )