Skip to content
  • Keith Busch's avatar
    NVMe: Automatic namespace rescan · a5768aa8
    Keith Busch authored
    
    
    Namespaces may be dynamically allocated and deleted or attached and
    detached. This has the driver rescan the device for namespace changes
    after each device reset or namespace change asynchronous event.
    
    There could potentially be many detached namespaces that we don't want
    polluting /dev/ with unusable block handles, so this will delete disks
    if the namespace is not active as indicated by the response from identify
    namespace. This also skips adding the disk if no capacity is provisioned
    to the namespace in the first place.
    
    Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    a5768aa8