|
From: | Vladimir Sementsov-Ogievskiy |
Subject: | Re: [PATCH v2 3/4] mirror: Make sure that source and target size match |
Date: | Tue, 12 May 2020 20:16:25 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
12.05.2020 20:15, Vladimir Sementsov-Ogievskiy wrote:
+ } else if (s->bdev_length != target_length) { + error_setg(errp, "Source and target image have different sizes"); + ret = -EINVAL;Seems, the only case, when mirror_run() sets errp. And, therefore, the only correct one..
the only one failure case I mean, of course. -- Best regards, Vladimir
[Prev in Thread] | Current Thread | [Next in Thread] |