Scroll to navigation

libnvme_update_block_size(9) libnvme API manual libnvme_update_block_size(9)

NAME

libnvme_update_block_size - Update the block size

SYNOPSIS

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

ARGUMENTS

Transport handle
New block size

DESCRIPTION

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

RETURN

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

libnvme_update_block_size July 2026