Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardlink count not working on Windows 11 #1004

Open
ajgringo619 opened this issue Mar 6, 2024 · 0 comments
Open

Hardlink count not working on Windows 11 #1004

ajgringo619 opened this issue Mar 6, 2024 · 0 comments

Comments

@ajgringo619
Copy link

I created a hard link via PowerShell with:

New-Item -ItemType HardLink -Path ./test.dbi -Target '.\User Data Backup_20240303_Full_V10_1.DBI'

While this worked, lsd on Windows 11 doesn't show the hardlink count:

$ lsd -AlL
Permissions Links          User                 Group        Size INode    Date Modified                           Name
.rwxrwx---  -     BUILTIN\Administrators NT AUTHORITY\SYSTEM  54G -     2024-03-03 09:15:39  test.dbi
.rwxrwx---  -     BUILTIN\Administrators NT AUTHORITY\SYSTEM  54G -     2024-03-03 09:15:39  'User Data Backup_20240303_Full_V10_1.DBI'
.rwxrwx---  -     BUILTIN\Administrators NT AUTHORITY\SYSTEM 1.6G -     2024-03-04 09:03:00  'User Data Backup_20240304_Incremental_V11_1.DBI'
.rwxrwx---  -     BUILTIN\Administrators NT AUTHORITY\SYSTEM 907M -     2024-03-05 09:04:21  'User Data Backup_20240305_Incremental_V12_1.DBI'
.rwxrwx---  -     BUILTIN\Administrators NT AUTHORITY\SYSTEM 578M -     2024-03-06 09:03:14  'User Data Backup_20240306_Incremental_V13_1.DBI'

Running the same command from my WSL installation:

$ lsd -AlL
Permissions Links    User        Group    Size      INode          Date Modified                            Name
.rwxr-xr-x  2     ajgringo619 ajgringo619  54G 4503599627370568 2024-03-03 09:15:39  test.dbi*
.rwxr-xr-x  2     ajgringo619 ajgringo619  54G 4503599627370568 2024-03-03 09:15:39  'User Data Backup_20240303_Full_V10_1.DBI'*
.rwxr-xr-x  1     ajgringo619 ajgringo619 1.6G 2814749767106644 2024-03-04 09:03:00  'User Data Backup_20240304_Incremental_V11_1.DBI'*
.rwxr-xr-x  1     ajgringo619 ajgringo619 907M 3096224743817301 2024-03-05 09:04:21  'User Data Backup_20240305_Incremental_V12_1.DBI'*
.rwxr-xr-x  1     ajgringo619 ajgringo619 578M 2533274790395990 2024-03-06 09:03:14  'User Data Backup_20240306_Incremental_V13_1.DBI'*

If there's a switch I'm missing, I could not find it. Is this expected behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant