Details
Description
The LCME_FL_PARITY flag is in LCME_USER_COMP_FLAGS, which means lfs setstripe --comp-set --comp-flags parity is accepted today. This makes no sense – parity components require the full EC structure (data mirror binding, RAID sets, stripe count derivation) and cannot be created by flipping a flag on an existing component.
Block LCME_FL_PARITY in the --comp-set path:
- llapi_layout_file_comp_set() in liblustreapi_layout.c: reject LCME_FL_PARITY in the flags
- Kernel side (LOD): reject comp-set operations that attempt to add LCME_FL_PARITY
Add a test verifying the rejection.