Re: First C Device API Draft

Tyler Dauwalder <tyler-cyCl/[email protected]>
Newsgroups gmane.os.openbeos.storage
Message-ID <[email protected]>
> CVS
> absence of an idea for a better name, the kernel module bundling the 
> functionality
> for getting information about sessions and partitions of devices is 
> called
> partscan (for partition scanner, better suggestions are welcome :-) 

How about diskscan (more general, considering sessions)? Or 
storage_device_scanner (descriptive, though long)? 

> and resides
> in `src/add-ons/kernel/partscan'. The modules for sessions, 
> partitions and
> FSs go into the respective subdirs. Currently only one, 
> `partition/intel',
> being able to recognize DOS partition maps is implemented.
> 
> The headers for the modules live in `headers/private/partscan'. They 
> contain
> a bit of documentation about there API. The user API is defined in
> `headers/os/kernel/fs_device.h'.
> 
> In `src/tests/add-ons/kernel/partscan' the user land versions of the 
> modules
> are built and there's also some test code.
> 
> As said, this is a first draft. Suggestions/ideas are very welcome.

So far just one question: what's the reason for passing "off_t 
sessionOffset" and "off_t sessionSize" to the two partition functions 
declared in partscan.h? Why not just pass a "struct session_info*" 
(which seems clearer and easier to me)? 

-Tyler
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.