LibHac
LibHac copied to clipboard
CoreFX does not support the archive bit on non-Windows platforms, leading to switchfs being broken entirely
https://github.com/dotnet/corefx/blob/da3ba7ebe34771dde769b65dfb7f78fa55a5abb6/src/System.IO.FileSystem/src/System/IO/FileStatus.Unix.cs#L67-L157
switchfs gives a warning that the archive bit is not set, sets it (which silently fails), and then itself silently fails due to the archive bit not actually getting set.
It may be useful to ignore the archive bit on non-Windows, and use heuristics instead.
You could also manually support the archive bit by using FFI. http://man7.org/linux/man-pages/man2/ioctl_fat.2.html
Opened an issue at dotnet/corefx#39274, and a PR for a partial workaround at #71