Hi Kevin
Kevin Peng wrote on 1/14/21 9:03 AM:
I have uploaded to
https://jp-andre.pagesperso-orange.fr/ntfs-3g_ntfsprogs-2017.3.23AB.6-2.tgz
a test version of ntfs-3g with support for WSL-type symlinks.
This variant is enabled by using the mount option :
special_files=wsl
Both the Interix symlinks and the WSL ones are recognized
irrespective of the option being used. The option only acts
on new symlinks being created.
Please test it, and report.
Thanks! I'll test it and report back.
[...]
So I've tried creating some links and special files with the
special_files=wsl mount option, and reading those in WSL. WSL was
successfully able to read links I created to "dir", "file", "文件", and
"\x17\x15\ufffe\uffff". The fifos, block and char special devices look
like empty regular files to WSL though (with no permissions, and owned
by whichever user and group was specified in the DrvFS mount options).
Fine, so the symlink target is utf8 encoded.
I have uploaded a new test version on
https://jp-andre.pagesperso-orange.fr/ntfs-3g_ntfsprogs-2017.3.23AB.6-3.tgz
with fifo and char and block device according to your example.
However ownership and permissions are not inserted into the EA.
This may be a problem as permissions are merged with the type
to form the $LXMOD. WSL might require the $LXMOD to be present
and match the type defined by the reparse tag.
I hope ownership and permissions are not required, and this
would be consistent with WSL being able to process Windows
files without polluting them.
If the fifo with no $LXMOD is not recognized by WSL, would you
please add it to an existing fifo as shown below (long lines
could be split by the mailer)
(adding $LXMOD only)
# mknod wsl/fifo-1 p
# setfattr -h -v 0x1400000000060400244c584d4f4400a411000000 -n
system.ntfs_ea wsl/fifo-1
(adding $LXUID, $LXGID and $LXMOD)
# mknod wsl/fifo-2 p
# setfattr -h -v
0x1400000000060400244c5855494400e8030000001400000000060400244c5847494400e8030000001400000000060400244c584d4f4400a411000000
-n system.ntfs_ea wsl/fifo-2
Jean-Pierre
For completeness, I post the ntfsinfo of fifo, block, and char below:
$ src/ntfs-3g_ntfsprogs-2017.3.23AB.6/ntfsprogs/ntfsinfo -F fifo links.img
FYI ntfsinfo shows the details of EA's in verbose mode
(with option -v).
Thanks, I'll try that next time.
Best,
Kevin
_______________________________________________
ntfs-3g-devel mailing list
ntfs-3g-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel
_______________________________________________
ntfs-3g-devel mailing list
ntfs-3g-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel