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
787dc17c
Commit
787dc17c
authored
Oct 07, 2009
by
Daniel Lezcano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove dead state code
Remove old dead code. Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
46968ea3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
+0
-31
state.c
src/lxc/state.c
+0
-31
No files found.
src/lxc/state.c
View file @
787dc17c
...
...
@@ -69,37 +69,6 @@ int lxc_rmstate(const char *name)
return
0
;
}
lxc_state_t
__lxc_getstate
(
const
char
*
name
)
{
int
fd
,
err
;
char
file
[
MAXPATHLEN
];
snprintf
(
file
,
MAXPATHLEN
,
LXCPATH
"/%s/state"
,
name
);
fd
=
open
(
file
,
O_RDONLY
);
if
(
fd
<
0
)
{
SYSERROR
(
"failed to open %s"
,
file
);
return
-
1
;
}
if
(
flock
(
fd
,
LOCK_SH
))
{
SYSERROR
(
"failed to take the lock to %s"
,
file
);
close
(
fd
);
return
-
1
;
}
err
=
read
(
fd
,
file
,
strlen
(
file
));
if
(
err
<
0
)
{
SYSERROR
(
"failed to read file %s"
,
file
);
close
(
fd
);
return
-
1
;
}
file
[
err
]
=
'\0'
;
close
(
fd
);
return
lxc_str2state
(
file
);
}
static
int
freezer_state
(
const
char
*
name
)
{
char
freezer
[
MAXPATHLEN
];
...
...
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