Whamcloud - gitweb
LU-2809 llite: Do not return layout_gen for getxattr
authorJinshan Xiong <jinshan.xiong@intel.com>
Sat, 9 Mar 2013 01:07:13 +0000 (17:07 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 13 Mar 2013 20:40:15 +0000 (16:40 -0400)
commite7a884b7b06f99de7993245642be1b969887e92e
treefa4b104c803eb22789a2df1d3fa4dc15a6b33ae0
parentb8e8dcb521e6232c4c16eaac1aa3b38c1cbcc59f
LU-2809 llite: Do not return layout_gen for getxattr

The problem is that layout_gen and stripe_offset are sharing the
same field in lov_user_md{}. Layout gen would be wrongly interpreted
as stripe_offset when a backup is restored.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: If2c120bf861eeffd2db5f92e1d23cb1b9a2f5c63
Reviewed-on: http://review.whamcloud.com/5664
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: John Hammond <johnlockwoodhammond@gmail.com>
lustre/include/lustre/lustre_user.h
lustre/llite/xattr.c
lustre/lov/lov_pack.c
lustre/ptlrpc/pack_generic.c
lustre/utils/liblustreapi.c