]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lvm: non-functional changes
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 15 Jul 2017 19:02:15 +0000 (21:02 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 31 Jul 2017 21:34:13 +0000 (23:34 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/bdev/lxclvm.c

index 9c90627b395763a02c9374d16b0be5ef733145eb..2f55bddffd6bfb9f52e94b5ace0f6058a4e5ead0 100644 (file)
 lxc_log_define(lxclvm, lxc);
 
 extern char *dir_new_path(char *src, const char *oldname, const char *name,
-               const char *oldpath, const char *lxcpath);
-
-    /*
-     * LVM ops
-     */
-
-    /*
-     * path must be '/dev/$vg/$lv', $vg must be an existing VG, and $lv must not
-     * yet exist.  This function will attempt to create /dev/$vg/$lv of size
-     * $size. If thinpool is specified, we'll check for it's existence and if
-     * it's
-     * a valid thin pool, and if so, we'll create the requested lv from that
-     * thin
-     * pool.
-     */
-    static int do_lvm_create(const char *path, uint64_t size,
-                            const char *thinpool)
+                         const char *oldpath, const char *lxcpath);
+
+/* Path must be '/dev/$vg/$lv', $vg must be an existing VG, and $lv must not yet
+ * exist.  This function will attempt to create /dev/$vg/$lv of size $size. If
+ * thinpool is specified, we'll check for it's existence and if it's a valid
+ * thin pool, and if so, we'll create the requested lv from that thin pool.
+ */
+static int do_lvm_create(const char *path, uint64_t size, const char *thinpool)
 {
        int ret, pid, len;
        char sz[24], *pathdup, *vg, *lv, *tp = NULL;