1.0.3 • Published 2 months ago

@prairielearn/bind-mount v1.0.3

Weekly downloads
-
License
-
Repository
github
Last release
2 months ago

@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');
1.0.3

2 months ago

1.0.2

7 months ago

1.0.1

10 months ago

1.0.0

2 years ago