Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Iterate over ZPL_LINKDIRS to find siblings test
$ cd /d $ mkdir dir1 dir2 $ touch dir1/file1.txt $ for i in dir1/file2.txt dir2/file3.txt dir2/file4.txt > do > ln dir1/file1.txt $i > done $ ls -lR .: total 0 drwxr-xr-x 1 WDKRemoteUser 197121 0 Nov 19 17:22 dir1/ drwxr-xr-x 1 WDKRemoteUser 197121 0 Nov 19 17:22 dir2/ ./dir1: total 0 -rw-r--r-- 4 WDKRemoteUser 197121 0 Nov 19 17:21 file1.txt -rw-r--r-- 4 WDKRemoteUser 197121 0 Nov 19 17:21 file2.txt ./dir2: total 0 -rw-r--r-- 4 WDKRemoteUser 197121 0 Nov 19 17:21 file3.txt -rw-r--r-- 4 WDKRemoteUser 197121 0 Nov 19 17:21 file4.txt $ fsutil hardlink list /d/dir2/file3.txt FFFF950564FC8080: dprintf: zfs_vnops_windows_lib.c:5429:file_hard_link_information(): file_hard_link_information: FFFF950564FC8080: dprintf: zfs_vnops_windows_lib.c:5514:file_hard_link_information(): Linkdir 0: 4 FFFF950564FC8080: dprintf: zfs_znode.c:1077:zfs_zget_ext(): +zget 4 FFFF950564FC8080: dprintf: zfs_vnops_windows_lib.c:5532:file_hard_link_information(): Linkdir 4 has entry file1.txt FFFF950564FC8080: dprintf: zfs_vnops_windows_lib.c:5532:file_hard_link_information(): Linkdir 4 has entry file2.txt FFFF950564FC8080: dprintf: zfs_vnops_windows_lib.c:5514:file_hard_link_information(): Linkdir 1: 7 FFFF950564FC8080: dprintf: zfs_znode.c:1077:zfs_zget_ext(): +zget 7 FFFF950564FC8080: dprintf: zfs_vnops_windows_lib.c:5532:file_hard_link_information(): Linkdir 7 has entry file3.txt FFFF950564FC8080: dprintf: zfs_vnops_windows_lib.c:5532:file_hard_link_information(): Linkdir 7 has entry file4.txt Signed-off-by: Jorgen Lundman <[email protected]>
- Loading branch information