]> git.proxmox.com Git - mirror_lxc.git/blob - src/lxc/storage/dir.h
c7661f5b0df594453192b3c658d5cae878ee6827
[mirror_lxc.git] / src / lxc / storage / dir.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2
3 #ifndef __LXC_DIR_H
4 #define __LXC_DIR_H
5
6 #include <stdbool.h>
7 #include <stdint.h>
8
9 struct lxc_storage;
10
11 struct bdev_specs;
12
13 struct lxc_conf;
14
15 extern int dir_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 dir_create(struct lxc_storage *bdev, const char *dest, const char *n,
20 struct bdev_specs *specs);
21 extern int dir_destroy(struct lxc_storage *orig);
22 extern bool dir_detect(const char *path);
23 extern int dir_mount(struct lxc_storage *bdev);
24 extern int dir_umount(struct lxc_storage *bdev);
25
26 #endif /* __LXC_DIR_H */