ntfs3
ntfs3 copied to clipboard
[BUG] ntfs symlink cannot be handled correctly by ntfs3
It can be reproduced as follow:
- Create the ntfs symlinks in Windows 11
mkdir test\test2
echo "text" > test\test.txt
mklink /D test2 test\test2
mklink test.txt test\test.txt
dir
- Open the directory which contains the symlinks in linux (Ubuntu 24.04 or Archlinux)
$ sudo mount -t ntfs3 /dev/sdc1 /mnt
$ ls -al /mnt/
总计 8
drwxrwxrwx 1 root root 4096 5月 5 09:02 .
drwxr-xr-x 1 root root 4096 4月 25 2024 ..
drwxr-xr-x 1 root root 0 5月 5 09:02 'System Volume Information'
drwxr-xr-x 1 root root 0 5月 5 09:02 test
lrwxrwxrwx 1 root root 10 5月 5 09:02 test2 -> test/test2
lrwxrwxrwx 1 root root 13 5月 5 09:02 test.txt -> test/test.txt
$ sudo lsmod | grep ntfs
ntfs3 348160 1
$ sudo umount /mnt
- Switch back to Windows 11, then you can see the difference compared to before
dir