Skip to content

Commit a8bc17f

Browse files
committed
Fix the docs on NetBSD.
1 parent 0e6b9ef commit a8bc17f

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/mount/bsd.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -437,13 +437,15 @@ impl<'a> Drop for Nmount<'a> {
437437
///
438438
/// Useful flags include
439439
/// * `MNT_FORCE` - Unmount even if still in use.
440-
/// * `MNT_BYFSID` - `mountpoint` is not a path, but a file system ID
441-
/// encoded as `FSID:val0:val1`, where `val0` and `val1`
442-
/// are the contents of the `fsid_t val[]` array in decimal.
443-
/// The file system that has the specified file system ID
444-
/// will be unmounted. See
445-
/// [`statfs`](crate::sys::statfs::statfs) to determine the
446-
/// `fsid`.
440+
#[cfg_attr(target_os = "freebsd", doc = "
441+
* `MNT_BYFSID` - `mountpoint` is not a path, but a file system ID
442+
encoded as `FSID:val0:val1`, where `val0` and `val1`
443+
are the contents of the `fsid_t val[]` array in decimal.
444+
The file system that has the specified file system ID
445+
will be unmounted. See
446+
[`statfs`](crate::sys::statfs::statfs) to determine the
447+
`fsid`.
448+
")]
447449
pub fn unmount<P>(mountpoint: &P, flags: MntFlags) -> Result<()>
448450
where P: ?Sized + NixPath
449451
{

0 commit comments

Comments
 (0)