It compiles, it tests, it works. Needs documentation
This commit is contained in:
parent
1023bb6f38
commit
3cd310afe3
2 changed files with 4 additions and 2 deletions
|
@ -22,7 +22,7 @@ sub mount {
|
||||||
|
|
||||||
my $options_str = join ',', map {"$_=".$options_hr->{$_}} keys %$options_hr;
|
my $options_str = join ',', map {"$_=".$options_hr->{$_}} keys %$options_hr;
|
||||||
|
|
||||||
my $ret = _mount_sys($source, $target, $filesystem//undef, $flags, $options_str);
|
my $ret = _mount_sys($source//"", $target//"", $filesystem//"", $flags//0, $options_str//"");
|
||||||
|
|
||||||
if ($ret != 0) {
|
if ($ret != 0) {
|
||||||
die "mount failed: $ret $!";
|
die "mount failed: $ret $!";
|
||||||
|
|
|
@ -85,7 +85,9 @@ sub namespace {
|
||||||
} else {
|
} else {
|
||||||
unshare($uflags);
|
unshare($uflags);
|
||||||
$post_setup->();
|
$post_setup->();
|
||||||
}
|
};
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue