Replies: 1 comment 2 replies
-
File flagsWinFsp/MEMFS does not support all NTFS features. Please see the full list of unsupported features For compressed and encrypted files specifically:
AllocationSize caching?WinFsp/MEMFS reports the right size (otherwise things would not work), so I am not sure why the discrepancy. Did you mount MEMFS as a disk or network file system? GetVolumeInfo update frequency
There is however a directory change notification mechanism that may or may not force the system to call |
Beta Was this translation helpful? Give feedback.
-
When using WinFsp with memfs, the file information dialog of the Windows Explorer is different:
File flags
One difference is that with WinFsp, you can only set the archive flag (asides from the hidden and read-only flags) of the file (which then is always re-set to 1 anyway: https://github.com/winfsp/winfsp/blob/master/tst/memfs/memfs.cpp#L1325), whereas on an NTFS drive, you can open another dialog with more attributes, including compression and encryption.
Memfs actually has file "encryption" with ROT13: https://github.com/winfsp/winfsp/blob/master/tst/memfs/memfs.cpp#L2156
This makes me wonder how the developer managed to test it without noticing this inconsistency. If I remember correctly, this can also happen to drives that are not formatted with NTFS or are USB/removable drives.
The file system's name of memfs is set to NTFS:
AllocationSize caching?
Also, the file's size on disk/AllocationSize never changes after opening the file information dialog (in this case: 512 bytes allocated, although more than 1 KB is written). I also verified the AllocationSize with a debugger and although the right size is returned, Windows shows an old one. In comparison to this, the actual file size is always correctly displayed. This issue does not occur on NTFS drives.
GetVolumeInfo update frequency
Another strange thing I observed is that GetVolumeInfo is only called when a file is created/renamed/modified, but not when you reload the view of all drives in Windows Explorer. Is there a way to update the volume info without requiring such user interaction?
Beta Was this translation helpful? Give feedback.
All reactions