]> git.proxmox.com Git - mirror_lxc.git/blame - src/lxc/storage/loop.h
Merge pull request #3235 from xinhua9569/master
[mirror_lxc.git] / src / lxc / storage / loop.h
CommitLineData
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 9struct lxc_storage;
304b4cf3 10
304b4cf3
CB
11struct bdev_specs;
12
304b4cf3
CB
13struct lxc_conf;
14
10bc1861
CB
15extern 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);
19extern int loop_create(struct lxc_storage *bdev, const char *dest,
20 const char *n, struct bdev_specs *specs);
21extern int loop_destroy(struct lxc_storage *orig);
22extern bool loop_detect(const char *path);
23extern int loop_mount(struct lxc_storage *bdev);
24extern int loop_umount(struct lxc_storage *bdev);
304b4cf3
CB
25
26#endif /* __LXC_LOOP_H */