Support for attach names

7 views
Skip to first unread message

Georg Lehner

unread,
Apr 4, 2010, 2:43:40 PM4/4/10
to nin...@googlegroups.com
Hello!

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

Tim Newsham

unread,
Apr 15, 2010, 5:25:22 PM4/15/10
to nin...@googlegroups.com
On Sun, Apr 4, 2010 at 11:43 AM, Georg Lehner <jorge-...@magma.com.ni> wrote:
> npfs58_jorge6.patch .. svn patch to npfs

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

Reply all
Reply to author
Forward
0 new messages