Revert "lvm: non-functional changes"

This reverts commit 7a8d7de2. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 69dd1636
...@@ -49,12 +49,21 @@ lxc_log_define(lxclvm, lxc); ...@@ -49,12 +49,21 @@ lxc_log_define(lxclvm, lxc);
extern char *dir_new_path(char *src, const char *oldname, const char *name, extern char *dir_new_path(char *src, const char *oldname, const char *name,
const char *oldpath, const char *lxcpath); 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 * LVM ops
* 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)
/*
* 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; int ret, pid, len;
char sz[24], *pathdup, *vg, *lv, *tp = NULL; char sz[24], *pathdup, *vg, *lv, *tp = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment