]>
Commit | Line | Data |
---|---|---|
cc73685d | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
304b4cf3 CB |
2 | |
3 | #ifndef __LXC_LOOP_H | |
4 | #define __LXC_LOOP_H | |
5 | ||
3d2ae1e2 | 6 | #include <stdbool.h> |
304b4cf3 CB |
7 | #include <stdint.h> |
8 | ||
10bc1861 | 9 | struct lxc_storage; |
304b4cf3 | 10 | |
304b4cf3 CB |
11 | struct bdev_specs; |
12 | ||
304b4cf3 CB |
13 | struct lxc_conf; |
14 | ||
10bc1861 CB |
15 | extern int loop_clonepaths(struct lxc_storage *orig, struct lxc_storage *new, |
16 | const char *oldname, const char *cname, | |
17 | const char *oldpath, const char *lxcpath, int snap, | |
18 | uint64_t newsize, struct lxc_conf *conf); | |
19 | extern int loop_create(struct lxc_storage *bdev, const char *dest, | |
20 | const char *n, struct bdev_specs *specs); | |
21 | extern int loop_destroy(struct lxc_storage *orig); | |
22 | extern bool loop_detect(const char *path); | |
23 | extern int loop_mount(struct lxc_storage *bdev); | |
24 | extern int loop_umount(struct lxc_storage *bdev); | |
304b4cf3 CB |
25 | |
26 | #endif /* __LXC_LOOP_H */ |