sapling/eden/fs
Xavier Deguillard 76111d58c2 privhelper: override the fstype to EdenFS for our NFS mount
Summary:
In order to get Watchman to recognize EdenFS mounted as NFS, we previously set
the f_mntfromname to be "edenfs". Unfortunately, Apple decided that when the
NFS server is accessed via a unix socket it would overwrite that and instead
use the path to the socket.

Digging in the source code, I did find that the f_fstypename can be overwritten
by calling fsctl with the right set of arguments. Thus, let's do just that.

Reviewed By: kmancini

Differential Revision: D28270605

fbshipit-source-id: f6be4e394d814806aa03ec3e82b8bc2faf364ea7
2021-05-12 13:06:57 -07:00
..
benchharness add 4k random writes benchmark 2020-07-14 16:13:37 -07:00
benchmarks utils: add default constructor to ImmediateFuture 2021-05-11 08:05:11 -07:00
cli use eden daemon background prefetch logic instead of python subprocesses 2021-05-10 12:42:50 -07:00
cli_rs make widgets for top 2021-04-09 12:27:04 -07:00
config nfs: allow mountd and nfsd to bind to a unix socket on macOS 2021-05-12 13:06:57 -07:00
docs run linter in eden/fs/docs 2021-01-25 16:13:54 -08:00
fuse privhelper: override the fstype to EdenFS for our NFS mount 2021-05-12 13:06:57 -07:00
inodes nfs: allow mountd and nfsd to bind to a unix socket on macOS 2021-05-12 13:06:57 -07:00
journal journal: coalesce no-op checkout events 2021-02-26 16:28:44 -08:00
model add unit tests for TreeCache 2021-04-27 17:38:40 -07:00
monitor Apply clang-format update fixes 2021-01-10 10:06:29 -08:00
nfs nfs: allow mountd and nfsd sockets to be non-inet on macOS 2021-05-12 13:06:57 -07:00
notifications notifications: support Windows 2020-11-11 09:37:56 -08:00
prjfs telemetry: switch to using quantile stats instead of histograms 2021-02-14 16:37:08 -08:00
py Backout py3 only changes from windows_thrift 2021-04-22 10:29:49 -07:00
rocksdb Remove dead includes in eden 2019-10-11 16:45:01 -07:00
scripts move eden/scripts/ into eden/fs/ 2020-11-04 18:29:49 -08:00
service nfs: allow mountd and nfsd to bind to a unix socket on macOS 2021-05-12 13:06:57 -07:00
sqlite overlay: use PersistentSqliteStatement in TreeOverlayStore 2021-03-15 12:01:48 -07:00
store remove the dead getTreeForManifest 2021-05-10 11:53:30 -07:00
takeover Daily arc lint --take CLANGFORMAT 2021-04-28 04:38:27 -07:00
telemetry follow-up to sandcastle_instance_id 2021-04-06 13:14:12 -07:00
testharness nfs: allow mountd and nfsd sockets to be non-inet on macOS 2021-05-12 13:06:57 -07:00
third-party fs: update fuse_kernel_linux.h 2021-03-17 20:55:43 -07:00
utils nfs: allow mountd and nfsd to bind to a unix socket on macOS 2021-05-12 13:06:57 -07:00
CMakeLists.txt nfs: make it compile with getdeps builds 2021-02-03 17:54:54 -08:00