Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
9fd06d76
Unverified
Commit
9fd06d76
authored
Aug 15, 2017
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "lvm: non-functional changes"
This reverts commit
7a8d7de2
. Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
69dd1636
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
lxclvm.c
src/lxc/bdev/lxclvm.c
+14
-5
No files found.
src/lxc/bdev/lxclvm.c
View file @
9fd06d76
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment