Function sys_mount::swapoff

source ·
pub fn swapoff<P: AsRef<Path>>(dest: P) -> Result<()>
Expand description

Unmounts a swap partition using libc::swapoff

§Errors

  • If the destination path is not a valid C String
  • Or the swapoff function fails