Whamcloud - gitweb
LU-1718 client: Restore NFS export for Lustre on 3.X kernels
authorJames Simmons <uja.ornl@gmail.com>
Mon, 27 Aug 2012 18:55:07 +0000 (14:55 -0400)
committerOleg Drokin <green@whamcloud.com>
Sun, 7 Oct 2012 05:01:29 +0000 (01:01 -0400)
commitd8b486644ceef57c7388e8049b90bde4bf967500
tree41aadc5b2ca0e9d92332a5e699e508a348801df2
parent3b2d496affc294e86744ab9b1c1014f0ce81bb3e
LU-1718 client: Restore NFS export for Lustre on 3.X kernels

In Linux 3.0+ kernels struct file_system_type changed the
get_sb function to a new function called mount which was
different in that the vfsmount data was no longer passed in.
The vfsmount data was used by the llite layer for nfs export
function called get_name to search for filp that was then used
with the ll_readdir method. The approach to solve this change
was to go the route of btrfs and gfs2 to refactor some of the
llite methods to implement a directory scan independent of
filp which could be shared with nfs export funtionality.

Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: I72730476b120cec1ede6e03c774c9e470a1a5a70
Reviewed-on: http://review.whamcloud.com/3624
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/llite/dir.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/llite_nfs.c
lustre/llite/statahead.c