Lines Matching refs:mountpoint
171 /// To mount `target` onto `mountpoint` with `nullfs`:
183 /// let mountpoint = tempdir().unwrap();
190 /// .str_opt_owned("fspath", mountpoint.path().to_str().unwrap())
194 /// unmount(mountpoint.path(), MntFlags::empty()).unwrap();
358 /// let mountpoint = Path::new("/mnt");
360 /// .str_opt_owned("fspath", mountpoint.to_str().unwrap());
428 /// Unmount the file system mounted at `mountpoint`.
435 * `MNT_BYFSID` - `mountpoint` is not a path, but a file system ID
444 pub fn unmount<P>(mountpoint: &P, flags: MntFlags) -> Result<()>
448 let res = mountpoint.with_nix_path(|cstr| unsafe {