Skip to content

Commit

Permalink
PY-10377 (allow non-journaled local FS to be watched)
Browse files Browse the repository at this point in the history
  • Loading branch information
trespasserw committed Mar 20, 2014
1 parent 73a0dad commit 58a7e99
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Binary file modified bin/mac/fsnotifier
Binary file not shown.
4 changes: 1 addition & 3 deletions native/fsNotifier/mac/fsnotifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ static void * EventProcessingThread(void *data) {
return NULL;
}

#define FS_FLAGS (MNT_LOCAL|MNT_JOURNALED)

static void PrintMountedFileSystems(CFArrayRef roots) {
int fsCount = getfsstat(NULL, 0, MNT_WAIT);
if (fsCount == -1) return;
Expand All @@ -88,7 +86,7 @@ static void PrintMountedFileSystems(CFArrayRef roots) {
CFMutableArrayRef mounts = CFArrayCreateMutable(NULL, 0, NULL);

for (int i = 0; i < fsCount; i++) {
if ((fs[i].f_flags & FS_FLAGS) != FS_FLAGS) {
if ((fs[i].f_flags & MNT_LOCAL) != MNT_LOCAL) {
char *mount = fs[i].f_mntonname;
int mountLen = strlen(mount);

Expand Down

0 comments on commit 58a7e99

Please sign in to comment.