Remove shelling out to mount
Also remove the target from the Mount struct because it should not be used at all. The target can be variable and set by a caller, not by the snapshot drivers. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
c0fdda03cc
commit
a7a6270f2a
9 changed files with 28 additions and 101 deletions
|
@ -50,8 +50,6 @@ func (lm *Btrfs) Prepare(key, parent string) ([]containerd.Mount, error) {
|
|||
{
|
||||
Type: "btrfs",
|
||||
Source: lm.device, // device?
|
||||
Target: key,
|
||||
|
||||
// NOTE(stevvooe): While it would be nice to use to uuids for
|
||||
// mounts, they don't work reliably if the uuids are missing.
|
||||
Options: []string{fmt.Sprintf("subvolid=%d", info.ID)},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue