@prairielearn/bind-mount
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

@prairielearn/bind-mount

This package allows for the creation and removal of bind mounts via native bindings to the mount() and umount() Linux system calls. These bindings are 1-2 orders of magnitude faster than shelling out to the mount and umount commands.

Only bind mounts are currently supported. It is not possible to create other type of mounts, or to change the flags used when creating the mount.

This package is only designed to work on Linux. It will compile on other platforms, but all functions will throw errors if they're called.

Usage

import { mount, umount } from '@prairielearn/bind-mount';

await mount('/source', '/target');
await umount('/target');

Readme

Keywords

none

Package Sidebar

Install

npm i @prairielearn/bind-mount

Weekly Downloads

1

Version

1.0.3

License

none

Unpacked Size

8.38 kB

Total Files

8

Last publish

Collaborators

  • nwalters512
  • mwest1066