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
35d0ebf1
Commit
35d0ebf1
authored
May 20, 2014
by
S.Çağlar Onur
Committed by
Stéphane Graber
May 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move bdev_specs struct into lxccontainer.h to allow API users to use it
Signed-off-by:
S.Çağlar Onur
<
caglar@10ur.org
>
Acked-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
e93bf898
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
17 deletions
+18
-17
bdev.h
src/lxc/bdev.h
+0
-17
lxccontainer.h
src/lxc/lxccontainer.h
+18
-0
No files found.
src/lxc/bdev.h
View file @
35d0ebf1
...
@@ -34,23 +34,6 @@
...
@@ -34,23 +34,6 @@
struct
bdev
;
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
{
struct
bdev_ops
{
/* detect whether path is of this bdev type */
/* detect whether path is of this bdev type */
int
(
*
detect
)(
const
char
*
path
);
int
(
*
detect
)(
const
char
*
path
);
...
...
src/lxc/lxccontainer.h
View file @
35d0ebf1
...
@@ -758,6 +758,24 @@ struct lxc_snapshot {
...
@@ -758,6 +758,24 @@ struct lxc_snapshot {
void
(
*
free
)(
struct
lxc_snapshot
*
s
);
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.
* \brief Create a new container.
*
*
...
...
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