Skip to content

Commit

Permalink
move bdev_specs struct into lxccontainer.h to allow API users to use it
Browse files Browse the repository at this point in the history
Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information
caglar10ur authored and stgraber committed May 21, 2014
1 parent e93bf89 commit 35d0ebf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/lxc/bdev.h
Expand Up @@ -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);
Expand Down
18 changes: 18 additions & 0 deletions src/lxc/lxccontainer.h
Expand Up @@ -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.
*
Expand Down

0 comments on commit 35d0ebf

Please sign in to comment.