buf.h: New error type and field for logical block no
Kconfig knob for KASSERT and add some asserts