]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
move bdev_specs struct into lxccontainer.h to allow API users to use it
authorS.Çağlar Onur <caglar@10ur.org>
Wed, 21 May 2014 00:50:51 +0000 (20:50 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 21 May 2014 19:23:40 +0000 (15:23 -0400)
Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/bdev.h
src/lxc/lxccontainer.h

index 0893c1143ac472f4220b59b114eecbc9fdcb62ad..9d03b102b3a44b9c22d333cc77dc72d1a139284d 100644 (file)
 
 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);
index ba15ab78a29e5323c606315b5f5c5be753fc2692..1d0628af8397e1ee716f5d3fde28f571236555f7 100644 (file)
@@ -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.
  *