Whamcloud - gitweb
LU-2904 llite: return valid fsid for statfs 93/6493/3
authorFan Yong <yong.fan@whamcloud.com>
Sun, 19 May 2013 17:00:21 +0000 (01:00 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 10 Jul 2013 02:29:51 +0000 (02:29 +0000)
commit8c4f4a47e051b097358818f4d3777d02124abbe7
tree17138aed20a2635b4b57f0b1de8a7df2e7b5023f
parent1ea94be2430b358b898642461d9f111adeed9e70
LU-2904 llite: return valid fsid for statfs

Lustre uses 64-bits inode number to identify object on client side.
When re-export Lustre via NFS, NFS will detect whether support fsid
via statfs(). For the non-support case, it will only recognizes and
packs low 32-bits inode number in nfs handle. Such handle cannot be
used to locate the object properly.

To avoid patch linux kernel, Lustre client should generate fsid and
return it via statfs() to up layer.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ie292b26726a1b2aa7a763ef7c0507e3ed089323b
Reviewed-on: http://review.whamcloud.com/6493
Tested-by: Hudson
Tested-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/llite_nfs.c