Re: NTFS driver excessive logging by default: Correct links count

Artem S. Tashkinov
2024-04-15T14:12:27Z

On April 15, 2024 10:11:26 AM UTC, Enrico Mioso <mrkiko.rs@gmail.com> wrote:
>On Thu, Apr 11, 2024 at 01:01:21PM +0000, Artem S. Tashkinov wrote:
>>
>>
>> On 4/11/24 11:00, Konstantin Komarov wrote:
>> > On 27.03.2024 13:28, Artem S. Tashkinov wrote:
>> > > 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
>> >
>> > 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
>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)?

>> 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