diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2012-10-19 10:41:54 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2012-10-22 09:44:02 -0400 |
commit | 9fae1474f1f79c2c7f222a40dff6d3d4681a9115 (patch) | |
tree | ebbca3e53642daf3445bba152d41478a2bf80b41 /utils/gssd/write_bytes.h | |
parent | 62ee38804c60c5875ce3c78674419ee137deb8db (diff) | |
download | nfs-utils-9fae1474f1f79c2c7f222a40dff6d3d4681a9115.tar.gz nfs-utils-9fae1474f1f79c2c7f222a40dff6d3d4681a9115.tar.xz nfs-utils-9fae1474f1f79c2c7f222a40dff6d3d4681a9115.zip |
mountd: Dynamically allocate exportent that represents junctions
We're now duplicating a real exportent with arbitrary export options
to create a junction exportent. After a dupexportent() call,
several of the structure's fields can point to dynamically allocated
memory. We have to be careful about not orphaning that memory.
What's more, returning a pointer to a static structure is as 90's as
a bad mullet. It's more straightforward to allocate the exportent
dynamically and release it when we are through with it.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/gssd/write_bytes.h')
0 files changed, 0 insertions, 0 deletions