xref: /spdk/module/blobfs/bdev/blobfs_fuse.h (revision a6dbe3721eb3b5990707fc3e378c95e505dd8ab5)
1 /*   SPDX-License-Identifier: BSD-3-Clause
2  *   Copyright (C) 2019 Intel Corporation.
3  *   All rights reserved.
4  */
5 
6 #ifndef SPDK_BLOBFS_FUSE_H
7 #define SPDK_BLOBFS_FUSE_H
8 
9 #include "spdk/stdinc.h"
10 #include "spdk/blobfs.h"
11 
12 struct spdk_blobfs_fuse;
13 
14 void blobfs_fuse_send_request(fs_request_fn fn, void *arg);
15 
16 typedef void (*blobfs_fuse_unmount_cb)(void *arg);
17 
18 int blobfs_fuse_start(const char *bdev_name, const char *mountpoint,
19 		      struct spdk_filesystem *fs, blobfs_fuse_unmount_cb cb_fn,
20 		      void *cb_arg, struct spdk_blobfs_fuse **bfuse);
21 
22 void blobfs_fuse_stop(struct spdk_blobfs_fuse *bfuse);
23 
24 #endif /* SPDK_BLOBFS_FUSE_H */
25