Whamcloud - gitweb
LU-2990 osd-zfs: locate cursor to specified pos via load API
authorFan Yong <yong.fan@whamcloud.com>
Thu, 28 Feb 2013 03:25:48 +0000 (11:25 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 9 Apr 2013 05:59:16 +0000 (01:59 -0400)
commitaea3cfc62c101066910daf1f9f12a7848f04be13
tree22843945ff94ba898c0989d132ecfdbad6557cd8
parent2709cc886caaeeba428937f0bb791404f38b9830
LU-2990 osd-zfs: locate cursor to specified pos via load API

There was defect for zfs-based backend when traverse directory:
the dt_iteration API ::load() did not locate the cursor to the
specified position, then caused non-first directory readpage
RPC obtained repeated entries, and then caused readdir() loop
or unexpected dir hash collision.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I9c159f0f80677590869246dd9f30f0dfb9cc2fbc
Reviewed-on: http://review.whamcloud.com/5894
Tested-by: Hudson
Reviewed-by: Li Wei <wei.g.li@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-zfs/osd_index.c