From patchwork Fri Sep 22 04:12:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Kent X-Patchwork-Id: 14362 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:a55:b0:13f:353d:d1ed with SMTP id 21csp4556511rwb; Fri, 22 Sep 2023 03:36:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGA1chcsqxJshXYMOVR+U9PkzH/ygIGMbNe1rAgIdDWLN4OzXV5vlt+w4TEZS4BhfQ/3V6v X-Received: by 2002:a05:6a00:1822:b0:690:1720:aa92 with SMTP id y34-20020a056a00182200b006901720aa92mr8365521pfa.10.1695379000847; Fri, 22 Sep 2023 03:36:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695379000; cv=none; d=google.com; s=arc-20160816; b=p6YDPgZFnpr06/Q7uO/GfYrj5zdDZ1zQVh0MwrH7Nb46fgYzsKU5xtEn2MicJUM1D4 C3TYgP74LuUAESOg1Z8VZXFxGch78gSPnXiW7P1JupV1s4wGN6k847pPwtJM2AOU1OXA 8wLYZgWaO3Tx6rtcrfXRHj90epfzSbzRvuDSz4io8sArWAcDqMMqzq0CKDEWltsXYhF5 zaZa7KfnS9zgzavinlToC9lJ02EGb0mLab4b26tOrgW16IwPcBGUpumGPqzIXs0FP64E sL5tUGsEDNRfUrLoFK5bO0IY2mRF5CAF+CSA95eFozXHM0SEON9uAmspnZo/jD22Q56c ta+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=uI4T7zAHEdSnD2K9j+HC//bD8KbiRQpQtuKbu4Xx/0I=; fh=tOzwWtfY/Ihw0ZG9uDufqX7N1fYPvJMmg28cxm4BgX4=; b=cJieDeRtCN6C3gzQezycMFHK6b4lsQo7/tUhHB/t/bIir8qSr3UT8RdXe+vEYsfPvz S0u2ZIUtV9/tILSvGg+DBzO25XVijLbvoS3N8IAg+cswCN7GSL1Z5o2BQTVprtbP13fN I2C0eXh6jcU42fvFsgM6OTqkjxw2bf41141DYkWoUnXg8hNi/9mhjPqZYxxtPWWVB+SE 5CjfVyHRNWj01rgqtf/QfNoril4O8RHNvlRW4O4q3BBd9sgj8dnqdwtaSeyZv7+3sC2Q es0Nnz9PdtZU9SPMi6SgOCBM5RIQ4Mb5MzuVL1A3Bcv/5Vp02PH0lVqxc65af5dXgGZ0 iNyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@themaw.net header.s=fm1 header.b=XC2jY657; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=WPt5fItn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id s140-20020a632c92000000b00578a56a39dbsi3511429pgs.409.2023.09.22.03.36.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 03:36:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@themaw.net header.s=fm1 header.b=XC2jY657; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=WPt5fItn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 2C9838370859; Thu, 21 Sep 2023 21:12:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbjIVEMo (ORCPT + 30 others); Fri, 22 Sep 2023 00:12:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbjIVEMl (ORCPT ); Fri, 22 Sep 2023 00:12:41 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D48C19B; Thu, 21 Sep 2023 21:12:35 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E1ADA5C007F; Fri, 22 Sep 2023 00:12:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 22 Sep 2023 00:12:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=themaw.net; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm1; t=1695355951; x=1695442351; bh=uI4T7zAHEd SnD2K9j+HC//bD8KbiRQpQtuKbu4Xx/0I=; b=XC2jY657mOoIeQlWGw5eZmM/zV dxYI8g4PKY/05cSOaEdDzmeKut+6/61BmLMzFcxZRL6BkWbgJo3W4Hi6z1pmDAcR pfr907J8LM3enXsH873SJMfNnQndnRCeJrNRU5TLEXCdbscCESz1SwlH4JFs8MEW QZKO5G/p/VRwdpUAGlQCG0xk3wgmVNMOLO3mXSw85gIjbN0ptfDLBvnnRjYerhjy cdpjuef9wu/Cxxx/QxnjngcPzPeliQmvxxd62U9MrQ+oy4lj57s/6tcAO5ZLfJb/ amzQMjTQuQCXn6B4TqC9HNWX622LlA0tdwJu1Z1ulbpGjOmbqZvzDk31SFsA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1695355951; x=1695442351; bh=uI4T7zAHEdSnD 2K9j+HC//bD8KbiRQpQtuKbu4Xx/0I=; b=WPt5fItnj0fV1wgOK/j5pY1BU4x4H Sbkw/8fpJdm14klb+KKGTblJ1SzFD4U01pd2n39oSGP50/+r/7Nd4OOMFfYCI4/F nqjMA4d4RuSVIci/zlhB6jU6stqMsTQLk3agNZPc/dBfvlpnvJ1vy4lVTPi+DsO1 mpAe1fI/o1F1vhf2TpJQmvGjLA3waISPOyP5X3DYWskdDRhoINUGQXbUd+R+lth2 pqY725HkEu2ZWUMQQcRajtAgYa4N6uVk4K496TrHRoQqdxLr16RmfSkWN5b1RCbQ jSbbifnDQ6Do/gvFex1wUtbrW20sSgGEmc2k09m0aTTr2New18/awKhQQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudekjedgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepkfgrnhcumfgv nhhtuceorhgrvhgvnhesthhhvghmrgifrdhnvghtqeenucggtffrrghtthgvrhhnpedutd fhveehuefhjefgffegieduhefhtdejkefhvdekteeihfehtddtgffgheduleenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehrrghvvghnsehthh gvmhgrfidrnhgvth X-ME-Proxy: Feedback-ID: i31e841b0:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 22 Sep 2023 00:12:27 -0400 (EDT) From: Ian Kent To: Al Viro , Christian Brauner Cc: autofs mailing list , linux-fsdevel , Kernel Mailing List , Bill O'Donnell , Miklos Szeredi , David Howells , Ian Kent Subject: [PATCH 0/8] autofs - convert to to use mount api Date: Fri, 22 Sep 2023 12:12:07 +0800 Message-ID: <20230922041215.13675-1-raven@themaw.net> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 21 Sep 2023 21:12:48 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777733730705109541 X-GMAIL-MSGID: 1777733730705109541 There was a patch from David Howells to convert autofs to use the mount api but it was never merged. I have taken David's patch and refactored it to make the change easier to review in the hope of having it merged. Signed-off-by: Ian Kent Ian Kent (8): autofs: refactor autofs_prepare_pipe() autofs: add autofs_parse_fd() autofs: refactor super block info init autofs: reformat 0pt enum declaration autofs: refactor parse_options() autofs: validate protocol version autofs: convert autofs to use the new mount api autofs: fix protocol sub version setting fs/autofs/autofs_i.h | 15 +- fs/autofs/init.c | 9 +- fs/autofs/inode.c | 423 +++++++++++++++++++++++++------------------ 3 files changed, 266 insertions(+), 181 deletions(-) Reviewed-by: Bill O'Donnell