Whamcloud - gitweb
LU-11165 llite: set iflags and catch error from md_setattr() properly 60/32860/5
authorWang Shilong <wshilong@ddn.com>
Mon, 23 Jul 2018 23:45:59 +0000 (07:45 +0800)
committerOleg Drokin <green@whamcloud.com>
Sun, 16 Sep 2018 06:41:52 +0000 (06:41 +0000)
commitecc46547d1277520d12c388112faad9b45732d6c
tree6dc3a8cfa96d458fe4cae0e8b0ffc640195a89d2
parent09478ef1c43939bfb26de1bf2f9dad8766b979ab
LU-11165 llite: set iflags and catch error from md_setattr() properly

As John Hammond pointed out:
In ll_ioctl_fssetxattr() we may discard errors from md_setattr().
And we only set the local i_flags when lli_clob is not NULL.

This patch tried to address above problems.

Test-Parameters: trivial testlist=sanity-quota
Change-Id: Ib65ec61932b00f71367a8da6be67e3f94ebd5005
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/32860
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/file.c