libnvme_update_block_size-libnvme3(2)

libnvme_update_block_size-libnvme32

Update the block size

Usage

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

Arguments

hdl

Transport handle

block_size

New block size

Overview

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.

From nvme-cli 3.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.