block: add sg list size limits

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-15 00:15:30 -04:00
commit 86091c6acb
2 changed files with 7 additions and 0 deletions

View file

@ -30,6 +30,9 @@ struct block_device {
struct block_device *part_of; /* if it is a partition */
void *priv;
size_t sg_max_len;
size_t sg_max_segments;
struct block_ops ops;
struct disk disk;
};