Whamcloud - gitweb
EX-7601 tgt: objcount in RPC must be 1
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 29 Dec 2023 19:49:55 +0000 (14:49 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 2 Jan 2024 08:24:16 +0000 (08:24 +0000)
commit45e2988cc535c1cc741df229443fbf3b6588e969
tree2047a1811fa48ef096ebdc05ae6fac22f50d97eb
parent6145e0f9780ddba00b34f1fd9f0ec8e7093627d3
EX-7601 tgt: objcount in RPC must be 1

Much of the BRW write code assumes objcount is one, but
there is some provision for multiple objects.

Since the code will break if we send it multiple objects,
add errors to make sure anyone changing it will notice.

This isn't strictly compression related, but compression
adds even more code which assumes this, so this protection
will be useful.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Idcbf33fd14d4b1bd179c9516bed07cca907008bc
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52990
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Artem Blagodarenko <ablagodarenko@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ofd/ofd_io.c
lustre/target/tgt_handler.c