]> git.decadent.org.uk Git - nfs-utils.git/commit
rpc.mountd: Change nfs_client->m_hostname to be a dynamically-allocated string
authorJeff Layton <jlayton@redhat.com>
Thu, 27 Sep 2007 10:53:48 +0000 (06:53 -0400)
committerNeil Brown <neilb@suse.de>
Fri, 28 Sep 2007 01:39:56 +0000 (11:39 +1000)
commit1cecd88106230fc9a8c3527bcdf4195150e9ad64
tree3bd39cfe875943d46319c045d7de9373c5c5f1a4
parent1992a667c49cdd83ff7d7414a07225fcf34f0ad2
rpc.mountd: Change nfs_client->m_hostname to be a dynamically-allocated string

Change nfs_client->m_hostname to be dynamically allocated rather than a
fixed length array of size NFSCLNT_IDMAX. This also adds a bit of
micro-optimization in a few places since it reduces the amount of string
copying that needs to be done.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Neil Brown <neilb@suse.de>
support/export/client.c
support/include/exportfs.h
utils/mountd/auth.c