File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -437,13 +437,15 @@ impl<'a> Drop for Nmount<'a> {
437
437
///
438
438
/// Useful flags include
439
439
/// * `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
+ " ) ]
447
449
pub fn unmount < P > ( mountpoint : & P , flags : MntFlags ) -> Result < ( ) >
448
450
where P : ?Sized + NixPath
449
451
{
You can’t perform that action at this time.
0 commit comments