Here is a workaround that I came up with this morning
(had an hour to kill while flying to work this morning :)

background:

attempting to install win4lin onto a reiserfs partition fails
when attempting to loadwindowsCD, failing with an error
something like:
        NO_MEMMAP:....

specifically, it is failing in the mkimg stage of the install.
trace reveals that it is doing a statfs().
It appears that the reiserfs implementation of statfs does not
use the f_files and f_ffree fields of the statfs structure.
In fact, it sets these values to 0 (which appears to be an error,
as the man page indicates that unused fields should be set to -1).

I did not try installing win4lin when these values were set to -1,
instead, I set these values to the values of the f_blocks and
f_bfree fields respectively (I figured that was my best chance of
getting win4lin to run - and it worked! yippee! :)

the relevant function is called reiserfs_statfs, and is found
in /usr/src/linux/fs/reiserfs/

This was with version 3.5.19 of reiserfs included in the Mandrake 7.1
2.2.15 kernel. I don't know (yet) if this has been changed in more
recent versions of reiserfs (I think it was still broken in 3.5.23
or 3.5.22).


If anyone knows of more relevant lists to post this to (I havn't gone
searching yet), could you please let me know, or forward this info
on.


-- 
Cheers,
Jim.


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to