Reference

libnvme_reread_partitions-libnvme3(2)

Reread the partition table

NAME

libnvme_reread_partitions - Reread the partition table

SYNOPSIS

int libnvme_reread_partitions (struct libnvme_transport_handle *hdl );

ARGUMENTS

hdl

Transport handle

DESCRIPTION

Ask the kernel to reread the partition table of a namespace, e.g. after the namespace has become readable again. This should only be used for namespace handles, not controllers.

RETURN

0 if the partition table was reread or a negative error code otherwise.