blockdev: refactor transaction to use Transaction API
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Wed, 10 May 2023 15:06:19 +0000 (18:06 +0300)
committerKevin Wolf <kwolf@redhat.com>
Fri, 19 May 2023 17:12:12 +0000 (19:12 +0200)
commit8187f63c9c64c2f2322fc6730c478a57bc0ce9eb
treee6da9e0df786b70f7445ebbfc548eec30614513a
parentd009607d08d22f91ca399b72828c6693855e7325
blockdev: refactor transaction to use Transaction API

We are going to add more block-graph modifying transaction actions,
and block-graph modifying functions are already based on Transaction
API.

Next, we'll need to separately update permissions after several
graph-modifying actions, and this would be simple with help of
Transaction API.

So, now let's just transform what we have into new-style transaction
actions.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Message-Id: <20230510150624.310640-2-vsementsov@yandex-team.ru>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c