On Wed, 12 Mar 2003, Szakacsits Szabolcs wrote:
> On Wed, 12 Mar 2003, Attila Tajti wrote:
>
> > I am not (yet?) interested in ntfsresize...
Funnily, just resizing e.g. 1 MB below the current NTFS filesystem
size (no disk partitioning needed) would fix your problem :)
> > Now I enabled NTFS_DEBUG on both my gentoo and vanilla+ntfs
> > kernels, attached two logs with my results. The first one is
> > completely useless (I think) because it shows the same message in
> > each line...
>
> It might be very useful if it turns out the driver loops there for
> whatever reason.
Yes, get_nr_free_clusters() is totally broken.
If the number of clusters on the volume falls to certain ranges then
max_size always evaluates to 1024 thus control can't get out from the
function. Anton, just a warning, I didn't check but it seems you also
copy-pasted the broken logic into __get_nr_free_mft_records().
0.1% of the users are affected, I would consider this as a serious
bug. I've just searched the Mandrake Bugzilla and a lot of entries
when statfs() related programs hangs and use 100% of CPU time.
Unfortunately they already went gold but IMHO Gentoo could still
include the fix.
BTW, I don't have any freetime until weekend to fix it but if one does
please send the fix(es) for review before release. And be careful, it
seems to be several bugs in the mentioned function(s).
Szaka
|