bdev_validate_blocksize(9)
π NAME π
this is the bdev_validate_blocksize(9) page from the Kernel API Manual β yes, section 9 energy, bestie. The whole flex? Check that this block size is acceptable. periodt. π
β¨ SYNOPSIS β¨
Hereβs the exact signature, no cap:
int bdev_validate_blocksize (struct block_device *bdev , int block_size
);
πΈ ARGUMENTS πΈ
bdevβ the blockdevice to check. Thatβs the block device youβre running the vibe check on. π«Άblock_sizeβ the block size to check. The number youβre like βbestie, is this okay?β about. π
π¦ DESCRIPTION π¦
This one is for block device users that do not use buffer heads or the block device page cache. For those peeps, it makes sure that this block size can be used with the device. Itβs giving compatibility check, not a whole new thing. πβ¨
π RETURN π
On success, zero is returned β iconic 0, we love to see it. On failure, you get a negative error code. Not iconic, but informative. π
π«Ά SEE ALSO π«Ά
Kernel file: ./block/bdev.c. The whole crew is here, and yes you need all of them:
bdev_freeze(9)bdev_thaw(9)bdev_deny_freeze(9)bdev_allow_freeze(9)bd_may_claim(9)bd_prepare_to_claim(9)bd_finish_claiming(9)bd_abort_claiming(9)bdev_open(9)bdev_yield_claim(9)bdev_fput(9)lookup_bdev(9)bdev_mark_dead(9)
okay thatβs the page! signing off from source ./block, dated October 2026, with Kernel API Manual energy. mwah πβ¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms