Filesystem mount API for mruby
- add conf.gem line to
build_config.rb
MRuby::Build.new do |conf|
# ... (snip) ...
conf.gem :github => 'haconiwa/mruby-mount'
end
Mount.make_private("/")
# => 0
Mount.bind_mount("/var/lib/myroot", "/var/lib/newroot")
# => 0
Mount.umount("/var/lib/newroot")
# => 0
Mount.mount("proc", "/proc", type: "proc")
# => 0
noexec
,nosuid
,readonly
remount
are supported (some of which are untested) inmount/bind_mount
.
This mgem may work only Linux.
rake format
under the MIT License:
- see LICENSE file