3 ms·
Fun fact: the linux metadata is stored in a little known NTFS feature called "extended attributes" (EA), which is not the same as alternate data streams. You ne
by captainmuon 10y ago
Fun fact: the linux metadata is stored in a little known NTFS feature called "extended attributes" (EA), which is not the same as alternate data streams. You need to use a pretty obscure API to access them. I started writing a tool to do so, only to find that someone already did, including a decoding of the (binary) EAs (which basically contain Linux uid, gid, permissions, ctime I think):
https://www.reddit.com/r/bashonubuntuonwindows/comments/52w86h/lxssattr_a_very_basic_stat_of_sorts_to_show_linux/ https://www.reddit.com/r/bashonubuntuonwindows/comments/52w8...
There is currently no tool that writes the EAs. It should be not too hard to write one, however it won't work transparently - WSL maintains a cache of this metadata, so you'd likely have to quit all WSL applications before you make any changes to avoid corruption.
- j_s 10y agoLXSS extended file attributes viewer https://github.com/dmex/lxssattr https://github.com/dmex/lxssattr - the actual project for the decoder