]> git.proxmox.com Git - mirror_lxc.git/blob - src/lxc/storage/nbd.h
tree-wide: fix config.h inclusion
[mirror_lxc.git] / src / lxc / storage / nbd.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2
3 #ifndef __LXC_NBD_H
4 #define __LXC_NBD_H
5
6 #include "config.h"
7
8 #include <stdbool.h>
9 #include <stdint.h>
10
11 #include "compiler.h"
12
13 struct lxc_storage;
14
15 struct bdev_specs;
16
17 struct lxc_conf;
18
19 __hidden extern int nbd_clonepaths(struct lxc_storage *orig, struct lxc_storage *new,
20 const char *oldname, const char *cname, const char *oldpath,
21 const char *lxcpath, int snap, uint64_t newsize,
22 struct lxc_conf *conf);
23 __hidden extern int nbd_create(struct lxc_storage *bdev, const char *dest, const char *n,
24 struct bdev_specs *specs, const struct lxc_conf *conf);
25 __hidden extern int nbd_destroy(struct lxc_storage *orig);
26 __hidden extern bool nbd_detect(const char *path);
27 __hidden extern int nbd_mount(struct lxc_storage *bdev);
28 __hidden extern int nbd_umount(struct lxc_storage *bdev);
29 __hidden extern bool attach_nbd(char *src, struct lxc_conf *conf);
30 __hidden extern void detach_nbd_idx(int idx);
31 __hidden extern bool requires_nbd(const char *path);
32
33 #endif /* __LXC_NBD_H */