]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
mountd: Use static buffer when constructing junction export options
authorChuck Lever <chuck.lever@oracle.com>
Fri, 19 Oct 2012 14:25:14 +0000 (10:25 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 22 Oct 2012 13:44:02 +0000 (09:44 -0400)
Clean up: Simplify locations_to_export() by constructing a junction's
export options in a static buffer.

We can do this because all of this code is called serially, in one
thread, and the result is thrown away immediately after the caller
is finished.  The returned exportent itself is static.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>

No differences found