summaryrefslogtreecommitdiff
path: root/src/mount/bsd.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-06-16 20:36:52 -0600
committerAlan Somers <asomers@gmail.com>2021-06-16 20:37:41 -0600
commit77cb10967513d96e73c4959118a4b92dbc0bc6c2 (patch)
tree26634e539d589aa20704d9a82e1d0ae17681769f /src/mount/bsd.rs
parent148adfad841ca61be3bec3e0e5185642b5846711 (diff)
downloadnix-77cb10967513d96e73c4959118a4b92dbc0bc6c2.zip
Missing changes from PR #1453
Diffstat (limited to 'src/mount/bsd.rs')
-rw-r--r--src/mount/bsd.rs51
1 files changed, 3 insertions, 48 deletions
diff --git a/src/mount/bsd.rs b/src/mount/bsd.rs
index 260e541b..f5f2a09f 100644
--- a/src/mount/bsd.rs
+++ b/src/mount/bsd.rs
@@ -86,49 +86,6 @@ libc_bitflags!(
/// Indicates that the mount command is being applied to an already
/// mounted file system.
MNT_UPDATE;
- ///// Exported read only.
- //#[cfg(any(
- //target_os = "dragonfly",
- //target_os = "freebsd",
- //target_os = "netbsd",
- //target_os = "openbsd"
- //))]
- //MNT_EXRDONLY;
- ///// Filesystem is exported.
- //MNT_EXPORTED;
- ///// Exported to the world.
- //#[cfg(any(
- //target_os = "dragonfly",
- //target_os = "freebsd",
- //target_os = "netbsd",
- //target_os = "openbsd"
- //))]
- //MNT_DEFEXPORTED;
- ///// Anon uid mapping for all.
- //#[cfg(any(
- //target_os = "dragonfly",
- //target_os = "freebsd",
- //target_os = "netbsd",
- //target_os = "openbsd"
- //))]
- //MNT_EXPORTANON;
- ///// Exported with Kerberos.
- //#[cfg(any(
- //target_os = "dragonfly",
- //target_os = "freebsd",
- //target_os = "netbsd",
- //))]
- //MNT_EXKERB;
- ///// Public export (WebNFS).
- //#[cfg(any(target_os = "dragonfly", target_os = "freebsd"))]
- //MNT_EXPUBLIC;
- ///// Delete export host lists.
- //#[cfg(any(
- //target_os = "dragonfly",
- //target_os = "freebsd",
- //target_os = "openbsd",
- //))]
- //MNT_DELEXPORT;
/// Check vnode use counts.
#[cfg(target_os = "freebsd")]
MNT_NONBUSY;
@@ -364,11 +321,9 @@ impl<'a> Nmount<'a> {
/// Nmount::new()
/// .str_opt_owned("fspath", mountpoint.to_str().unwrap());
/// ```
- pub fn str_opt_owned<P: ?Sized + NixPath>(
- &mut self,
- name: &P,
- val: &P
- ) -> &mut Self
+ pub fn str_opt_owned<P1, P2>(&mut self, name: &P1, val: &P2) -> &mut Self
+ where P1: ?Sized + NixPath,
+ P2: ?Sized + NixPath
{
name.with_nix_path(|s| {
let len = s.to_bytes_with_nul().len();