Whamcloud - gitweb
LU-11186 ofd: fix for a final oid at sequence 11/33111/5
authorAlexander Boyko <c17825@cray.com>
Fri, 27 Jul 2018 13:10:23 +0000 (09:10 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 19 Jan 2019 06:27:31 +0000 (06:27 +0000)
commit1e855d9762c2f195010f46ff14bcdef0c4c733f4
tree4739b64d2683bb7cfe4e0cfe355e6838cfe951fc
parentcf796725fd39f0c807f60a86d2ddaa22e88c3a8c
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.

Lustre-change: https://review.whamcloud.com/32891
Lustre-commit: b724079edc5b66e1046b5760a6bad3045e9a9260

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