From: S.Çağlar Onur Date: Wed, 21 May 2014 00:50:51 +0000 (-0400) Subject: move bdev_specs struct into lxccontainer.h to allow API users to use it X-Git-Tag: lxc-1.1.0.alpha1~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f49ad558511e3c0d68ed9d6cffcc3741748223a3;p=thirdparty%2Flxc.git move bdev_specs struct into lxccontainer.h to allow API users to use it Signed-off-by: S.Çağlar Onur Acked-by: Serge Hallyn --- diff --git a/src/lxc/bdev.h b/src/lxc/bdev.h index 0893c1143..9d03b102b 100644 --- a/src/lxc/bdev.h +++ b/src/lxc/bdev.h @@ -33,23 +33,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); diff --git a/src/lxc/lxccontainer.h b/src/lxc/lxccontainer.h index ba15ab78a..1d0628af8 100644 --- a/src/lxc/lxccontainer.h +++ b/src/lxc/lxccontainer.h @@ -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. *