Skip to content

Commit 99b4a36

Browse files
committed
mountpoint-s3-fs: allow mounting on top of autofs
Signed-off-by: Kiron <[email protected]>
1 parent 17b7ca6 commit 99b4a36

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mountpoint-s3-fs/src/fuse/config.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,11 @@ impl MountPoint {
187187
// some reason.
188188
match Process::myself().and_then(|me| me.mountinfo()) {
189189
Ok(mounts) => {
190-
if mounts.0.iter().any(|mount| mount.mount_point == path) {
190+
if mounts
191+
.0
192+
.iter()
193+
.any(|mount| mount.mount_point == path && mount.fs_type != "autofs")
194+
{
191195
return Err(anyhow!("mount point {} is already mounted", path.display()));
192196
}
193197
}

0 commit comments

Comments
 (0)