Skip to content

Commit 1e2b342

Browse files
committed
document FUSE_NFS_WORKAROUND define
1 parent 00458fd commit 1e2b342

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ case "$os" in
4747
plat_files="$plat_files ../src/compat/dummy.c"
4848
plat_files="$plat_files ../src/compat/clearenv.c "
4949
plat_cflags="$plat_cflags -include ../src/compat/macosx.h"
50+
# Fuse-T (kext-free FUSE) uses NFS internally, which stats every
51+
# directory entry after readdir. Compile in a runtime check for
52+
# this behavior that activates a workaround.
5053
if [ "$server" = "fuse" ]; then
5154
plat_cflags="$plat_cflags -DFUSE_NFS_WORKAROUND"
5255
fi

src/tup/server/Tupfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ ifeq ($(TUP_SERVER),fuse)
44
export PKG_CONFIG_PATH
55
CFLAGS += `pkg-config fuse --cflags`
66
ifeq (@(TUP_PLATFORM),macosx)
7+
# Fuse-T (kext-free FUSE) uses NFS internally, which stats every
8+
# directory entry after readdir. Compile in a runtime check for
9+
# this behavior that activates a workaround.
710
CFLAGS += -DFUSE_NFS_WORKAROUND
811
endif
912
: foreach fuse_server.c fuse_fs.c master_fork.c symlink.c |> !cc |>

0 commit comments

Comments
 (0)