sysfsを介してユーザースペースに公開されているブロックデバイス(パーティションではない)に隠されたファイルがありますが、どこにも文書化されていませんか?
どういう意味ですか?
ベストアンサー1
これはフラグの GENHD_FL_HIDDEN ビットを反映します。この設定を見つけることができる唯一の場所は、drivers/nvme/host/multipath.c ファイルに次のコメントがあります。
/*
* If multipathing is enabled we need to always use the subsystem instance
* number for numbering our devices to avoid conflicts between subsystems that
* have multiple controllers and thus use the multipath-aware subsystem node
* and those that have a single controller and use the controller node
* directly.
*/
nvme[0-9]c[0-9]d[0-9] 名に対してマルチパスが有効になっているが、nvme[0-9]n[0-9] 名に対してマルチパスが有効になっていない場合のコードはこのビットを設定します。