Re: Udf not getting loaded

Ingo Weinhold <[email protected]> Mon, 18 Aug 2008 17:11:19 +0200
Newsgroups gmane.os.openbeos.kernel.devel
Message-ID <[email protected]>
On 2008-08-18 at 12:27:30 [+0200], Salvatore Benedetto <[email protected]> 
wrote:
> 
> as of revision 27028, Udf "should" :-) be considered ported to the new FS 
> API.
> I can confirm it compiles, but I'm having trouble to get the disk device 
> manager
> loading the module. If I insert a DVD, iso9660 gets over it, but
> even if I remove iso9660 from the image, udf just does not get loaded.
> 
> As far as I understood, the only function needed to get a FS module loaded 
> is
> the identify_partition function, but probably I'm missing something as 
> usual.
> If so, what else does it need to get loaded?

For it to merely get loaded you only need to implement the module interface 
and put it in the right place. For something reasonable to happen the basic 
FS interface API needs to be implemented.

Auto-detection of partitions requires the identify_partition() and 
scan_partition() hooks (plus free_identify_partition_cookie(), if you use 
identify cookies that needs freeing). You haven't implemented the latter, so 
it cannot work (cf. the ReiserFS implementation for how this needs to be 
done).

Even when not implementing the *_partition() hooks, you can mount the FS 
manually using the "mount" command.

CU, Ingo

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/