From nobody Thu Nov 14 07:05:57 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=2; a=rsa-sha256; t=1621520703; cv=pass; d=zohomail.com; s=zohoarc; b=PjzuGYKvhVnpt5o4tkQLUSu4a/mRC+7TuoiawGZdGmZTnU7VPI8eDKYPJ6HYnoJbBlCPz9Y22MorPqNnJHqEdvrLAOV8iiNVbSws7B4vBmLr7ENGO//0akDLx5nZ8zQWJnTbY0RyJWKqdHVZ3Qxp8MgzwZQ+RdmJvm/DElIcOcY= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1621520703; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=LsKTYdUhfz5aXAPxnR4e3EH6X9KCoJ/fdrQ6tP9RJ7A=; b=ji9sfpcvNJyFk9XxCWx5rSetpOUqUHfSD2EVuR1h4+8gzBZJ4WCq9s14FXDXj1AgDO+NxadbwYXimmfk0RO2DhacYl4Q/KOut/JOV9dTcZIi4nez/hDl6PyJTNriGGi6F9T7DEeXF1MLFfBGNXzNIdA26bLx+rPOXVMNrzi5Sp0= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1dmarc=pass fromdomain=virtuozzo.com); dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1621520702939640.7307440970735; Thu, 20 May 2021 07:25:02 -0700 (PDT) Received: from localhost ([::1]:45034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljjbh-0008VT-LF for importer@patchew.org; Thu, 20 May 2021 10:25:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60578) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljjZL-0005HP-Hn; Thu, 20 May 2021 10:22:35 -0400 Received: from mail-vi1eur05on2115.outbound.protection.outlook.com ([40.107.21.115]:23648 helo=EUR05-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljjZE-0005Yx-QT; Thu, 20 May 2021 10:22:35 -0400 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AS8PR08MB7009.eurprd08.prod.outlook.com (2603:10a6:20b:34c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.26; Thu, 20 May 2021 14:22:25 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::b403:c1a9:6bb7:133]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::b403:c1a9:6bb7:133%7]) with mapi id 15.20.4129.033; Thu, 20 May 2021 14:22:25 +0000 Received: from localhost.localdomain (185.215.60.197) by HE1P190CA0034.EURP190.PROD.OUTLOOK.COM (2603:10a6:7:52::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.23 via Frontend Transport; Thu, 20 May 2021 14:22:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OuRP1VU8ZAks+CWir1UpyKbxDKCp6ic9yBqrJLcruE9bI44QkD+sD9Vo23GJVdFJ/6Bd0wilsKIhkOPtibp4NfQqBY/9fVLFbeT0J9gA5xi0tS76jV4BcO/NHstlB5o2sxn3FC35jw6jSNt6P133dOfPbUBAfo1XIiJc94taA79+77uru5VwKUliJzypH6go0768YVkq76ZSwMQvJFLRsvMj3P4wONk5n05jxPy+wygC2d44VdrFweQdl/lKiuzI00CC43hVkZwERUKQIhkvmNawTLtn5blXENNhMgj7RpwZ7v8qnVgdlS280/svNN4DW6DtPl4YHB4P+fm1HhnGBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LsKTYdUhfz5aXAPxnR4e3EH6X9KCoJ/fdrQ6tP9RJ7A=; b=lTJUiRgXxDv62+Z58bPcsmmGCMSP7IrUDYElHqbgYeKjjci3IJNgYw+B2iU2tZPkKG0lhU0CuKwOJfRGrLEWuyP1ieUEwsqCKrWmQDQ4RzIc+Ioh+2vUJQgBx0jaTBqRJ4eI5FM8yqYj4GkE7xBtfElpjicp3WPcLcJcpnnc4OTGXOeoJ0q9ZN7Wiu9ALfyYng4CcsTPy7+XesKbsV2M7ATeD7HON73Dd83UltU0cb7eisdV870I7qmNOrRjJKRBhz4GgYJiQDRlxH+Q+BqFvLqBokPp0l0p0VJ1LsedxYNpsoPHoKsX8eyLX9EkVsVXoT2BPaCOqhfhRyIiqfyDww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LsKTYdUhfz5aXAPxnR4e3EH6X9KCoJ/fdrQ6tP9RJ7A=; b=Phkrc8MxpGOW8goGuyEB7cUfBV2hHC0cPDVZ1nsDh2HSWp3delebNT6DsmV2eBgdaDdjkxRtWvwXIGsChAMMVfezxIwG2ERtpA5PbOwx5tqQtgNiG20al+F52Auuji8ngqsJlX9oCoPC1I2u2+0KB6bUnk5Vc3hKoMqknBNcpk8= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, eblake@redhat.com, armbru@redhat.com, crosa@redhat.com, ehabkost@redhat.com, berrange@redhat.com, pbonzini@redhat.com, vsementsov@virtuozzo.com, jsnow@redhat.com, mreitz@redhat.com, kwolf@redhat.com, den@openvz.org Subject: [PATCH v2 02/33] block: comment graph-modifying function not updating permissions Date: Thu, 20 May 2021 17:21:34 +0300 Message-Id: <20210520142205.607501-3-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210520142205.607501-1-vsementsov@virtuozzo.com> References: <20210520142205.607501-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: quoted-printable X-Originating-IP: [185.215.60.197] X-ClientProxiedBy: HE1P190CA0034.EURP190.PROD.OUTLOOK.COM (2603:10a6:7:52::23) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a64a62c6-787d-436b-79fc-08d91b9ab0a5 X-MS-TrafficTypeDiagnostic: AS8PR08MB7009: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2201; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eENwWCQ9De7PxNM5rW40qtOhILOMROsejpTN7ObHkl8/PfANqKgx5k8ECyZ40e0I824B4JxhBW7ktgTFgZZo1ChksPzuiPvGfbrRcgueTwynI5bQgLuE7nEpjBQN1tEBJiSkrT5Fgxf6ynhSUi2YdhrwLGp8H0LtcjFd2YryIK4VwAp3SydqE356InibspqTFScwrndFpLmvuZe/FHtWSQua2Rkb6vbfG1dWuUBRDbUQnkbRnvoarCg3fp54Q7k4Z1cSzYgkgDqQwfnTHl18sTv0xBAkJLx/jHz+pgS9C3cl6ePpaNXlxT8XlLISWmIV5DzxEZ/CaEE76o3XcToK6P2WVJU+7qlw3L7ewl8VlxGaqiL242MNUnTlpLQjV2ciJ9plOe4Txdhpw0bOXoCUQcUDFe48Uc8DOSV2+TqI1WNVeBTPWukxe8AeYhKEsu+6YAPIbwWOzVbfw6+CVORKdBHLcqEVIBmOOT3Fwg0DN3V2Ta7MGw3/iUsar3Bgk84Oqprl0+JzoOyO0GDbnQHy8s4v1l0LxWmbF6rUdSFdLi6FTU4ZD9OhBgIvU2v5KvIDIca2RqfUxsBle7KmXOOeyGgBtI2h7hQQNtkMOpv3mAMWDzd6Ra+CCpB1Gu0hV+tu0+nekSacRPnEbvU63glBhkY9n5OHsUst79quQVvlbwOoNmtK7bKdIlXGsUPGo9b6 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(39840400004)(376002)(346002)(366004)(38100700002)(38350700002)(478600001)(86362001)(6916009)(6486002)(36756003)(83380400001)(107886003)(8676002)(186003)(6666004)(4326008)(16526019)(316002)(1076003)(5660300002)(8936002)(26005)(6506007)(7416002)(66556008)(66476007)(66946007)(2906002)(956004)(2616005)(6512007)(52116002)(69590400013); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?oeA6Ix8vCtOSsLWonKw+hyg9EQ6Rh2GUtxVxHOWpaSbOUv+KALVVMzhV3Yqj?=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KFYr9vUz03BNoLgQzZBw9tFXqeOCLRU01IUty?= =?us-ascii?Q?JR+VIn3Ik3ixiIqrfkNrX+kSkK0nQXreAbibalXaLiscSx79L21FYQhCcEZj?= =?us-ascii?Q?s3H3lvIOnyems6kcTMSdBWfVrhfms75SF/dVc4plSj5TExSAzmC6145gBLiY?= =?us-ascii?Q?W+GqXdg7W4ZeulM6UKBNpW5Py155sDPCAyrZDfDHZvMvH3BYRNfED8SiGXA/?= =?us-ascii?Q?l8Vy5fAxVy4IxIWbwFT/YRWUDb8Rv4BkgnFxTku6kMVosRBsd3JQoTxFXyJb?= =?us-ascii?Q?uBqB2Vx29z7EkTmhORWxWHPDUst9/PEscMERjS0nxo/u2ywP5u/B/6W/SJgv?= =?us-ascii?Q?EpD5OL2OhfpRsgc4AxYjg/oWW3cFhhysQsralpNymXfrGV3+JNPdEcCFy9WO?= =?us-ascii?Q?DrXylNwqTpx2YHhEfJb6ALsW?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: a64a62c6-787d-436b-79fc-08d91b9ab0a5 X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2021 14:22:25.3289 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gFMcsEmmJccpRaOtrBVojcTwJD0lPMOkbC5PZ1Nhmz66dtwFFtUwwrdHJJbnMM6C4oapc5E4j93z5c5xM3i+JG3HKvvyCFVBbyIyv23zLbI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB7009 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=40.107.21.115; envelope-from=vsementsov@virtuozzo.com; helo=EUR05-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @virtuozzo.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz --- block.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/block.c b/block.c index 384413c578..8aabfb03ec 100644 --- a/block.c +++ b/block.c @@ -2762,6 +2762,8 @@ static TransactionActionDrv bdrv_attach_child_common_= drv =3D { =20 /* * Common part of attaching bdrv child to bs or to blk or to job + * + * Function doesn't update permissions, caller is responsible for this. */ static int bdrv_attach_child_common(BlockDriverState *child_bs, const char *child_name, @@ -2836,6 +2838,7 @@ static int bdrv_attach_child_common(BlockDriverState = *child_bs, return 0; } =20 +/* Function doesn't update permissions, caller is responsible for this. */ static int bdrv_attach_child_noperm(BlockDriverState *parent_bs, BlockDriverState *child_bs, const char *child_name, @@ -3097,6 +3100,8 @@ static BdrvChildRole bdrv_backing_role(BlockDriverSta= te *bs) /* * Sets the bs->backing link of a BDS. A new reference is created; callers * which don't need their own reference any more must call bdrv_unref(). + * + * Function doesn't update permissions, caller is responsible for this. */ static int bdrv_set_backing_noperm(BlockDriverState *bs, BlockDriverState *backing_hd, @@ -4775,6 +4780,8 @@ static TransactionActionDrv bdrv_remove_filter_or_cow= _child_drv =3D { * A function to remove backing-chain child of @bs if exists: cow child for * format nodes (always .backing) and filter child for filters (may be .fi= le or * .backing) + * + * Function doesn't update permissions, caller is responsible for this. */ static void bdrv_remove_filter_or_cow_child(BlockDriverState *bs, Transaction *tran) --=20 2.29.2