Skip to content

Commit 77cb109

Browse files
committed
Missing changes from PR #1453
1 parent 148adfa commit 77cb109

File tree

1 file changed

+3
-48
lines changed

1 file changed

+3
-48
lines changed

src/mount/bsd.rs

Lines changed: 3 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -86,49 +86,6 @@ libc_bitflags!(
8686
/// Indicates that the mount command is being applied to an already
8787
/// mounted file system.
8888
MNT_UPDATE;
89-
///// Exported read only.
90-
//#[cfg(any(
91-
//target_os = "dragonfly",
92-
//target_os = "freebsd",
93-
//target_os = "netbsd",
94-
//target_os = "openbsd"
95-
//))]
96-
//MNT_EXRDONLY;
97-
///// Filesystem is exported.
98-
//MNT_EXPORTED;
99-
///// Exported to the world.
100-
//#[cfg(any(
101-
//target_os = "dragonfly",
102-
//target_os = "freebsd",
103-
//target_os = "netbsd",
104-
//target_os = "openbsd"
105-
//))]
106-
//MNT_DEFEXPORTED;
107-
///// Anon uid mapping for all.
108-
//#[cfg(any(
109-
//target_os = "dragonfly",
110-
//target_os = "freebsd",
111-
//target_os = "netbsd",
112-
//target_os = "openbsd"
113-
//))]
114-
//MNT_EXPORTANON;
115-
///// Exported with Kerberos.
116-
//#[cfg(any(
117-
//target_os = "dragonfly",
118-
//target_os = "freebsd",
119-
//target_os = "netbsd",
120-
//))]
121-
//MNT_EXKERB;
122-
///// Public export (WebNFS).
123-
//#[cfg(any(target_os = "dragonfly", target_os = "freebsd"))]
124-
//MNT_EXPUBLIC;
125-
///// Delete export host lists.
126-
//#[cfg(any(
127-
//target_os = "dragonfly",
128-
//target_os = "freebsd",
129-
//target_os = "openbsd",
130-
//))]
131-
//MNT_DELEXPORT;
13289
/// Check vnode use counts.
13390
#[cfg(target_os = "freebsd")]
13491
MNT_NONBUSY;
@@ -364,11 +321,9 @@ impl<'a> Nmount<'a> {
364321
/// Nmount::new()
365322
/// .str_opt_owned("fspath", mountpoint.to_str().unwrap());
366323
/// ```
367-
pub fn str_opt_owned<P: ?Sized + NixPath>(
368-
&mut self,
369-
name: &P,
370-
val: &P
371-
) -> &mut Self
324+
pub fn str_opt_owned<P1, P2>(&mut self, name: &P1, val: &P2) -> &mut Self
325+
where P1: ?Sized + NixPath,
326+
P2: ?Sized + NixPath
372327
{
373328
name.with_nix_path(|s| {
374329
let len = s.to_bytes_with_nul().len();

0 commit comments

Comments
 (0)