Commit 35d0ebf1 by S.Çağlar Onur Committed by Stéphane Graber

move bdev_specs struct into lxccontainer.h to allow API users to use it

parent e93bf898
......@@ -34,23 +34,6 @@
struct bdev;
/*
* specifications for how to create a new backing store
*/
struct bdev_specs {
char *fstype;
uint64_t fssize; // fs size in bytes
struct {
char *zfsroot;
} zfs;
struct {
char *vg;
char *lv;
char *thinpool; // lvm thin pool to use, if any
} lvm;
char *dir;
};
struct bdev_ops {
/* detect whether path is of this bdev type */
int (*detect)(const char *path);
......
......@@ -758,6 +758,24 @@ struct lxc_snapshot {
void (*free)(struct lxc_snapshot *s);
};
/*!
* \brief Specifications for how to create a new backing store
*/
struct bdev_specs {
char *fstype; /*!< Filesystem type */
uint64_t fssize; /*!< Filesystem size in bytes */
struct {
char *zfsroot; /*!< ZFS root path */
} zfs;
struct {
char *vg; /*!< LVM Volume Group name */
char *lv; /*!< LVM Logical Volume name */
char *thinpool; /*!< LVM thin pool to use, if any */
} lvm;
char *dir; /*!< Directory path */
};
/*!
* \brief Create a new container.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment