Adding support for attach names (main/archive, main/snapshot) has been
rather straightforward.
In npfs/libnpclient/netmount.c i renamed npc_netmount() to
npc_netmounta() and added an additional
parameter 'aname' which is used in the call to npc_mount() instead of NULL.
A wrapper function npc_netmount() mimics the original behaviour by
calling npc_netmounta() with
aname set to NULL.
However i dared to introduce an incompatiblity in ninefs.c itself. To
spare us another commandline
option the attach name is optionally specified at the end of the
arguments. In order to keep things
together i moved the driveletter ahead. Usage of ninefs is now:
ninefs [-cddDtU] [-a authserv] [-p passwd] [-u user] driveletter addr
[aname]
You find the respective files at
http://www.magma.com.ni/sw/ninefs
ninefs6.exe .. the executable
ninefs6.c .. the source
ninefs12_jorge6.patch .. svn patch to ninefs.c
npfs58_jorge6.patch .. svn patch to npfs
Enjoy accessing your dumpfs from MS Windows :)
Regards,
Jorge-Le�n
Would you be willing to push these patches through the npfs mailing list?
npfs-devel <npfs-...@lists.sourceforge.net>
Ideally patches should be submitted to the mailing list as separate patches
with brief descriptoin for each of your goals (ie. one patch for
adding attach arg to
netmounta, another
for the various error handling cases you're adding). That way they can
be discussed
and adjusted and applied separately.
> Jorge-León
--
Tim Newsham | www.thenewsh.com/~newsham | thenewsh.blogspot.com