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
65fbbb0a
Commit
65fbbb0a
authored
May 20, 2013
by
Christian Seiler
Committed by
Serge Hallyn
May 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move declarations of some constants to where they are needed.
Signed-off-by:
Christian Seiler
<
christian@iwakd.de
>
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
c797a220
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
24 deletions
+26
-24
bdev.h
src/lxc/bdev.h
+26
-0
conf.c
src/lxc/conf.c
+0
-24
No files found.
src/lxc/bdev.h
View file @
65fbbb0a
...
@@ -54,4 +54,30 @@ struct bdev *bdev_copy(const char *src, const char *oldname, const char *cname,
...
@@ -54,4 +54,30 @@ struct bdev *bdev_copy(const char *src, const char *oldname, const char *cname,
const
char
*
oldpath
,
const
char
*
lxcpath
,
const
char
*
bdevtype
,
const
char
*
oldpath
,
const
char
*
lxcpath
,
const
char
*
bdevtype
,
int
snap
,
const
char
*
bdevdata
,
unsigned
long
newsize
);
int
snap
,
const
char
*
bdevdata
,
unsigned
long
newsize
);
void
bdev_put
(
struct
bdev
*
bdev
);
void
bdev_put
(
struct
bdev
*
bdev
);
/* define constants if the kernel/glibc headers don't define them */
#ifndef MS_DIRSYNC
#define MS_DIRSYNC 128
#endif
#ifndef MS_REC
#define MS_REC 16384
#endif
#ifndef MNT_DETACH
#define MNT_DETACH 2
#endif
#ifndef MS_SLAVE
#define MS_SLAVE (1<<19)
#endif
#ifndef MS_RELATIME
#define MS_RELATIME (1 << 21)
#endif
#ifndef MS_STRICTATIME
#define MS_STRICTATIME (1 << 24)
#endif
#endif
#endif
src/lxc/conf.c
View file @
65fbbb0a
...
@@ -93,30 +93,6 @@ lxc_log_define(lxc_conf, lxc);
...
@@ -93,30 +93,6 @@ lxc_log_define(lxc_conf, lxc);
#define MAXMTULEN 16
#define MAXMTULEN 16
#define MAXLINELEN 128
#define MAXLINELEN 128
#ifndef MS_DIRSYNC
#define MS_DIRSYNC 128
#endif
#ifndef MS_REC
#define MS_REC 16384
#endif
#ifndef MNT_DETACH
#define MNT_DETACH 2
#endif
#ifndef MS_SLAVE
#define MS_SLAVE (1<<19)
#endif
#ifndef MS_RELATIME
#define MS_RELATIME (1 << 21)
#endif
#ifndef MS_STRICTATIME
#define MS_STRICTATIME (1 << 24)
#endif
#if HAVE_SYS_CAPABILITY_H
#if HAVE_SYS_CAPABILITY_H
#ifndef CAP_SETFCAP
#ifndef CAP_SETFCAP
#define CAP_SETFCAP 31
#define CAP_SETFCAP 31
...
...
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