> Two other ways of doing it:
>
> If there is initialisation code for NFS, make it a file scope static and
> set it to 0 there.
>
> Otherwise make it a global scope variable and set it in main() to 0 when
> starting up.
I'd not like that one because of something I'm thinking about right now.
I'd like a menu system I started working on recently to retrieve
additional data (e.g. background bitmap files, font files...) via tftp; or
NFS at user's discretion.
For me, a callback function in etherboot like
retrieve_file ( char * url, (void *)(block_management_function) would be
the ideal solution.
This would even open the possibility for e.g. harddisk restorage via
multicast tftp... ideas open. In any case, NFS would be called from
probably more than two points in etherboot code. Setting the recursion
variable only inside that function was the safest way to go.
Anselm
|