Whamcloud - gitweb
LU-4554 lfsck: old single-OI MDT always scrubbed 67/9067/2
authorNed Bass <bass6@llnl.gov>
Thu, 30 Jan 2014 22:56:20 +0000 (14:56 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 10 Feb 2014 16:01:49 +0000 (16:01 +0000)
commit9e3436c298d65a5867920b0de0d3920972465407
treeef3a0345598dc38ddf2989e6c93c33886a44b2ba
parent7fab2586f673ccae6a458984f5eda8137f456447
LU-4554 lfsck: old single-OI MDT always scrubbed

Old ldiskfs MDT's that contain a single OI container named "oi.16"
trigger an automatic OI scrub on each restart.  This is because
osd_oi_table_open() gets ENOENT opening "oi.16.0" and consequently
sets bit 0 in scrub_file::sf_oi_bitmap.  This bit indicates the OI
container 0 needs to be recreated, and it triggers a scrub in
osd_fid_lookup() for lookups that fail with ENOENT.  Fix this by
clearing the bit in osd_oi_init() after a successful open of
"oi.16".

Signed-off-by: Ned Bass <bass6@llnl.gov>
Change-Id: Ie69223d3f8289c90de46f9afe0a2de0e0625b0f6
Reviewed-on: http://review.whamcloud.com/9067
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
lustre/osd-ldiskfs/osd_oi.c