From 4670dd04fe6d0d097b58afdcea53907d19653010 Mon Sep 17 00:00:00 2001 From: mvs Date: Tue, 7 May 2024 14:27:11 +0000 Subject: [PATCH] Clear MNT_LOCAL flag on FUSE file system. It can be local or remote, but kernel can't tell the difference. From Kirill A. Korinsky ok claudio mpi --- sys/miscfs/fuse/fuse_vfsops.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/miscfs/fuse/fuse_vfsops.c b/sys/miscfs/fuse/fuse_vfsops.c index 5b30b1544aa..c848894b3be 100644 --- a/sys/miscfs/fuse/fuse_vfsops.c +++ b/sys/miscfs/fuse/fuse_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fuse_vfsops.c,v 1.45 2021/05/01 16:18:29 gnezdo Exp $ */ +/* $OpenBSD: fuse_vfsops.c,v 1.46 2024/05/07 14:27:11 mvs Exp $ */ /* * Copyright (c) 2012-2013 Sylvestre Gallon * @@ -114,7 +114,8 @@ fusefs_mount(struct mount *mp, const char *path, void *data, fmp->allow_other = args->allow_other; mp->mnt_data = fmp; - mp->mnt_flag |= MNT_LOCAL; + /* FUSE file system is not truly local. */ + mp->mnt_flag &= ~MNT_LOCAL; vfs_getnewfsid(mp); memset(mp->mnt_stat.f_mntonname, 0, MNAMELEN); -- 2.20.1