CID# 30417 Fix read after free

Also, you must destroy mutexes before free so kernel and glibc knows they
are gone.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
CID# 30406 use after free

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Flex grammar was too lax with identifier matching

Remove '.' and '-'

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Pull up Marcus's fixes to ntirpc

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Fix uninited file_entry in nfs4_op_putfh

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Fix memory leak of group list in mnt_Export.c

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Add find_config_nodes function

Used to walk the parse tree based on an expression

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Extend AddExport DBUS method to identify the export(s) to be added

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Extend manage_exports script and ExportMgr class for AddExport

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Fix a checkpatch error from earlier

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Remove dead code from nfs_init.c

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Make 9p_attach use nfs_export_get_root_entry

This assures that cache inode LRU reference is properly taken.

Also, clean up this routine to properly release resources on error.

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Make pxy_get_dynamic_info use passed obj_hdl

This way statfs will work properly if PROXY mount references
multiple filesystems.

Incidentally gets rid of a problematic reference to exp_root_cache_inode.

See commit 972ed23668efab4933afbb797248bdb46aa4281f for introduction
of this concept.

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Make mnt_Mnt use nfs_export_get_root_entry

This makes sure that all the reference counting/validity is proper.

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Strip unused export param from nfs3_FhandleToCache

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Move exp_list from exportlist_t to gsh_export

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Move exp_root_cache_inode from exportlist_t to gsh_export

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Move exp_junction_inode and exp_parent_exp from exportlist_t to gsh_export

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Move exp_mounted_on_file_id from exportlist_t to gsh_export

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Replace references to exportlist_t export_hdl with req_ctx->fsal_export

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>