Whamcloud - gitweb
LU-15827 osd: respect filldir buffer limits
authorJohn L. Hammond <jhammond@whamcloud.com>
Thu, 5 May 2022 19:21:37 +0000 (14:21 -0500)
committerJohn L. Hammond <jhammond@whamcloud.com>
Fri, 13 May 2022 17:20:31 +0000 (17:20 +0000)
commitc6ebbdcaa6400d2004260e7819b6d96683ef40bd
tree6f94c585af3cb003bcad4382511e0a7ab86bbb7d
parentf2a6de7f7b0f1c2e0535198690fac9b3e6c82148
LU-15827 osd: respect filldir buffer limits

In osd_ldiskfs_filldir() ensure that the encoded name also fits in the
buffer. In osd_ldiskfs_filldir() and obj_name2lu_name() remove a
superfluous and potentially incorrect check on names that appear to be
FIDs.

Lustre-change: https://review.whamcloud.com/47224
Lustre-commit: 5879647624c834d4a579f425a0fc8d408235e275

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: I1540f058801b002474ceac1206317344cebb1084
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-on: https://review.whamcloud.com/47325
Tested-by: jenkins <devops@whamcloud.com>
lustre/osd-ldiskfs/osd_handler.c