Actions
Bug #47828
closedlibrbd: validate that the stripe unit is at least 512 bytes
Status:
Resolved
Priority:
Normal
Assignee:
Jason Dillaman
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Description
The only validation that librbd currently performs on the stripe unit is that it's a multiple of the object size. However, that technically permits stripe units of 1 byte. Restrict the minimum stripe unit size to the historical 512 byte block size.
$ rbd create --size 1M --stripe-unit 1B --stripe-count=32 image $ rbd info image rbd image 'image': size 1 MiB in 32 objects order 22 (4 MiB objects) snapshot_count: 0 id: 102bef4986b9 block_name_prefix: rbd_data.102bef4986b9 format: 2 features: layering, striping, exclusive-lock, object-map, fast-diff, deep-flatten op_features: flags: create_timestamp: Sun Oct 11 17:30:31 2020 access_timestamp: Sun Oct 11 17:30:31 2020 modify_timestamp: Sun Oct 11 17:30:31 2020 stripe unit: 1 B stripe count: 32
Actions