[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 6/7] qapi/block-core: derpecate block-job-change
From: |
Markus Armbruster |
Subject: |
Re: [PATCH v2 6/7] qapi/block-core: derpecate block-job-change |
Date: |
Thu, 18 Jul 2024 13:01:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> writes:
> That's a first step to move on newer job-* APIs.
>
> The difference between block-job-change and job-change is in
> find_block_job_locked() vs find_job_locked() functions. What's
> different?
>
> 1. find_block_job_locked() do check, is found job a block-job. This OK
Do you mean something like find_block_job_locked() finds only block
jobs, whereas find_job_locked() finds any kind of job?
> when moving to more generic API, no needs to document this change.
>
> 2. find_block_job_locked() reports DeviceNotActive on failure, when
> find_job_locked() reports GenericError. Still, for block-job-change
> errors are not documented at all, so be silent in deprecated.txt as
> well.
>
> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH v2 6/7] qapi/block-core: derpecate block-job-change,
Markus Armbruster <=