Operations on blobfs whose backing device is spdk_bdev.
More...
Operations on blobfs whose backing device is spdk_bdev.
◆ spdk_blobfs_bdev_op_complete
typedef void(* spdk_blobfs_bdev_op_complete) (void *cb_arg, int fserrno) |
blobfs on bdev operation completion callback.
- Parameters
-
cb_arg | Callback argument. |
fserrno | 0 if it completed successfully, or negative errno if it failed. |
◆ spdk_blobfs_bdev_create()
Create a blobfs on the given device.
- Parameters
-
bdev_name | Name of block device. |
cluster_sz | Size of cluster in bytes. Must be multiple of 4KiB page size. |
cb_fn | Called when the creation is complete. |
cb_arg | Argument passed to function cb_fn. |
◆ spdk_blobfs_bdev_detect()
Detect whether blobfs exists on the given device.
- Parameters
-
bdev_name | Name of block device. |
cb_fn | Called when the detecting is complete. fserrno is -EILSEQ if no blobfs exists. |
cb_arg | Argument passed to function cb_fn. |
◆ spdk_blobfs_bdev_mount()
Mount a blobfs on given device to a host path by FUSE.
A new thread is created dedicatedly for one mountpoint to handle FUSE request by blobfs API.
- Parameters
-
bdev_name | Name of block device. |
mountpoint | Host path to mount blobfs. |
cb_fn | Called when mount operation is complete. fserrno is -EILSEQ if no blobfs exists. |
cb_arg | Argument passed to function cb_fn. |