Whamcloud - gitweb
LU-10850 fld: handle empty ranges in fld_index_init() 71/31871/2
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 4 Apr 2018 15:13:16 +0000 (10:13 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 6 May 2018 03:41:56 +0000 (03:41 +0000)
commit9b5337b695be699ce289d5f509436286d4d7185c
tree9a52828c743ee4efef136c56fa333c6134a23e0d
parent6c617a3d56e4b84dcc4e76ff0eebcb177b227ac3
LU-10850 fld: handle empty ranges in fld_index_init()

In fld_index_init(), ignore the empty range corresponding to the
zeroed-out phantom record that is included in newly created ldiskfs
IAM indexes. (This phantom record will be removed in a subseuent
patch.) Ensure that lfs_new will be set when the FLD index was empty
of valid ranges. (Previously it was properly set on ZFS backed targets
but not on ldiskfs.)

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I9850eac686e1488ffbd627f100075ce6f29200d8
Reviewed-on: https://review.whamcloud.com/31871
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/fld/fld_index.c