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
36902d07
Unverified
Commit
36902d07
authored
Apr 28, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage/dir: retrieve proper source path later
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
6cf21d91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dir.c
src/lxc/storage/dir.c
+2
-2
No files found.
src/lxc/storage/dir.c
View file @
36902d07
...
@@ -142,11 +142,11 @@ int dir_mount(struct lxc_storage *bdev)
...
@@ -142,11 +142,11 @@ int dir_mount(struct lxc_storage *bdev)
if
(
is_empty_string
(
bdev
->
dest
))
if
(
is_empty_string
(
bdev
->
dest
))
return
syserror_set
(
-
EINVAL
,
"Missing target mountpoint"
);
return
syserror_set
(
-
EINVAL
,
"Missing target mountpoint"
);
src
=
lxc_storage_get_path
(
bdev
->
src
,
bdev
->
type
);
if
(
rootfs
->
dfd_idmapped
>=
0
&&
!
can_use_bind_mounts
())
if
(
rootfs
->
dfd_idmapped
>=
0
&&
!
can_use_bind_mounts
())
return
syserror_set
(
-
EOPNOTSUPP
,
"Idmapped mount requested but kernel doesn't support new mount API"
);
return
syserror_set
(
-
EOPNOTSUPP
,
"Idmapped mount requested but kernel doesn't support new mount API"
);
src
=
lxc_storage_get_path
(
bdev
->
src
,
bdev
->
type
);
if
(
can_use_bind_mounts
())
{
if
(
can_use_bind_mounts
())
{
__do_close
int
fd_source
=
-
EBADF
,
fd_target
=
-
EBADF
;
__do_close
int
fd_source
=
-
EBADF
,
fd_target
=
-
EBADF
;
...
...
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