Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp547480pxf; Thu, 25 Mar 2021 09:04:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7fPN37na5zEyz7dJ84G8KxqPxZPj1d77sebEX1gj4Vo7dxd1kCkXkjBAdI72PxQbPiER1 X-Received: by 2002:a17:907:d10:: with SMTP id gn16mr10105321ejc.304.1616688281081; Thu, 25 Mar 2021 09:04:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616688281; cv=pass; d=google.com; s=arc-20160816; b=nqzcIODp3fVQZvktafPaPgpyPOEXj90QGwHYcSi6FtftKYMdqMYkdgOMxkoy1Emg3u 2En0pbKDZHCfj+lws6iOWsPaOOBkEFIZy7n5N2SZ7YFmgQIKzKtBXr9MOsUNrpCL4CNu yjksCU0SGbNPu4c5UnbcTEuuMr2HvcPI+ipp9Fq5md14Zh5564gcEX7Q1v/b6da3qPET nORqPUFtRI1x70iQ0vJAt//60b3jpvREz+t8xZQHy6KQr6x8E6M2YbXmUcyOswxrKwSK MqFX5zwOKwABwnKm9hwu8yuiGG6A5Za6fLnmb3ha2Pyyhvv04jYx68nbw26HN1x5q+Zr 0ZTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-signature; bh=vMGMD/RngKNdbsXzjB8SqejljzbS5pnT5unCkx44s/E=; b=hkrks0X021Zdw+eiatlQbWMDKm4lWOvhQwthwp1XP2KGqoKeLhOvIvg4/X+om7RvEt Uza4yYV0eIigrBqMtGN2PZmETT6Bq57kK3QAKv0nxbvInE47SnVOprKw2Qu7kFWBKcRv KQryZSQn+i6ELSp1wzGaZhdxAaGQHbboXtb2m7X6TWvXfporpQp1Wiotpbdi/NOZtCmo etD+mwkqpU5hUFB9IF6ibpaXt9XrP1Zm7UGPvK7LUT1QjamQqvhKCQq8k1L54Qv/NUr1 Ova/2Xj43KgQkQWA3O4JQY6pedNLX66ntoVUq/en8OwiXQXzquFIuNfPQfPrn9OMywen IX5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=bLdDWssv; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=CyMAKFuP; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si5041309edy.108.2021.03.25.09.04.08; Thu, 25 Mar 2021 09:04:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=bLdDWssv; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=CyMAKFuP; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229957AbhCYQDf (ORCPT + 99 others); Thu, 25 Mar 2021 12:03:35 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:58360 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbhCYQDQ (ORCPT ); Thu, 25 Mar 2021 12:03:16 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 12PFtdiP051577; Thu, 25 Mar 2021 16:03:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=vMGMD/RngKNdbsXzjB8SqejljzbS5pnT5unCkx44s/E=; b=bLdDWssvnuJagRlDDObCXvP9+W2EtCoTVkikmaAG575ecd+XnWuqqTaQ7qPLaChBubWX L6FZCJ5gIDGg1FVaUy4pKXExoAj1l9tGn4AwklXwE/FRkOTWF34i73OMA/oklzngOO5T ke3W1zTSD3cVhg7+ikN2oCkd3ZMRoPGqWA5+nJSwQDYymF0zOtsh1BfDwz8aor8tUxdL bLeW5B47LfVzy8F0GbU9wTZvPx+Zb+wZpD/8oh3Osc7IlFju55eGtE6+G4nWHIbqOKhD 6LtDLbtqHhg87n/yE7yarpAxIfoxEQGUwbiTh+oVZ8gibu6r1RfFu+SguIN7pdrZiLKb 4Q== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2120.oracle.com with ESMTP id 37d90mpthc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Mar 2021 16:03:05 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 12PG0J2O041393; Thu, 25 Mar 2021 16:03:04 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2173.outbound.protection.outlook.com [104.47.58.173]) by userp3020.oracle.com with ESMTP id 37dttuuv1t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Mar 2021 16:03:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UvjfwGkcKES5NU2nEyisuEhkHqZQNucpASq8En6QALxjO8HyvCH6ptWfocX0tZXBBqSmrXVmDuHSQTGSM0knGidLAtT++6jbfB1sFeHZ2omNVXgeP/D7JjibuPRF61MPeayN7B14jDH/2LVxP9FHF645l7l/SYoZU/djNI7X1KnC4JyFrFcaVqSh19XyIz7+7HRGNEChGKvLfwqBYZVBnntS7rgHbrpKYEJTlDfpZcCiUr/vcyoWmlGjG95OvRCYo7vD8Q++Q1cTWXodCMKXbRJci/+E2IiKk4VA49JsJOxE3AZicQZnjlrLbRxWi1Gts3go/NDVm2UPHB0jQH+Waw== 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=vMGMD/RngKNdbsXzjB8SqejljzbS5pnT5unCkx44s/E=; b=IudbHMw5BtDm1emkBCv6gtDY/SiBvQdlwotD7cUbzRtHuE1jKzHZ97RzBFaZgUqn81FIWGogz8vFi3gKRsRWi4dS2o1S46jcF445ZAwIt0E9QwHT61XxHJH4EQKcwqsDmBbPn1thMvYA7r7CD3/3h7ve28mOQ/0XV5pfnMnRFLNT8DVlTvu9WAHpj4/N8FbD8xFBM0eVk3wj+PfC4rfq05rUAQ42VVerZ2xl/WBaHoCGOJHWIy+Z/BEla7zRGtKHJNFLu+DXGjUYljz+rnRqRUHk3Sdzp7rFif0M8FTaqxZ4i6gPvt9jOFLm5mnfN+5OC9oVMO13Q/oT7OqirnM5bw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vMGMD/RngKNdbsXzjB8SqejljzbS5pnT5unCkx44s/E=; b=CyMAKFuP4baqAemq3xfFJBK6oHidEFkOHA9GeR665ztxFDC5JYizxqvrUjIq6yRsbR5LlvvtEkKdzQI/LV/xZer3+1wo3JaNVg+dZCPAnTkY0w4PgrKU2BbAWAmRFdnoUjo83ZYuNU5wPGOBS/HABt/B8HcqY1tpRCDakLT+aG8= Received: from SJ0PR10MB4688.namprd10.prod.outlook.com (2603:10b6:a03:2db::24) by BY5PR10MB4387.namprd10.prod.outlook.com (2603:10b6:a03:211::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Thu, 25 Mar 2021 16:03:02 +0000 Received: from SJ0PR10MB4688.namprd10.prod.outlook.com ([fe80::50bf:7319:321c:96c9]) by SJ0PR10MB4688.namprd10.prod.outlook.com ([fe80::50bf:7319:321c:96c9%4]) with mapi id 15.20.3955.027; Thu, 25 Mar 2021 16:03:01 +0000 From: Chuck Lever III To: Nagendra Tomar CC: Anna Schumaker , Olga Kornievskaia , Linux NFS Mailing List Subject: Re: [EXTERNAL] [PATCH v3 0/5] SUNRPC: Create sysfs files for changing IP address Thread-Topic: [EXTERNAL] [PATCH v3 0/5] SUNRPC: Create sysfs files for changing IP address Thread-Index: AQHXIZBVLVquEkVXvE+nUFCuYvpQ/Q== Date: Thu, 25 Mar 2021 16:03:01 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: microsoft.com; dkim=none (message not signed) header.d=none;microsoft.com; dmarc=none action=none header.from=oracle.com; x-originating-ip: [68.61.232.219] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 87ee8b13-b5d6-406a-1dc8-08d8efa777af x-ms-traffictypediagnostic: BY5PR10MB4387: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: rq8qXkHSxarIju5/llujeIHZ0fZBS5hEl0kOsnjsNZ485O6t2J2QONJIeXXScYFkCI5rD3nwqj1SJw0z593tjVGF0FhUxI78J2Ue/jWOZ/Muoqcl5/fuyQoMkzaUMDva8ZGwmixnfMo0wC5MefavpDWWsYo/4C3rUZJGrGA/vJxaDzAQ92DlD+udQKxoOIFsKI1gMEFRixMLBVJV1f1LaIgWVTN+3ZnKFt4QDKkzrGfUfHd+0oa6TwiRrJlIOSSxFD3FtqQ7iPJ40yofzPd6f/I4OgIwAttQZZortyFAPWyivr7AP6shPwGrM6VeXTZetUOJvHqJaSeXbdbOPnpcwiSUMGzTDa/MPIKA6HnMMHuPjirDnuIuNOnJRwxgpCnGTDAlXqOLpVLFbxEh7eaXooBUhF0f98IcRAM3eEHmWm5/RRSBnDgS8yy1o9l/2IYlLHRQO/eLRgP9bDMGRpHledLN9jIx7vNFp4S0Rqn1ITsKy8T/+omAebsFfwkBPZX9tiOfwz5y5hFzj9ste4azCMX72AvaYELPqD57GJVvsOm/C2TWazAGc6guRVm4LqHfSJ30hjK3LwW3NeuxGYVI/behWkWM5GPC1rO9USAQAN27lsiKfCh9iHvcK0jLdnp0k3EGcuPKhMdjh4eEGQZjO0If2e7OObjCfrPLSgtKvZTOoA8ZXkW41G7Ce+/yeKHb x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR10MB4688.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(346002)(136003)(376002)(396003)(39860400002)(53546011)(478600001)(6486002)(71200400001)(186003)(54906003)(6916009)(26005)(316002)(6512007)(4326008)(2906002)(6506007)(2616005)(33656002)(38100700001)(66476007)(91956017)(66556008)(66446008)(64756008)(86362001)(76116006)(66946007)(5660300002)(8676002)(36756003)(83380400001)(8936002)(45980500001);DIR:OUT;SFP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Q?zjRoQoLlPun0x0rCN/T5haBFwjAdMn0TM5WiWZ5rproWKRPI1FHIGTnqW/3T?= =?us-ascii?Q?3Qn4H+XIcycYryHn3imf+znEciRwEZyCqRd8eogA+q3A4HBAGGD/AkrNEtBl?= =?us-ascii?Q?d967fzH5vZtx+XYdhEQKYKZGU2NP1H41gWb8OXaN79dtAea6wbCdFNovgBsE?= =?us-ascii?Q?vv38pO+H28aU04aApBcDhDGY8P0n0vP2Et57oIXrqW3JeKmqw7thTuM+hNcA?= =?us-ascii?Q?06zvlo01iFw6731HmXmoHSigrwp0379dYRgImj+8QgHTgXS09v/KGjIs1RvI?= =?us-ascii?Q?r/GdOY48T2WS/k0LnXvGu3pHgFf4E2473xo+iwQnqhJQ+C4uzTRRV1OB1hqX?= =?us-ascii?Q?KmMtmrqLk5Z2D4Dl2zwNN4FoGqPcNgpMwahhD8kQpc9zlMY52+tE/6D2oWJi?= =?us-ascii?Q?cEH/aypBvmRyuOlkLdmuKql+xBmAwUtxloHCWXq89fNOprX/2icbqeYpCu3z?= =?us-ascii?Q?rEs6sooMVirdv5+CcOkORoky?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <99D007E0F312C84AA102F07CEA65C9DF@namprd10.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB4688.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 87ee8b13-b5d6-406a-1dc8-08d8efa777af X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Mar 2021 16:03:01.8650 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 1R4CSEvWEou9WvIUMDJeetUs99nHlHBC4vbvZmlBmTVDLwZ1IBbY2mf73EE1CU+N1xZo5rPz7u61zyL/IK1s7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR10MB4387 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9934 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 spamscore=0 mlxscore=0 phishscore=0 suspectscore=0 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103250114 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9934 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 mlxscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 mlxlogscore=999 suspectscore=0 clxscore=1015 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103250113 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org > On Mar 25, 2021, at 11:03 AM, Nagendra Tomar wrote: >=20 >> I've been thinking of the write-to-sysfs approach as just the kernel >> interface. I would expect there to be some future userspace tool built >> on the sysfs files that is easier for admins to use. This future tool >> could probably be coded to handle dns resolutions and write the result >> to the sysfs file. >=20 > Yeah, I got the idea. I was hoping to avoid any additional userspace tool= . > IIUC the userspace tool would be more like an always-running program that= =20 > periodically does the name resolution and updates the sysfs xprt addr > file. It can be done using mount helpers which take the NFS server's host= name > and start the process to periodically resolve the hostname and write to s= ysfs. > Then on unmount the program has to be stopped. Well there are variations on this idea. One variation might be a single orchestrator daemon that would manage the sysfs files using inotify, so it wouldn't have to track the operation of mount/umount. The sysfs files are meant to be only a conduit. User space is meant to dynamically provide settings based on policy. The opportunity here is to make this something that can be active and rules-based instead of a static configuration (ie, more like udev and less like /etc/fstab). And note that any solution has to be container-aware. mount certainly is, and that's another reason why the DNS query is done at that time. An upcall would have to be done in the same namespace(s) as the mount was done. (I'm not advocating any particular approach, merely pointing out some things that need consideration). > With the dns resolution upcall on reconnect, all of this could be avoided= . > Infact as Olga said, if we extend your patch to treat hostnames specially= -=20 > do dns resolution upcall if the sysfs has the hostname instead of IP addr= ess, > that will serve my usecase well too. >=20 > Thanks, > Tomar -- Chuck Lever