Skip to content

Commit

Permalink
Merge pull request #2962 from MRtrix3/wsl_disable_mmap
Browse files Browse the repository at this point in the history
Windows: Delayed writeback to host
  • Loading branch information
Lestropie authored Aug 15, 2024
2 parents e7f540b + b84625a commit 7935966
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/file/mmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ namespace MR
delayed_writeback = true;
}

if (fsbuf.f_type == 0xff534d42 /* CIFS */|| fsbuf.f_type == 0x6969 /* NFS */ ||
fsbuf.f_type == 0x65735546 /* FUSE */ || fsbuf.f_type == 0x517b /* SMB */ ||
fsbuf.f_type == 0x47504653 /* GPFS */ || fsbuf.f_type == 0xbd00bd0 /* LUSTRE */
if (fsbuf.f_type == 0xff534d42 /* CIFS */ || fsbuf.f_type == 0x6969 /* NFS */ ||
fsbuf.f_type == 0x65735546 /* FUSE */ || fsbuf.f_type == 0x517b /* SMB */ ||
fsbuf.f_type == 0x47504653 /* GPFS */ || fsbuf.f_type == 0xbd00bd0 /* LUSTRE */ ||
fsbuf.f_type == 0x1021997 /* 9P (WSL) */

#ifdef MRTRIX_MACOSX
|| fsbuf.f_type == 0x0017 /* OSXFUSE */
Expand Down

0 comments on commit 7935966

Please sign in to comment.