Untested patch. Hoping to convey the change that's needed.
- decouple emitting a cached_dev CHANGE uevent which includes dev.uuid and dev.label
from bch_cached_dev_run() which only happens when a bcacheX device is bound to the
actual backing block device (bcache0 -> vdb)
- update bch_cached_dev_run() to invoke bch_cached_dev_emit_change() as needed; no functional
code path changes here
- Modify register_bcache to detect a re-registering of a bcache cached_dev, and in that case
call bcache_cached_dev_emit_change() to emit the uevent needed to trigger SYMLINK generation
Untested patch. Hoping to convey the change that's needed.
- decouple emitting a cached_dev CHANGE uevent which includes dev.uuid and dev.label dev_run( ) which only happens when a bcacheX device is bound to the
from bch_cached_
actual backing block device (bcache0 -> vdb)
- update bch_cached_ dev_run( ) to invoke bch_cached_ dev_emit_ change( ) as needed; no functional
code path changes here
- Modify register_bcache to detect a re-registering of a bcache cached_dev, and in that case cached_ dev_emit_ change( ) to emit the uevent needed to trigger SYMLINK generation
call bcache_