msync - can someone shed some light please?

Julien ÉLIE julien at trigofacile.com
Thu Aug 7 20:01:36 UTC 2025


Hi Richard,

>> If length % 4096 > 0 then the effect would just be to round up to an 
>> exact number of pages, avoiding the error. So we'd expect to see the 
>> error in 1/4096 (about 0.025%) of possible active files sizes.
> 
> As luck would have it I am now seeing the same error on one of my 
> servers, and indeed:
> 
> -rw-rw-r-- 1 news news 1499136 Aug  7 04:15 /var/lib/news/active
> 
> ...which is a multiple of 4096.

Oh, what a coincidence!

Thanks for confirming the origin of the bug, and therefore that the fix 
is the right one.  I committed it in June; it will be shipped with the 
next 2.7.4 release:
  
https://github.com/InterNetNews/inn/commit/a219d093447d20c8c73c2df70d8b27c955bfdf23

-- 
Julien ÉLIE

« I think it's a new feature.  Don't tell anyone it was an accident. »
   (Larry Wall)



More information about the inn-workers mailing list