On 1/3/24 03:49, Shin'ichiro Kawasaki wrote:
+_have_null_blk_feature() { + grep -qe "$1" /sys/kernel/config/nullb/features +}
The above test can only work if the null_blk driver is already loaded. Is it guaranteed that the null_blk driver is loaded when this function is called? Wouldn't it be better to examine the output of modprobe null_blk? Thanks, Bart.