]>
git.proxmox.com Git - mirror_lxc.git/blob - src/lxc/storage/nbd.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
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
);
33 #endif /* __LXC_NBD_H */