Message ID | 1509551048-129830-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 4C8DA602B5 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 1 Nov 2017 15:52:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AB5128C82 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 1 Nov 2017 15:52:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F04928CA1; Wed, 1 Nov 2017 15:52:52 +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 B8F7028C82 for <patchwork-qemu-devel@patchwork.kernel.org>; Wed, 1 Nov 2017 15:52:51 +0000 (UTC) Received: from localhost ([::1]:56409 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 1e9vJy-0005Vg-Sc for patchwork-qemu-devel@patchwork.kernel.org; Wed, 01 Nov 2017 11:52:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <anton.nefedov@virtuozzo.com>) id 1e9vC6-00083F-Uq for qemu-devel@nongnu.org; Wed, 01 Nov 2017 11:44:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <anton.nefedov@virtuozzo.com>) id 1e9vC2-0006bT-Bv for qemu-devel@nongnu.org; Wed, 01 Nov 2017 11:44:43 -0400 Received: from mail-eopbgr40123.outbound.protection.outlook.com ([40.107.4.123]:6102 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 <anton.nefedov@virtuozzo.com>) id 1e9vC2-0006b4-2G; Wed, 01 Nov 2017 11:44:38 -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=m1u5q76UOEfifufmTeTQPpaxWyVc6T3RgUvNihrAXCk=; b=PALtiawT940W7S5fpo6cjMUT5vEa9WrUYPOvzfSxBO0v4py8/Se9XhGIYP4DSHjhq8R5TRfzbQ3euzI2aaiXiHl9yx1IH9Oc98YYTdXHhkGJkuJGnzTUzQhQuCaEDwYkVkw7h+dUJ8HmWZ3YlWJPWmQG0hIre94drl6L5xTVMJQ= 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:35 +0000 From: Anton Nefedov <anton.nefedov@virtuozzo.com> To: qemu-devel@nongnu.org Date: Wed, 1 Nov 2017 18:43:54 +0300 Message-Id: <1509551048-129830-2-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 Content-Type: text/plain 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: 30a44e50-7e34-4b4b-fe6b-08d5213f7441 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(2017052603199); SRVR:AM5PR0801MB1987; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1987; 3:P5oUFKWSUX1jJIZE6boGkTNlqfL9xVWG+f2kNfMTmFgWW/pfJX4NoSqDU/ShPOguuPvWAsoWdoZ4lfhu91cC5KVsz7Hm2O2kBiSAgsCtqkYSVt3/Pl8eQ6NXW0B6gJLxi6v5UDYAIf7Z9FuQc7NZ2MSvZLLo8a1L7F0JNOGzth4mcz238hTp7nllYNAMNWUlq9/ZIGl9TrfvNVgL4KJKX3Iedz2ZI3YWEpqOkKBi0JIYNxMXFspLy/2EzOeVj1XM; 25:uIJLwV7S1P59wPOrdKVa3OvPFLm1+LTQWvxCthtGbCJkN3bijPntAOqmw/RVIrwaD50FF+cX/JFkxvjJXnCy/6ZMNZf6RWHUj+lSq8KloCpTXByjWYQuu+TkTxz5nQ/LkvwmTZl9JUkMmpCr8xr1A8TyRrRU6rSt+xXa4S0d509dPHdYj3eqhut2b+DR1fES69ZP8LH/E0Cq8jcIXf3gzG/K0rww6VEJetz84+AWRdBlXasJ+EMisL11c4UII+iY2F6sXZjgxiR+maCifca9HAR6tyxv5og8x1O8GAfPCDWg1MJs40QbOXN6dlW5dbHizmiNc+lN4JgW/dQ/fKEVPA==; 31:NqlgZIDYMe00GWFljPJtg0gRByM/DlpA7ehE273cQ88DuXs4fN9DJhHq9NH1jZANTH6OilJeEUz8ieIe471VQY2+oq1uKLMMuPUDfmXAHZSjDncqZIThY/lsEhsTKnSjChMBkGSDGwA4Erp9amx6NiBlwvoKLekkrCJPRiD3vK8e6gxJkEYJXYanysXQN1DjXd3rXRNcUCl1/iyQeQbui2Rr+Iw4Go0Ml/HHKItS74E= X-MS-TrafficTypeDiagnostic: AM5PR0801MB1987: X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1987; 20:CcisansmsXTwVWq8sVfTSRcaUhgyj9HuK7WQAjUDhH6ptJdPZ0afaVAVm+TSvv0B7s94CKxXEN4ugd+2pNqWTiCUjValPEc+ZPUJ/+JcFkxx0aMl7pjTqxUJIBFUAFlmThfr0HWrqwqEQncUeDak0sjpIXOrkSx617nVhUBOaxIPBKWePVopCWpKDTogVjhx1JxXe7DbO/jCJ92z+BufiZobrumrAgiJ/MtaoMqEASSqrH5tCRTfs9t7DvyVLJSVITQgCpIEK8V24gAEg1MHrdvX2ZeqNYdUsJnVRybBIwECY0NNI7tFXPOnp3LmP57DdzfgrsMlotpN5BLnOI7thsXIpgb8avuvE84zK7O06D/7XsrGNe/hU39XZAZTgUJUmbkl6CuzaM55uW17+f719ssUfF/feN+WspCQs4V0Yqc=; 4:3kfKUAh8+Curq+v9eDgUvF9KUYYqlbRY5+CzoKtqn7S2cg/6kSQXphCwNjK/FO11dlU6lvTE7hYSnRw1zFXu41ikyNroCYEKi+6pwgOdPmDOa2zgB6gq3I/bzQWORLeDSpx7sI4Dms98drxyPT0/tlaC3Iu6JLpTAtUPM1ypSJeDqApCW001cqmWrQf5c9udtNCLbranFRXkEmmfHi0cGHv+6KZf5l64i8Szm5Dqt9VzaRS0ahOMyxNaRWbYYjrxEAHKthd4xP6lFBszWbu5BA== X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: <AM5PR0801MB19874599DFA5CB85CDF3AD33F85F0@AM5PR0801MB1987.eurprd08.prod.outlook.com> 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:R9XgsjIBZ77JiaT6ZECJ7NiPxWALRtGcfU2tbC/?= =?us-ascii?Q?szKPcwk6n4wjjhdPntwKvj4HiZCdXW6MMlPeeZi1oUc1MN1Jbu4Yg0CU0n2W?= =?us-ascii?Q?tY+lZ4r9FW9JpsPz/npaeYb1K7AaR05M2SvJ3dhD2OxPeqwUW2nnUxVLRKAv?= =?us-ascii?Q?LrpDdst3/WBDr5XYzSwM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EmLnUuSCl7SggIOdnb4vLXzMwP3efYdD0 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1987; 20:ieba5Z+/7tUpFJO1tZ+OpRGY6HzY9XYYY1hUcAzV1MJEP1eyqx8BI47Q4kMsHKoX5d0m8jYYINUZs2R94sY5BEQgjTJOgZcjpyrkVOGFq+T12qkLvytCiz/ibI98hWbwHdEkDfca+8SMwYtKyUA5Mk6I8/ONKxO2HDw3wFCJ2w8= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2017 15:44:35.1650 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 30a44e50-7e34-4b4b-fe6b-08d5213f7441 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.123 Subject: [Qemu-devel] [PATCH v5 01/15] 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 |
On Wed 01 Nov 2017 04:43:54 PM CET, Anton Nefedov wrote: > Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com> > Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Berto
diff --git a/block/mirror.c b/block/mirror.c index 307b639..19c8987 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)