From patchwork Thu Jun 1 15:14:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Nefedov X-Patchwork-Id: 9759831 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 395BF60375 for ; Thu, 1 Jun 2017 15:22:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A20B284F8 for ; Thu, 1 Jun 2017 15:22:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1ED9B28506; Thu, 1 Jun 2017 15:22:05 +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 84058284F8 for ; Thu, 1 Jun 2017 15:22:04 +0000 (UTC) Received: from localhost ([::1]:45204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGRvH-00050V-KE for patchwork-qemu-devel@patchwork.kernel.org; Thu, 01 Jun 2017 11:22:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGRod-0000Gk-5t for qemu-devel@nongnu.org; Thu, 01 Jun 2017 11:15:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGRoa-0004hZ-0U for qemu-devel@nongnu.org; Thu, 01 Jun 2017 11:15:11 -0400 Received: from mail-eopbgr40094.outbound.protection.outlook.com ([40.107.4.94]:49888 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 1dGRoZ-0004fj-L4 for qemu-devel@nongnu.org; Thu, 01 Jun 2017 11:15:07 -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=ulcwKxAi/eTMffG/43F01jmTDeBVEd6Pa1OPa9lM8qY=; b=DXraiFlJXInU14TDmWhxpoOuqKaLuWc5iJDxILMeWEwOIwVRXmZ63zTYC0qbKSbKZw+Fbz/cvl54H41q3RoQnYjKxZ4niEox4TvCcM/3j0aJv6avxfcjiSUa94pOyEEOFlK1FG01ubeWDwlWfWJnPFdYfIcjjf1PKfInyzn7SNU= 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 VI1PR0801MB1999.eurprd08.prod.outlook.com (2603:10a6:800:8a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Thu, 1 Jun 2017 15:15:05 +0000 From: Anton Nefedov To: Date: Thu, 1 Jun 2017 18:14:25 +0300 Message-ID: <1496330073-51338-8-git-send-email-anton.nefedov@virtuozzo.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496330073-51338-1-git-send-email-anton.nefedov@virtuozzo.com> References: <1496330073-51338-1-git-send-email-anton.nefedov@virtuozzo.com> MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: DB6PR1001CA0005.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:4:b7::15) To VI1PR0801MB1999.eurprd08.prod.outlook.com (2603:10a6:800:8a::20) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR0801MB1999: X-MS-Office365-Filtering-Correlation-Id: bb22b64c-0a26-4e67-abd5-08d4a900fbf0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:VI1PR0801MB1999; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1999; 3:fFDjXNXiZjbriCbYkZ3nvXBoFEpI2EGt3OkTnr2WRifDaNuN6GIPr4j2zXZckDYCOPRmUFEHbRKL0Hb+M/My9T0YpbYHH5PoQbuk/e/I65zvZfBIHuhPvm10NB2ZNrJeMsfbJhxGX+CpcpbY0Ww5kmF3Gv+2GJrsnHKJbgjyGXeR6TjbVMkMsdynJmjD3Q3JiXN7+Wsv6suDzZSZgae80bwPK06rDjyjEDpjRKVek9iuVm5Z2WKMUeyUCS6zOZMA4aYSgIyJaqDERnFekaXaimZFPZlzN4rRlNO60QvlFqzxsOEX7QZgut1tG+vgfZ2DVGdjiIauXr1bzSiD7GmjPw==; 25:Qsnl6npAykT1vJbYWj9CpVHw7kbFiX7P+XRcCxCP/4zwy6AZcWkqMC8yr/M+8Mhjs2DtfqJb3ZLaxTXUugJ84eLdYhbXc4ginBcQblJAk0OV+KH4uLfCGIYuA6HjeIkU4VVapaY+IX86bN4FsNAKa/SXSyQbnAfP9Hx/jsohI96Y2zAp4gSunUPRMaN3VpmoGWwwm4xORBwvkuctCFmLrLYrxyvWBf2680Bd3YmjbbR2wTy6VRDOFniY93Mmy+Sz+Ov/O0AV2bGnmRnQ6dGBVqv4l4d3E9j9Ans/Dde9y+X+0hM0nn1AFHDrN3GjfRRwaHCOWiuuNiovkfYnAy5l+NyzdeyVU1FMWcNSThajHqH8tI1/sJJN5d+w0aPNVhiZ5Fye124EwP70Ej9QqTl374uJCVs/7zLLcnRCZBjFk3E1gTnSlKq8nZAPXErIeoCXbMPcgYViz+mQ6UcKo+i6X8d6Tdq8PesQ/SQ5wYPFDhQ= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1999; 31:N0iZzomtllYQCw81tzzSmzUSKvHk0SL/+5UlcAHkl/HTYVsboL8WOT+7wVriRo7u982g7ZSoWOX4lFRBTWXMXRPMZw1HOlNawUNufQrFrl8uDncdVqdqQwsdFuruAW54x2fQTVvSSzUlsFMxRmpnNtLqS38a7jLeMBRRhw+B72sU2w35LxpYUnVNZnr3d9v9d3u72n4zmdxkPDQfyTzN09JVMukI4yZIE17Z5MYfuOI=; 20:OdH7qdymZ++IWxceSlGynptRssMnaFzDPtkFcXJVl21ev2xLQ32FEGseizNFzTxq4tYLLtq2VViHOrgVB8hEB3czAjIHtWJnoUNRvO/qI9TbJD/F9tRdG/A9qFC5dFeDplo7b/fIgU9/STJVYZL10DgfYdVacVYjJq/PIKbr0G8xdEz72NJYTNMbApCJ3wD75gXOf5poE4qQFkdvHVaxAH6uuragBx1t+uzQBvjJfi28v2MszZob3Gx382PeQLQ2znzadXsHr3qqWHiuNIDtHv/28gEV+UT3x3rRhsreUKlpx/+bE3Uaqhr8IiRyllLgRJWFTO/CvoUkR9K+BzJv+PtpeFBfLIAbqR7boP6zoGwbWXziuPQfpAZkVABACHrSfDdAk4spWg31uTQu1zwut7rGTzjUZGkh+HSHig6IhMA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6041248)(20161123560025)(20161123558100)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR0801MB1999; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR0801MB1999; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0801MB1999; 4:lj7sSGcHwPxiLjfrjXey5PlMEJshmr6VWrhDsAvm?= =?us-ascii?Q?JmnNMB65j0ly+KH3EitCOOGSmRBEA3eTHSgJacjNnElnMbg3GSsdtsoPOSk6?= =?us-ascii?Q?MTMQQwKp+Xzuv+ZZKUG23aVRD9YfjXPQ7cxfJdknbEDHgBcDYdKJA9XjVb1g?= =?us-ascii?Q?kbYeZWMgDns0fvw0VgS3wjQuxvOe+E7ybyV+SGbOqwNQq3wrmWwblZc59QlQ?= =?us-ascii?Q?qX4NlhICwYRmlFWuMUFJ2rPxgqUgjVWNR3AECDQbd8G1GbjLoByboZQyvCXD?= =?us-ascii?Q?o7wBBztmq4NHKCHJYgeiLqH5B4R0Ln4+uEpb0TRJapUCDzuTwb0e9uQxYduv?= =?us-ascii?Q?jKtGbzORkchXrvetWKqDL1H5pDViTEVrcH6uxVLOzbCZbh7/aYPgp8QtcKVp?= =?us-ascii?Q?VFni7QxZSKzWK+raDYz0Xgn2xa9Dc8aVkLiOTHdjq79vgvGIUu0elfrgrlKF?= =?us-ascii?Q?Eu40z5F7EHeAYTDSV28SAgRf3wuOgdE62Os0DLBs0ZXBe18yjq4c/K/C1OMr?= =?us-ascii?Q?hPRe65S3fmBPwMi7nKjjl6KNfMbT5iX57H2TqRiPbur8EVux2nLPrDZ3LItx?= =?us-ascii?Q?r8dAE5/n6oz9pvz+dVQlK2Nnbzi1H0oL/d29ME6vOQSi4fbvKmBcMZal+Izh?= =?us-ascii?Q?5f3E3xHg0Wb3i6wuUyqqyC/IWH8l9FQaYGVyCFC+LetrM64ljU6U0D63E9or?= =?us-ascii?Q?hAZV0cjt9+JypW7Ag65F4r4N+pY0PdNzO3oycpLsJMNsig7PJN7JUd20N57D?= =?us-ascii?Q?tK8OjYbb3UVrcgiAxWRMg3Xh+M4wbqZgH0+R1kf/Z1543V5hNITali/8zJUv?= =?us-ascii?Q?emUQTZ2Qpbo+dv/82s0+3beyKOpa7W13WkSoeTYri622oXrmU8E+xuD3NYyp?= =?us-ascii?Q?1E+LeawM40yoIH+T0XVSpKdXRAt4YuvuSFnhcDwxAAz1+6H79ZWya5nvfRwD?= =?us-ascii?Q?emeuS/I24I6R754NTOTbwU1GqSajrUu7vSAKsHsz6USuQihibITk1oDftyGq?= =?us-ascii?Q?wstfitsktvI9kZFSS+TQOV2PQcvuE4Wh+E1AAOnwrgn/d0/f3QTy0CU9cxFF?= =?us-ascii?Q?+hAi54Hk1gcmye+DO0EafpJqo7o9WE8OxLTTWU1y35Psh0pqryUvilzbctQ6?= =?us-ascii?Q?kzanxRrYaJTvtzFwRSVAg0+KPQbbV9+I?= X-Forefront-PRVS: 0325F6C77B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39830400002)(39450400003)(39400400002)(6916009)(6666003)(6486002)(7736002)(478600001)(5660300001)(305945005)(54906002)(53936002)(4326008)(6512007)(6506006)(2950100002)(110136004)(107886003)(3846002)(50226002)(8676002)(66066001)(42186005)(81166006)(38730400002)(25786009)(6116002)(76176999)(50986999)(47776003)(86362001)(5003940100001)(2906002)(2351001)(36756003)(48376002)(50466002)(33646002)(53416004)(189998001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0801MB1999; H:xantnef-ws.sw.ru; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0801MB1999; 23:W1ZRzMNVmi0Gc7IJl6m2ECZAnJW9i0G2uFaCR+C?= =?us-ascii?Q?l2ye7/dDNzmgC74wcKvBnjMhI8PXKXMXLnyjbLY/0Rbynl7/IVCXie7Uz7qo?= =?us-ascii?Q?hI4RCez0LuR4PXK3pywsa5n0cPJhhe7ALlxx6AXqglsVlZ3sDO4UnaZKlnTx?= =?us-ascii?Q?yNLny4RaqJ+7iWVuqpMu5N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LsAcGx68/u0rvvbko+gaYy2KthtLE+87lI4ggqkhKzvJCOgNY/MJ2/qAEUrwtdwx0anoW2I; 24:Ec/VN9bPwG2bsR1vD+FsHFR27rCO+2mwurdRayuGn9Ar+0pFKSuo55AjENtvGTl4tso29BvRsnbhH3PuSVSHXhK3DmSUK+TInmoGTAnu3Sc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB1999; 7:g1US/8cMcvGzFHNk1KfsVxGhb2YeaSZeXjHGUv7WttXGZJqo4AgSugezQ8b1Pq6PREbN8pXyZoPSeDxzXPqs+eN/bk+Hv5toCfaHVWuyCp+WQNbizjrFHzIcjDvEMoAgOaBiVdfwfbLQBxu/oBCZaM8JMMUTlfOqOFGbFAaRfuEFopDCHzT7IlVf+Yrz/gVGCji+eK+rg3gyhw8QG+ZrK4zESdqWh8eX8RwB6uT9ICOuBjefDXA35f5VaACjtILoBxYvQGacYhJpqbZxEp/O6gZtl4yX4yFcMash8tFMSy6FylB3KN4fTOLqPtTaJkH8j62bO9qLq9YUoOo6PU2K6A==; 20:5TAeOIK9+Dhdn9vOk2F5yD7x7pUcDMRRGX2PNR202H5ysKY1BZYHxkmNV9U5P9ZzxAe7aC7ekIHPgQ3j9q9JW5QL46f/7Y9MBXWd1G5Ns+PsDaDZMyuakay7Yt4Ltzep0ZoUshkCyXQEjJwe8mZzj3V//N23Mm47PW72c0wu3Cw= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2017 15:15:05.0061 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1999 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.107.4.94 Subject: [Qemu-devel] [PATCH v2 07/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 , 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 c6fb714..b090833 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -1932,6 +1932,7 @@ static int qcow2_inactivate(BlockDriverState *bs) if (result == 0) { qcow2_mark_clean(bs); + s->flags |= BDRV_O_INACTIVE; } return result;