Whamcloud - gitweb
LU-11186 ofd: fix for a final oid at sequence 91/32891/5
authorAlexander Boyko <c17825@cray.com>
Fri, 27 Jul 2018 13:10:23 +0000 (09:10 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 9 Aug 2018 18:18:37 +0000 (18:18 +0000)
commitb724079edc5b66e1046b5760a6bad3045e9a9260
treef0f71da96bae4f2421b7201b4b8a6063fd07bbb4
parentd01fc74e8a347a0c8ebfcf92a49c7f71809cd0ad
LU-11186 ofd: fix for a final oid at sequence

There was an error at the end of sequence range and last oid
0xffffffff can't be created. The 0xffffffff is a valid oid, and
sequence update happens only if it is created.

LustreError: 11756:0:(ofd_objects.c:217:ofd_precreate_objects())
lustre-OST0000:0xfffffffe:10737419264 hit the OBIF_MAX_OID (1<<32)!
LustreError: 11756:0:(ofd_dev.c:1764:ofd_create_hdl())
lustre-OST0000: unable to precreate: rc = -28

The patch fixes this error.

The conf-sanity 122 is added for checking sequence update.

Signed-off-by: Alexander Boyko <c17825@cray.com>
Change-Id: I39ad66c05e8358591ca05fadabb2b46bee638070
Cray-bug-id: LUS-6222
Reviewed-on: https://review.whamcloud.com/32891
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sergey Cheremencev <c17829@cray.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd_support.h
lustre/ofd/ofd_fs.c
lustre/ofd/ofd_objects.c
lustre/tests/conf-sanity.sh