Reference

libnvme_update_block_size-libnvme3(2)

Update the block size

NAME

libnvme_update_block_size - Update the block size

SYNOPSIS

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

ARGUMENTS

hdl

Transport handle

block_size

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.