libnvme_update_block_size(9) libnvme API manual libnvme_update_block_size(9)

libnvme_update_block_size - Update the block size

int libnvme_update_block_size (struct libnvme_transport_handle *hdl , int block_size );

Transport handle
New block size

Notify the kernel blkdev to update its block size after a block size change. This should only be used for namespace handles, not controllers.

0 if the block size was updated or a negative error code otherwise.

libnvme_update_block_size September 2026