Whamcloud - gitweb
LU-4838 osd: object iterator in zfs to sync before iteration 38/9838/4
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Fri, 28 Mar 2014 06:39:52 +0000 (10:39 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 17 Apr 2014 18:16:54 +0000 (18:16 +0000)
commitf26aec12013fa84332911220f8416d2b21bdbe65
tree021fc36ebc1e0183709912cf451b4240a058c2e5
parentc36e8784ebc616443fb6b9205559150d005c78f7
LU-4838 osd: object iterator in zfs to sync before iteration

The issue with dmu_object_next() is that it doesn't expose
non-committed blocks in the metadnode. Therefore the iterator
doesn't find dnodes allocated in the current (non-committed)
txg which breaks testing and may affect LFSCK. As a short-term
solution, osd_zfs_otable_it_init() ensures the current txg
is committed.

Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Change-Id: I639f37ced5790d1e1514c3e24594e360fcd6c1a8
Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-on: http://review.whamcloud.com/9838
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/osd-zfs/osd_index.c
lustre/tests/sanity-lfsck.sh