From patchwork Wed Nov 1 15:44:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Nefedov X-Patchwork-Id: 10036691 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 30544602B5 for ; Wed, 1 Nov 2017 15:58:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 319382852B for ; Wed, 1 Nov 2017 15:58:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 25363285E6; Wed, 1 Nov 2017 15:58:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9F2B22852B for ; Wed, 1 Nov 2017 15:58:24 +0000 (UTC) Received: from localhost ([::1]:56448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9vPL-0002BC-Gd for patchwork-qemu-devel@patchwork.kernel.org; Wed, 01 Nov 2017 11:58:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9vCH-0008DD-2R for qemu-devel@nongnu.org; Wed, 01 Nov 2017 11:44:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9vCC-0006iA-If for qemu-devel@nongnu.org; Wed, 01 Nov 2017 11:44:53 -0400 Received: from mail-eopbgr40111.outbound.protection.outlook.com ([40.107.4.111]:9363 helo=EUR03-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e9vCC-0006gT-93; Wed, 01 Nov 2017 11:44:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=c/dp+wcv6Od1Yt2MK0UEZYJI/TxTA0l/hz5RZeIc/xw=; b=gj+rRZuyRO747w95QBlfz2BTEBY5pb70OT9zMxtUUR2c3GejhYNboCnDFmFcua6cJDsrL71Lmzz5ztrRMudl6k1Vh3QVJS0Xg6oYcf+soOuLEPLWv3J5DHySaUHo9BvKaLacJCjW2pCGy0M8yA/bSHi895F48aIptsZH9V1MBsU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=anton.nefedov@virtuozzo.com; Received: from xantnef-ws.sw.ru (195.214.232.6) by AM5PR0801MB1987.eurprd08.prod.outlook.com (2603:10a6:203:4b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.6; Wed, 1 Nov 2017 15:44:45 +0000 From: Anton Nefedov To: qemu-devel@nongnu.org Date: Wed, 1 Nov 2017 18:44:03 +0300 Message-Id: <1509551048-129830-11-git-send-email-anton.nefedov@virtuozzo.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509551048-129830-1-git-send-email-anton.nefedov@virtuozzo.com> References: <1509551048-129830-1-git-send-email-anton.nefedov@virtuozzo.com> MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: VI1PR0501CA0017.eurprd05.prod.outlook.com (2603:10a6:800:92::27) To AM5PR0801MB1987.eurprd08.prod.outlook.com (2603:10a6:203:4b::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fecfbe77-d3d2-41a4-678c-08d5213f7a9e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(2017052603199); SRVR:AM5PR0801MB1987; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1987; 3:xw9mh4z4LC/jGn1AsC7NFvOaJFD3xlU26m0rr2zaqd98SI69RcQjJ4Fg7J3F/g8T/4Tauzrs4T0XBSvZR9XEJfu4ah3fqOjXbcq+UQyBiExLpff0oUtqTQxmjEP5W7jPV8o2S+b690zYqPpgoabVa+NT4a4b1UsFqfoDFMWbRjfiNu0mEQz6GQgvBe9g3tJrsD23/WFoe/aUI0y8m2KOozo1GXL9wpLCq2hbJeVhtpVZOonRAF4JztLUlUEfJemW; 25:5MokDVZ3z8nD1Yew0aXunzMDf37FtcQ1PremesqEBYG9GQrPFjwhwKhRrZJ5Tby56NLZogfdbClMtr4wo7ivL0KPY/U4G5bDwVsBokL/nV98hipM8mL9sW1NJ2NaGnA5Ggs88R+Txa3Q0XFu5xgtBcGR/WtyWqi7CuvNuRmG/LwrWm/Tbbn4JVJu3OPO3M6daYF9GgOSXA8wNibzCFLP6NrEuOMe8CpgcWtyQIpDbcNIW/yvbRzHQRCf9KfTM1K+b50vYuiSi2SwzuJL81K5YQ4Mh+wFx4O9+QZ0N8m6gkVMa5l0fusArdc9D/R5O7TbGrxk2g1DPG5NY8ui9BwMbw==; 31:F8sF8dwnAYmI0Rarp5/UwSEKK8p/Fa655eYylICOut2syNhgteARZxE7Zb4afueD1x4ihn/R96FX7rA+FTtuk8XyYUxwkOn2dNnaNT6V+FyrFvsau/+ZQ/0XYlW7Nr1UV74+qKZSa16alGQa8sbCIsZuyKffd+xztpY0msehq9oh98DIupXDR8RzcWL3ZnLtUIhnsav/ydJl7hgMpoomRlqqOK0KSH2ruXnc0cKT2is= X-MS-TrafficTypeDiagnostic: AM5PR0801MB1987: X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1987; 20:RW8ljJ961cDADtyrZ4+mkexLZFZwkiFBnILgA1zrQ/Ds1tJtS57EzxZfidjZBHlZU8zC3FAjsGgoKTuiCOlXR+Iz3fBMf5RLMpTXG6voW8Hm3PP6HCI2PHsg7oFoa33d02EjcFG3a9nGt5l9rrc9lG1aveZBqjQsPYNuj2n8Rt/kz4BLDB1HkHAyA5fnR2EgmMg6BaxU4lC7mgc2381PJVPN8beOWLeCpDehTV3KJtaItJ7pwcGN625rWyk0S1Ug1q2esjYMP1owTwZvYaUY06qna7IpU/UVUxbTollVgH3RYvRKafFTGBK/amlLNpc/zn3UA+h48YWQUfvkXB00U9KdF1Bus2IqMlLF30ia3YqQdEpirwUomVjzGNzHKDafnSLmSvyFd+1udmkNXrW1vEikjoJm1uEpKTZzQpBJHSc=; 4:G/MudoK6tlmj5uDeuH11XRbjVXH9ejGuXwrEDJRiQdcT43R10Cw5wvP/i7B1wldDq1WWbctf6UoyuE5uXZVHOdsu5AV6U0A7hE8AR+uUponWrpdog0wSMNu25nFaWBbCwI9UrfYCt1JZcToOx6jzMMQ1QXeCohZ9SfMg+GLrIsKmeuXqDJdQ8xCtO9ug8UBCBhD2AV8p382XNfMRW25A9HPxYIqz4TY76TKycnyohGm6uc39cTxPEDQjBn56JuZfsB2R7WWJKj+JUdn62pl0HQ== X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3231020)(100000703101)(100105400095)(3002001)(6041248)(20161123555025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM5PR0801MB1987; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM5PR0801MB1987; X-Forefront-PRVS: 0478C23FE0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(376002)(346002)(189002)(199003)(6666003)(16526018)(53936002)(107886003)(48376002)(86362001)(6916009)(2950100002)(3846002)(6116002)(101416001)(50986999)(76176999)(106356001)(69596002)(5660300001)(25786009)(105586002)(316002)(53416004)(2351001)(16586007)(2361001)(33646002)(4326008)(5003940100001)(478600001)(66066001)(36756003)(50226002)(6512007)(47776003)(2906002)(8936002)(6506006)(97736004)(6486002)(68736007)(305945005)(50466002)(81166006)(81156014)(8676002)(189998001)(7736002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0801MB1987; H:xantnef-ws.sw.ru; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0801MB1987; 23:/eZHi8/YrG846MLRUQfwKJoxTD7mwmxb8IyLK57?= =?us-ascii?Q?BLS7jIczvViMtdvNN6KJvyxWoEGxm+0XGs4c0P1+bQbocHDtcypudJnldJkE?= =?us-ascii?Q?8F/HpyMbWGs/KOOJkTbNnkKq0oRhx96vGkM10Q/2V0y8kpyDU6ScvQ25Y9Ke?= =?us-ascii?Q?FatwMOvvfDehixQxucIWCrta/bd0AphZjBR/XDreBSQ4URHnuERd4Wk9V9kF?= =?us-ascii?Q?6HPTPwXgPTeNvgrauG2NqxABBAq+AZamcTiJLo5D1gbJltmEURRkBKnrFIVK?= =?us-ascii?Q?U8lx+CJxWw67gVLNiVROVu8OnMryFNG2/aNaS3w2Nw8CM4gmY7UaUc6R/leE?= =?us-ascii?Q?rg7e2HyTRlYegbYFAJUk01lnf4lr/nz+9CnUe3CLDaElHy/xOQWhspbYm0/M?= =?us-ascii?Q?xk5oo6EYD35E/TxtRXV5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ZnA7SXlRvTf/AZ74SYgdKoV5teu6DUSK3CHfNmBSK3QUwB0HVY+ubphXRhQeL5zCy9eb6u1KbWOvVutPl+BokxpKYeA0BctVDatZmNShYnKFCd/PizhwvrLJi/KYydGWDhzGRO97RSOBzATaSfy/Sb+/oT6jAxXz3hYYQH3UrF9wh+h8STut95ZY18H56dDPIx7YWPeRRqLYSB+9CM+IjzcDtMmNxM6UnL4yfZ1FEmtLgB8E8/bFtPFa46AI76xv1CViMlFcSzTsPbucs79I=; 5:efjeXTOMrFQL94ufwTeNyiBDo1eA9a3sKMcoQZYSsKfMut0T8/7oy2Lb/zL7SbpMXS75r1mSWd8xhwdQqzL+aU+90S6AxwvqASy+0MzMEYhtAeejjpcPXHikVL4E64u+iD4ztncntB31ESXW1vSYU0XpiRquRvLC0pSbubl2U2s=; 24:oO01HKRHxzlljODZsFtJPgo+dlf1EUwOMhxdIfa3vJmiFSP6Pgd6f8p0Wv6+vGiHJ5BBMMUGfTxdktNY2ht64K9V+Fgvk4uKu08sYIxZDDM=; 7:LIpawFe3CGMphZAXJf+orFZ6Ire/OKx6n06O6hjEIKXCSp05AEOoAMs1SGNyTo3PB0tQabnexcU56BkeUwIvdcI0lkpDVZTV42bM6vZRl5wXLaZNRChP/TNTH9ud81G2lazSUdXPFds6B1YYgzFVYuoVG0AC9L7/VYEvZj9TU6imO3oosmyagyEPanTbGiMqf8eyZiVNu8wNadigEefZseF3VRlvtyKSf161ZBAnFsKxOOw7PLT6SfJUJVzyd14h SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1987; 20:+HUFN7xXmq054aJ5Y/GNw1tKC3HzV0Bu5OqAjzO8mOZYfRHu/5aVKW9w/MBENDXuetkDZoHyEqlgtFM3cyIrUvEtNwXYu8AyZjTAMxra2UkIQhrumS2FKbr9bIKitENXvIGzrbUIC3K6oO8mB8RUPCje6SIkKbFwfYFtpBQHJ3w= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2017 15:44:45.8525 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fecfbe77-d3d2-41a4-678c-08d5213f7a9e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1987 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.107.4.111 Subject: [Qemu-devel] [PATCH v5 10/15] qcow2: set inactive flag X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, Anton Nefedov , berto@igalia.com, den@virtuozzo.com, qemu-block@nongnu.org, mreitz@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Qcow2State and BlockDriverState flags have to be in sync Signed-off-by: Anton Nefedov --- block/qcow2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/qcow2.c b/block/qcow2.c index 3899524..f41aaac 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -2184,6 +2184,7 @@ static int qcow2_inactivate(BlockDriverState *bs) if (result == 0) { qcow2_mark_clean(bs); + s->flags |= BDRV_O_INACTIVE; } return result;