[Devel] [PATCH vz9 1/3] dm-qcow2: cleanup function names

2022-11-14 Thread Alexander Atanasov
prefix dm-qcow2 functions with qcow2 prefix. Prepare to allow injection fault which needs unique function names. https://jira.sw.ru/browse/PSBM-143155 Signed-off-by: Alexander Atanasov --- drivers/md/dm-qcow2-cmd.c| 10 +- drivers/md/dm-qcow2-map.c| 206 +

[Devel] [PATCH vz9 2/3] dm-qcow2: enable injection fault

2022-11-14 Thread Alexander Atanasov
Instrument dm-qcow2 functions to allow injection fault. https://jira.sw.ru/browse/PSBM-143153 Signed-off-by: Alexander Atanasov --- drivers/md/dm-qcow2-cmd.c| 5 + drivers/md/dm-qcow2-map.c| 4 drivers/md/dm-qcow2-target.c | 12 3 files changed, 21 insertions(+)

[Devel] [PATCH vz9 3/3] dm-qcow2: add device name to log messages

2022-11-14 Thread Alexander Atanasov
dm-qcow2 uses pr_info/pr_err for logging but it does not print which device the message is about. Add device name to log messages to make debugging easier. Messages are in the following format: dm-qcow2: dm-31337: log message here Where 31337 is the device minor number which corresponds to /dev