From: Christian Brauner Date: Sat, 15 Jul 2017 19:02:15 +0000 (+0200) Subject: lvm: non-functional changes X-Git-Tag: lxc-2.1.0~32^2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02b5e381d56df326747fe85f9d53bc7717924e8d;p=thirdparty%2Flxc.git lvm: non-functional changes Signed-off-by: Christian Brauner --- diff --git a/src/lxc/bdev/lxclvm.c b/src/lxc/bdev/lxclvm.c index 9c90627b3..2f55bddff 100644 --- a/src/lxc/bdev/lxclvm.c +++ b/src/lxc/bdev/lxclvm.c @@ -47,23 +47,14 @@ 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;