On Thu, Jan 04, 2001, Duane Wessels wrote:
> The FS module can call storeDirGetBlkSize() if it wants to. If it
> doesn't want to, there is some default. The FS could set the
> "blocksize" values directly if it wants.
>
> I put it in src/store_dir.c because I *really* hate having the
> same code duplicated through all the FS subdirectories.
Well, if someone wants a quick project, they're more than willing
to please take the shared routines in ufs, aufs and diskd and
make a 'libufs' to hold them all. :-)
When I looked at doing it before it was a relatively straightforward
but time consuming task, and the only strangeness is storeUfsDirClean() /
storeAufsDirClean() / storeDiskdDirClean() which still take an array of
all the fses of their type and clean (which I don't think needs to
happen now) ..
Honestly, I never thought the duplicated code would live this long. :)
Adrian
-- Adrian Chadd "Here's five for the cake, and <adrian@creative.net.au> five to buy a clue." - Ryan, Whatever it TakesReceived on Thu Jan 04 2001 - 23:39:21 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:10 MST