diff options
author | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2024-05-07 14:27:12 +0000 |
---|---|---|
committer | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2024-05-07 14:27:12 +0000 |
commit | cfb7c2f300468ad65ba289333eb4a608987ad55f (patch) | |
tree | b944a2d56e04da596e478b9035c8f6a620fb7654 /sys | |
parent | a5b7b6ef4f9a056a0edc918f792bb1decb601592 (diff) |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/miscfs/fuse/fuse_vfsops.c | 5 |
1 files 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 <ccna.syl@gmail.com> * @@ -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); |