Message ID | 1516107870-8110-2-git-send-email-anton.nefedov@virtuozzo.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> 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 61C2460325 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 16 Jan 2018 13:07:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 54D9F28474 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 16 Jan 2018 13:07:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 497612851E; Tue, 16 Jan 2018 13:07:37 +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 B89A828474 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 16 Jan 2018 13:07:36 +0000 (UTC) Received: from localhost ([::1]:35114 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1ebQxj-0004eF-OR for patchwork-qemu-devel@patchwork.kernel.org; Tue, 16 Jan 2018 08:07:35 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <anton.nefedov@virtuozzo.com>) id 1ebQvK-0002ck-LQ for qemu-devel@nongnu.org; Tue, 16 Jan 2018 08:05:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <anton.nefedov@virtuozzo.com>) id 1ebQvE-0006S7-TX for qemu-devel@nongnu.org; Tue, 16 Jan 2018 08:05:06 -0500 Received: from mail-ve1eur01on0113.outbound.protection.outlook.com ([104.47.1.113]:61824 helo=EUR01-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <anton.nefedov@virtuozzo.com>) id 1ebQvE-0006R7-Mt; Tue, 16 Jan 2018 08:05:00 -0500 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=dsW5Dvue9V06GEDP5Q82bTARDp3HcaDLxKkCrmvPaA0=; b=TOqn5IpKr4MulDbfwKVFsKH3im+phDEmQQkPz/kF5AMRr6GPK7xFpMmpLQe/9ocavVVJu5YVQhSwRAXIlDkj3mmE5qI+mQ0Pe/4cJBy3jE5UW9aiv2AZ4Zta7kXwFqLrzVxV01CufigoEsJBMDRD7khi3E7VcPLVo+Z36af+i+w= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=anton.nefedov@virtuozzo.com; Received: from xantnef-ws.sw.ru (195.214.232.6) by VI1PR0801MB2000.eurprd08.prod.outlook.com (2603:10a6:800:8a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Tue, 16 Jan 2018 13:04:58 +0000 From: Anton Nefedov <anton.nefedov@virtuozzo.com> To: qemu-devel@nongnu.org Date: Tue, 16 Jan 2018 16:04:22 +0300 Message-Id: <1516107870-8110-2-git-send-email-anton.nefedov@virtuozzo.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516107870-8110-1-git-send-email-anton.nefedov@virtuozzo.com> References: <1516107870-8110-1-git-send-email-anton.nefedov@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1P190CA0006.EURP190.PROD.OUTLOOK.COM (2603:10a6:3:bc::16) To VI1PR0801MB2000.eurprd08.prod.outlook.com (2603:10a6:800:8a::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 49001e23-ffd4-4236-9f93-08d55ce1bf72 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:VI1PR0801MB2000; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB2000; 3:U2YJX7sJH/ilgS5XA4U9OI/2Jzm0t802OyV/N7CPsmjyjckbtuVL+u3ukG2yvo2pt9hmeXGx6QPDhG3o07ywXgAigJEhDoMCkAOdzpTRyLsbGy6N0/TfLzO3Gm4B78NKFnkdiD6icw956rxYGPQzXsLIDakUSRiGGGKRdMAwxJiNAIyEW6gRqeySIXYKS+R2TGEx+gcHxy/yjYdxkUoK0TpD6YO/TW0Ffpp9Ny04aPgzwnAgI4kXoHVhqKF2G8jT; 25:PtOdUy0RdV/a4lrKiGyMI4ERMSnqdXIZFzFNnfFYqzPlkb5x3rpVbnYCQKS0KUjtyX4YAq4kJzSbY9SJ8nXbs2iMvdkdSICemfUyCSabigLMYsBW/QSqtltE/bSjdgbFcgvmer3pyKsK+Y4PrLNC4PZi5wGYcECPLdxEMQs/QNsfqyxzfqQjZUU80SiWlQaUHjYEuQ4Yyioyvi9ddYJKm4E+NJ473zhWA4qx5ffojKcc5Z40J4tqpKfM04JVYmdMPBvHDXYguwBonyvRhdtIe1jwMcVObIgP+y5BUWzqTKgyKGiAI7LyykfDpUoPLr2mk3bzEwlhGsaMj3lN+2y0IA==; 31:MjaOCbA7lwn6v6cMj9NVtvAbr2DpxNXMUgSmVALwkiek/t5aY6MqSTYaCAvdDnoVaF1PigR8MgB7TmV/Xedmkb7QfjahMl0VuI4eFgStc/QhEzYX8G4mkk8Ds2vUxC7ivxZJ1YQCgqsjNbPhFEyLVLxF8rd/r8Spz6Tb4JBtOeYiuXjOKvoi5BbM6Z+hF+oY7leBmux91A2AdrKNOOuYtyhDkuW5+jngOekUcIZyOro= X-MS-TrafficTypeDiagnostic: VI1PR0801MB2000: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB2000; 20:NNt69MEUdhXYWzJuXl3CEjT12A7NNpKtbWIeWTWKFVGpHNfy+uVYgaOyA79c6UwwX5Qhd1tpjqPi4KMXgXYFK+ahYb7Tz7g4DhirZo+4VR8KdLhpJ83+NdnlsaU1L/jQ3ZaG/ZyUO0oQ9y6yRNo8GOwZi8rnj3vsAsrE7KquckOgLyw/Be7VclbkcpM0dCiKYdF9Xz+GVTEEEuUQd6MaHHSIvJpzYhQalN8E0dfgzrDrJYkZtizQPew+Q25wH4Ofvg20BSFwx9gSASiTrY32tyPZyOw0s7zi6z3mnld2txv1OWglbeKrDV7Q0sDz9wfkQAS8k5qMRAUoqk4PuYjtgHMRiLquYHbMPywCAuNcK7cheD3dxOosmsbt+dwn0lKFT92+E3/O+RoemqDWuZTUZam7+fkfs3zdv2xyJVh6w2c=; 4:ZlH03MrOrR7+Vt/ZGS3H+n8Y7PfnKwuJhJNOACi2rAhND45Z7qkgM/DSwsNXzYkMtYRqUCaXg+sO7rokcyhzBYYhkDo19hU3J3uaSa4zVgkkXEHwOeFZpG08odxvhKJw8qN+U5iT+3rpaferfd++18TYTz9WRDtKQNbgeAxSymU5RdvhCudYT7RfBeXL1aAbDsrLcbFP/plJh5E81FaYNPnPyhDF5nymAndEOwsgzt4iYeTSir68EA09Vy/aNe6wVxt+BPxg/RiKwfNl9EMQ2A== X-Microsoft-Antispam-PRVS: <VI1PR0801MB2000403FE1FBBC7A75FDBC02F8EA0@VI1PR0801MB2000.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231023)(944501161)(10201501046)(6041268)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:VI1PR0801MB2000; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:VI1PR0801MB2000; X-Forefront-PRVS: 0554B1F54F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(346002)(396003)(366004)(39380400002)(376002)(39840400004)(189003)(199004)(105586002)(2906002)(48376002)(6916009)(2950100002)(5660300001)(53416004)(66066001)(6512007)(53936002)(26005)(50466002)(47776003)(16526018)(6666003)(2351001)(478600001)(36756003)(106356001)(2361001)(69596002)(51416003)(305945005)(68736007)(4326008)(8936002)(81166006)(386003)(52116002)(3846002)(25786009)(8676002)(81156014)(59450400001)(6486002)(50226002)(76176011)(6116002)(6506007)(97736004)(316002)(16586007)(86362001)(107886003)(7736002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0801MB2000; 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; VI1PR0801MB2000; 23:tNPr+2ZOPrz5nXrMMOyYH2N3d0YDjeAq5QS2OU3?= =?us-ascii?Q?/TzDCprJ1rSfnrIUSLikbXIRH+TLXDoaFGTFxPa+Q9xnaU7EO1tIqc8VcT17?= =?us-ascii?Q?J8eWJ0/NVdcn5zqOBjWGMk8xys3LZUpgXtugR6aZmdH/SP9ss3z3JSHkyEIz?= =?us-ascii?Q?5dQ/x8LwoFVXXcjrqnSsn2NtIXj2+xQqLEyoSXE4lomsG6gf8RjfTTIpAqpX?= =?us-ascii?Q?7YVCzuaMBBuHAz3z5mgD0duv2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SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0801MB2000; 20:upcDz/R+OgypMzvqWp6dXuEZTjSfXFd/TI9SU+DB7h2Xj+OVMD5x5Y7pQzLG6CZKGrvUD2EtajgY4mg3m/lHNBHyJkP+FHEnQS6gMgDy3+lQ90FuTduUicetaCJgLn0q6jXSsT/awtPeLn3vjp6BICsCzhPvkHCUGlKSI2vq+v4= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 13:04:58.4806 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 49001e23-ffd4-4236-9f93-08d55ce1bf72 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB2000 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.1.113 Subject: [Qemu-devel] [PATCH v6 1/9] mirror: inherit supported write/zero flags X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: kwolf@redhat.com, Anton Nefedov <anton.nefedov@virtuozzo.com>, 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" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/block/mirror.c b/block/mirror.c index c9badc1..d18ec65 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -1064,6 +1064,11 @@ static void bdrv_mirror_top_refresh_filename(BlockDriverState *bs, QDict *opts) bdrv_refresh_filename(bs->backing->bs); pstrcpy(bs->exact_filename, sizeof(bs->exact_filename), bs->backing->bs->filename); + bs->supported_write_flags = BDRV_REQ_FUA & + bs->backing->bs->supported_write_flags; + bs->supported_zero_flags = + (BDRV_REQ_FUA | BDRV_REQ_MAY_UNMAP) & + bs->backing->bs->supported_zero_flags; } static void bdrv_mirror_top_close(BlockDriverState *bs)