summaryrefslogtreecommitdiffstats
path: root/fsmonitor-settings.h
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhost@microsoft.com>2022-05-26 23:47:04 +0200
committerJunio C Hamano <gitster@pobox.com>2022-05-27 00:59:26 +0200
commitddc5dacfb368d4903f5dd475897e5e11772f9970 (patch)
tree8a7437f1eff1f39875d0dcc022c722c1c6c97126 /fsmonitor-settings.h
parentfsmonitor-settings: remote repos on Windows are incompatible (diff)
downloadgit-ddc5dacfb368d4903f5dd475897e5e11772f9970.tar.xz
git-ddc5dacfb368d4903f5dd475897e5e11772f9970.zip
fsmonitor-settings: NTFS and FAT32 on MacOS are incompatible
On MacOS mark repos on NTFS or FAT32 volumes as incompatible. The builtin FSMonitor used Unix domain sockets on MacOS for IPC with clients. These sockets are kept in the .git directory. Unix sockets are not supported by NTFS and FAT32, so the daemon cannot start up. Test for this during our compatibility checking so that client commands do not keep trying to start the daemon. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsmonitor-settings.h')
-rw-r--r--fsmonitor-settings.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fsmonitor-settings.h b/fsmonitor-settings.h
index afd1b3874a..d9c2605197 100644
--- a/fsmonitor-settings.h
+++ b/fsmonitor-settings.h
@@ -20,6 +20,7 @@ enum fsmonitor_reason {
FSMONITOR_REASON_ERROR, /* FS error probing for compatibility */
FSMONITOR_REASON_REMOTE,
FSMONITOR_REASON_VFS4GIT, /* VFS for Git virtualization */
+ FSMONITOR_REASON_NOSOCKETS, /* NTFS,FAT32 do not support Unix sockets */
};
void fsm_settings__set_ipc(struct repository *r);