ExTmpFs v0.2.195 ExTmpFs View Source
This module provide some functions for the wrapper of TmpFs System. He use System.cmd, so use sudo is preferable.
Link to this section Summary
Functions
Mount and create the directory to mount a tmpfs device
Umount and destroy the directory of mounting tmpfs device
Link to this section Types
Link to this section Functions
Mount and create the directory to mount a tmpfs device.
## Parameters
- path: Path.t
- size: size
## examples
sudo iex -S mix
iex> {:ok, ref} = ExTmpFs.mount(".tmp", [size: 1, size_type: :G])
Umount and destroy the directory of mounting tmpfs device.
## Parameters
- name: atom
## examples
sudo iex -S mix
iex> {:ok, ref} = ExTmpFs.mount(".tmp", [size: 1, size_type: :G])
iex> :ok = ExTmpFs.umount(ref)