Skip to contentSkip to conversation

NTFS driver excessive logging by default: Correct links count

DISCUSSION Artem S. Tashkinov 3 participants 6 messages Mar 27, 2024 – May 27, 2024 NTFS3 filesystem

lore
Share & tools
lore
#0 lore raw

Hello,

I hoped 6.8.2 would have the issue fixed but no luck.

Whenever I list files on my NTFS partitions I get a lot of SPAM in dmesg, e.g.:

ntfs3: sda3: ino=14c, Correct links count -> 1.
ntfs3: sda3: ino=73, Correct links count -> 1.
ntfs3: sda3: ino=167, Correct links count -> 1.
ntfs3: sda3: ino=d9, Correct links count -> 1.
ntfs3: sda3: ino=d5, Correct links count -> 1.

And the partition in question has been fully chkdsk'ed and has no issues.

Please fix.

Best regards,
Artem

#1 lore raw
Quoted 13 lines · Artem S. Tashkinov

Hello,

I hoped 6.8.2 would have the issue fixed but no luck.

Whenever I list files on my NTFS partitions I get a lot of SPAM in dmesg, e.g.:

ntfs3: sda3: ino=14c, Correct links count -> 1.
ntfs3: sda3: ino=73, Correct links count -> 1.
ntfs3: sda3: ino=167, Correct links count -> 1.
ntfs3: sda3: ino=d9, Correct links count -> 1.
ntfs3: sda3: ino=d5, Correct links count -> 1.

Quoted 6 lines

And the partition in question has been fully chkdsk'ed and has no issues.

Please fix.

Best regards,
Artem

Hello Artem,

Probably your volume contains non-critical (minor) errors. chkdsk does not show them, but fixes them if you specify /f.

#2 lore raw
Quoted 18 lines · Konstantin Komarov
Quoted 17 lines · Artem S. Tashkinov

Hello,

I hoped 6.8.2 would have the issue fixed but no luck.

Whenever I list files on my NTFS partitions I get a lot of SPAM in dmesg, e.g.:

ntfs3: sda3: ino=14c, Correct links count -> 1.
ntfs3: sda3: ino=73, Correct links count -> 1.
ntfs3: sda3: ino=167, Correct links count -> 1.
ntfs3: sda3: ino=d9, Correct links count -> 1.
ntfs3: sda3: ino=d5, Correct links count -> 1.

And the partition in question has been fully chkdsk'ed and has no issues.

Please fix.

Quoted 8 lines
Quoted 2 lines

Best regards,
Artem

Hello Artem,

Probably your volume contains non-critical (minor) errors. chkdsk does not show them, but fixes them if you specify /f.

I have run chkdsk /f twice and I'm still getting these errors:

ntfs3: sda7: ino=14c, Correct links count -> 1.
ntfs3: sda7: ino=73, Correct links count -> 1.
ntfs3: sda7: ino=d9, Correct links count -> 1.
ntfs3: sda7: ino=98, Correct links count -> 1.
ntfs3: sda7: ino=d5, Correct links count -> 1.
ntfs3: sda7: ino=f2, Correct links count -> 1.
ntfs3: sda7: ino=e1, Correct links count -> 1.
ntfs3: sda7: ino=e8, Correct links count -> 1.
ntfs3: sda7: ino=e5, Correct links count -> 1.
ntfs3: sda7: ino=e4, Correct links count -> 1.

1. It's a bug
2. Even if it's not a bug (I'm 100% sure there is one since chkdsk does not fix it), there must be a single message per partition per boot at most.

Regards,
Artem

#3 lore raw
Quoted 43 lines · Artem S. Tashkinov
Quoted 18 lines · Konstantin Komarov
Quoted 17 lines · Artem S. Tashkinov

Hello,

I hoped 6.8.2 would have the issue fixed but no luck.

Whenever I list files on my NTFS partitions I get a lot of SPAM in dmesg, e.g.:

ntfs3: sda3: ino=14c, Correct links count -> 1.
ntfs3: sda3: ino=73, Correct links count -> 1.
ntfs3: sda3: ino=167, Correct links count -> 1.
ntfs3: sda3: ino=d9, Correct links count -> 1.
ntfs3: sda3: ino=d5, Correct links count -> 1.

And the partition in question has been fully chkdsk'ed and has no issues.

Please fix.

Quoted 8 lines
Quoted 2 lines

Best regards,
Artem

Hello Artem,

Probably your volume contains non-critical (minor) errors. chkdsk does not show them, but fixes them if you specify /f.

I have run chkdsk /f twice and I'm still getting these errors:

ntfs3: sda7: ino=14c, Correct links count -> 1.
ntfs3: sda7: ino=73, Correct links count -> 1.
ntfs3: sda7: ino=d9, Correct links count -> 1.
ntfs3: sda7: ino=98, Correct links count -> 1.
ntfs3: sda7: ino=d5, Correct links count -> 1.
ntfs3: sda7: ino=f2, Correct links count -> 1.
ntfs3: sda7: ino=e1, Correct links count -> 1.
ntfs3: sda7: ino=e8, Correct links count -> 1.
ntfs3: sda7: ino=e5, Correct links count -> 1.
ntfs3: sda7: ino=e4, Correct links count -> 1.

Quoted 1 line

1. It's a bug

You are probably right, but let's make it explicit: you're assuming no bugs can be present in chkdsk.exe.

Quoted 2 lines

2. Even if it's not a bug (I'm 100% sure there is one since chkdsk does not fix it), there must be a single message per partition per boot at most.

I might be wrong, but I see different ino values, so limiting the messages at one per boot wouldn't probably make much sense or am I mistaken?

Thanks,
Enrico

Quoted 4 lines

Regards,
Artem

#4 lore raw
Quoted 44 lines · Enrico Mioso
Quoted 43 lines · Artem S. Tashkinov
Quoted 18 lines · Konstantin Komarov
Quoted 17 lines · Artem S. Tashkinov

Hello,

I hoped 6.8.2 would have the issue fixed but no luck.

Whenever I list files on my NTFS partitions I get a lot of SPAM in dmesg, e.g.:

ntfs3: sda3: ino=14c, Correct links count -> 1.
ntfs3: sda3: ino=73, Correct links count -> 1.
ntfs3: sda3: ino=167, Correct links count -> 1.
ntfs3: sda3: ino=d9, Correct links count -> 1.
ntfs3: sda3: ino=d5, Correct links count -> 1.

And the partition in question has been fully chkdsk'ed and has no issues.

Please fix.

Quoted 8 lines
Quoted 2 lines

Best regards,
Artem

Hello Artem,

Probably your volume contains non-critical (minor) errors. chkdsk does not show them, but fixes them if you specify /f.

I have run chkdsk /f twice and I'm still getting these errors:

ntfs3: sda7: ino=14c, Correct links count -> 1.
ntfs3: sda7: ino=73, Correct links count -> 1.
ntfs3: sda7: ino=d9, Correct links count -> 1.
ntfs3: sda7: ino=98, Correct links count -> 1.
ntfs3: sda7: ino=d5, Correct links count -> 1.
ntfs3: sda7: ino=f2, Correct links count -> 1.
ntfs3: sda7: ino=e1, Correct links count -> 1.
ntfs3: sda7: ino=e8, Correct links count -> 1.
ntfs3: sda7: ino=e5, Correct links count -> 1.
ntfs3: sda7: ino=e4, Correct links count -> 1.

Quoted 2 lines
Quoted 1 line

1. It's a bug

You are probably right, but let's make it explicit: you're assuming no bugs can be present in chkdsk.exe.

In my 30+ years of using NTFS, I've encountered exactly zero cases of chkdsk not fixing errors when it completed the task successfully.

And if chkdsk from the company leaves errors, then what can fix them? Paragon has never released chkdsk for Linux except as a paid option.

And what if NTFS3 itself introduces such errors (which sounds quite likely)?

Quoted 3 lines
Quoted 2 lines

2. Even if it's not a bug (I'm 100% sure there is one since chkdsk does not fix it), there must be a single message per partition per boot at most.

I might be wrong, but I see different ino values, so limiting the messages at one per boot wouldn't probably make much sense or am I mistaken?

Not a single Linux filesystem spams the kernel log so much unless there are media errors in which case something absolutely must be done.

When I said such errors must be limited to a single message per filesystem per boot I was generous. Afaik these are not even errors. I guess a debug directory in /sys is more appropriate for them.

Best regards,
Artem

#5 lore raw
In reply to Konstantin Komarov

Hello all!!

So, if I understand things correctly, this problem has been fixed in commit 110b24eb1a749bea3440f3ca2ff890a26179050a and this issue caused corruption in the FS. Did the corruption happen even when mounting the filesystem read-only (via the mount ... -o ro flag)?
Or was a write needed?

and what kind of write?

Thanks a lot,
Enrico