]> git.decadent.org.uk Git - nfs-utils.git/commit
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)
commita8dcaa282122b5db8f4ffb7e5d99b2c4b62cbb78
tree48a5a53a937ceb4fe1c37a1db9ea6873aa1e33d1
parentd69795533b0c8906e42aa2eb1cf4628cda42a766
mountd: Use static buffer when constructing junction export options

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>
utils/mountd/cache.c