Whamcloud - gitweb
LU-2677 utils: fix swabbing of f_oid
authorAndreas Dilger <andreas.dilger@intel.com>
Thu, 25 Apr 2013 08:45:06 +0000 (02:45 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 2 May 2013 06:04:03 +0000 (02:04 -0400)
commitcf79d2fa5de4ccb43b9d7513c8a3b2bffdd4c714
treeb060e8c504af3866709c16fac402d3fd80d4e466
parent20b181a079e05359f5d54d6d361ff7f2e455d783
LU-2677 utils: fix swabbing of f_oid

In ll_recover_lost_found_objs it is using le64_to_cpu() to swab
the f_oid field, which is a 32-bit value.  Swab it correctly using
le32_to_cpu().

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I2679b49dc16351140dbd1170b17056489c3ebbe5
Reviewed-on: http://review.whamcloud.com/6159
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/ll_recover_lost_found_objs.c