From patchwork Fri May 19 09:34:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Nefedov X-Patchwork-Id: 9736775 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 AACB86034C for ; Fri, 19 May 2017 09:39:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC6D52889F for ; Fri, 19 May 2017 09:39:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A138A288EC; Fri, 19 May 2017 09:39:28 +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 7C45C288A9 for ; Fri, 19 May 2017 09:39:27 +0000 (UTC) Received: from localhost ([::1]:57482 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBeNa-0000fy-Gu for patchwork-qemu-devel@patchwork.kernel.org; Fri, 19 May 2017 05:39:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBeJY-0006k2-RU for qemu-devel@nongnu.org; Fri, 19 May 2017 05:35:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBeJV-0006n5-9g for qemu-devel@nongnu.org; Fri, 19 May 2017 05:35:16 -0400 Received: from mail-db5eur01on0136.outbound.protection.outlook.com ([104.47.2.136]:35055 helo=EUR01-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 1dBeJV-0006mU-2s for qemu-devel@nongnu.org; Fri, 19 May 2017 05:35:13 -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=lfE3i921NK14nqJr2DrPW3qSybdM6JTyY948wPUj1DI=; b=XqzoJzEfCbmlupSvsVJslhOd/pB+X7ndIFDVdJhk4cjdi6a4ha+ViPgFGz4eGkhddzpI9VwmkgB7aACH0JFdTBkA0IG0x+tKIn26xErOFRxvBfVxm9p5tQsPxgGfqOjqfIW2SlsNLoy1vVUrh8lCtuhuP8OR+Xkkk4NY+j/pfoo= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none; nongnu.org; dmarc=none action=none header.from=virtuozzo.com; Received: from xantnef-ws.sw.ru (195.214.232.6) by AM5PR0801MB1988.eurprd08.prod.outlook.com (2603:10a6:203:4b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Fri, 19 May 2017 09:35:10 +0000 From: Anton Nefedov To: Date: Fri, 19 May 2017 12:34:32 +0300 Message-ID: <1495186480-114192-6-git-send-email-anton.nefedov@virtuozzo.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495186480-114192-1-git-send-email-anton.nefedov@virtuozzo.com> References: <1495186480-114192-1-git-send-email-anton.nefedov@virtuozzo.com> MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1PR09CA0073.eurprd09.prod.outlook.com (2603:10a6:7:3d::17) To AM5PR0801MB1988.eurprd08.prod.outlook.com (2603:10a6:203:4b::15) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM5PR0801MB1988: X-MS-Office365-Filtering-Correlation-Id: 13f0b18f-f934-4135-dfad-08d49e9a589f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:AM5PR0801MB1988; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1988; 3:nJuhGutJRkI6FB2CKuEZYOUJCZqpCxwtirwPMCE+Bmm1Vnd7uQnTtSAPx0Xg8k8gI1Uee4GmJ8PizV9/0anZUKJ2IW0sAJMOXbqtZ7jcDbul/I3qTwAuKNyH+pF+Au66/qBJ02/OR9MlgsAKYoi0xGAsTM+WXiaImVBXbeXt+ajBvC0ZJ8/JC8BGz98aLCn5r4J7qDslRMjgkqk6zKuEEpo8GnRf6ebYdZqz5GlAkK2cHBFd2eC8TFTh80XgAUEkigecvpoX4dy783q9z1Rcs+qn7E2pZLpdBjy4AEDxGwKCUTvAcPOZQGN84rI3bPy1L9DE2bfn5q8Ref35GU0fcQ==; 25:L6gV6bma4UnSBK/8lxifRmF/kj7uEQRvB1VXttlq9grE8S4kdgU1SHVICBsILFQNXoU+l8BXQceXY6+42HJCwjhslrbkZdiulbtdJWk/HUoDyyd1ueNlxz+U+g3aAUuT/0fVEzyZkcj2yxDOF6uWUZiWZbbqQlxftN7Z/vhuzzgF68r6ia2duNwWTQ08jbp9frc94nqbAkyOyODHwuPuDvhyCBFVh+14yN80kWLCksC4p33+0RtqTVSZo1e97SAwtM6jc3/FFDMNQHraO0fl8vzALio63CTiwBFod63+V/RtQlReeSam/VS3T6SHxFpS5Qqij9IomWmwaa7+80yXG5asOil7elQvlJNH+zOJtsb0sgMz6KpSekGLl4v2ocFjLfEA3OyzMlVlLXSg7Kh0AjZL6eZFkxidvJhqs8p9WnzOlqLaXBZJpboPIHgIcL2MK8t94L+es1tr9Nz8eA0qV/VCy0OUwY3xu9K00LeHPA8= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1988; 31:dHAd30hRce7SJTWxDvXdx0fqWDqrf8F+JcbMN9b3hQYmnjZQ8W26eur6eYZRo1Wh5JkdqkPn1vgC88KdlbaTr3At4OhsGqoH6cn/VdU+DQXynIjyc9CdbsFCj6eS1vFhjzfSfKLrBFkwFgtfxpeQ9a4PFeU1m0U4QF44C8jimLGDjfiZb4pESqPwAJT68qHX/zzTEdoY7tNel1Ln79H+qQdTl5U65f3Ql412IgfF9UA=; 20:vFg4Yh3xaT06QPi8SNWOwUuFOmt/87wraJRvHM9/qtwtEMIzPil4pIQ7cW9GWlajVlae7UHbuV2REvDvSDTEvABO+VyTAwlnFJW+HGIUAUBexhhjIWO6jiDD0ESC5E0wE6df6WG2VECNhTD9me5fFt/7RcT8uQLF0JH2skDjkZ6BXiVnRqB34No+wPj4KX5vDfZjxHXeVZkx0XnmPF6I2pNnRCDcN5vAGr/GI/QRghB3VcJJxLrDCaVTRA4am1XFmJC0QajXpUF0TZTRV+6k6dd4jJWLVVrtKhjKVD2KNuMoRj2xB8ZuQBrXqCUpYr8R2RgJPmxZDk6ls7ASVIKwwBDBsfTbSaUfxV7AJBUJ6om6tbXKH5njgq2Rqqatic3u7h/PArDP2/XKm5CeTHsQrrITTz9Z5s+37aC0PMnIIPM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(10201501046)(6041248)(20161123555025)(20161123558100)(20161123562025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148); SRVR:AM5PR0801MB1988; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0801MB1988; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1988; 4:WmByN/HOHkYZPGmy0g67t754lxbnUoUN25639aAaHvFd2dVB9L8M5WPbj929MFYWeewayPeJUnI/V5Rzv+vqWbc+VYWcJeDa1liOstiGfB1+IIwyhUbeqLCFJR176jyXVsLS9vXcO9roiOFE7yK+yK877j6CIgqXwZrStcArAmMUax2H/fNNTeRShQGts7RBOIF8evc8ER7j35m2Bm9gw6GkLg191sa20WI+sznSmkjbhiEGck4ypZ6KcRaNJzl3y2br2jHRq96qN5TiuWZieGt8Kx5oIKFAM1XrIzvMFwulP1PHnq2ljVZJUoyZMMyYxThfKy/kTCmsVzOVeBE2pXdJUluJ+xofodYYYy4ZHFcKPjPVEXlExJPbvnlVIoxKNY9pijxeBGzoiVhbl6OezTjItmpKXvo8OuGuqgGLN97H6/g0NKOSK2Mer+YwEbYHtsiSgRKtFyFAvNpb92rOB0MH1oT/UvM6nJtdtpAJMNXgqRDMKYtl6DhCcCgPd0RZlZlc0za9RXelLUW9b7cRJshCrSLHKXvUOS+ay+53y5dnt30BFL0Fq9Won9Y/SokBMqR3WKTBvTiClPJ4aPqzBpr4KL251KdR3R75rRqRD/AAiq0/DzkrMNy4Q94ypI76xaBl6BGk1aPK3E/7cWEJpSGSGRiru512zxqjGGGEY4v05D2R57oVY/0P22kWtLEJsE6RS7YCefp3zg37EEEwg1chNbpXHy0leQBsqA62XF2SWIjQtv9taagsNq+D4+JqrUMCaBoovavmrum+3QmbIa9fiaNd0UDXj2VuRVEh9Js= X-Forefront-PRVS: 031257FE13 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39450400003)(39840400002)(39410400002)(39400400002)(48376002)(8676002)(7736002)(81166006)(53416004)(305945005)(50226002)(33646002)(5003940100001)(42186005)(3846002)(4326008)(25786009)(66066001)(189998001)(50466002)(2351001)(2906002)(478600001)(6486002)(6506006)(50986999)(6512007)(54906002)(36756003)(5660300001)(86362001)(53936002)(2950100002)(110136004)(6666003)(6916009)(107886003)(38730400002)(76176999); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0801MB1988; H:xantnef-ws.sw.ru; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?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SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1988; 7:EOS6qTkal9KLWSQ4mk5o97E/XDdjU3jsJ13IUtVIMQGlVAub349nH3kqMsv747MSX87H/R2YbbytdrX+RmhzHZqfEyEeiUs5J7laJJsyzqp+RGxuHsQ6v5NEnSJlVOf30a+0rTZ8VUoCAWctalExSKUyqsHGQmA1ctQQs07MfMOruICuiQe+RbhSyBdAkMWyad7SOwynZm3qDN5nF43y1ZMVKQKDFlYwbnKB2exIcuGPJt5Gyd4vW+qu7J8YHhsip9GG7WhtuO4mYqrEcpylvEkvq1+1AtuZsEMmYi6YtsWcxAAjOwNhdjTtAwu+rls297HJVS8VHlXTeisUStq5bg==; 20:wecDXAwR+ORijMD046QSdKvK5vduWk+4YsB/w2sshO3mPGwV9n8dqWMpz0zMwJjMG7eIyTln1RzNfUcIkBmzbnRwduF2nqr5e4NoPxBf6+OUqzDtq1m8cUGmYx0f4+uJcX6rFoDHdTSXDKFxWOs56qYHyZmxfNt8GdDml2BKRVE= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2017 09:35:10.9132 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1988 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.2.136 Subject: [Qemu-devel] [PATCH v1 05/13] 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 , den@virtuozzo.com, 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 6e7ce96..07c1706 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -1939,6 +1939,7 @@ static int qcow2_inactivate(BlockDriverState *bs) if (result == 0) { qcow2_mark_clean(bs); + s->flags |= BDRV_O_INACTIVE; } return result;