From patchwork Thu Sep 21 07:03:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Kent X-Patchwork-Id: 14318 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5075968vqi; Thu, 21 Sep 2023 12:08:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHIxOPyW4v4dkd9gRmmDfBl/UtVjABWsW1y68QPfTc8sXOhhZdmO8NhBXAcgSa70wFHJ+sU X-Received: by 2002:a17:902:ce91:b0:1b8:76fc:5bf6 with SMTP id f17-20020a170902ce9100b001b876fc5bf6mr7652427plg.43.1695323326724; Thu, 21 Sep 2023 12:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695323326; cv=none; d=google.com; s=arc-20160816; b=lQv3b95L5d9CWyT+zuhlL+JoVQu7ZHbBdfyjH3V3DIWk6k6engDiUf9DhmMFyP7ipw zvdLxo5yAuIQ6cMdqzAug0pJ9La7toqqEXf7+LKaMn6T0ONtGb4p+WFFpUOaw95lUJod dTJwlLBOOf61rfN38jSWuSGGynmHcbKoCN04RkgfXHNVEmx6oCI4EK2QuO2baSrCuiXV 5z4xgYYOqPEBkf8w0O0oYdOja6eoq4KQGZIYYdaXXKNEX52M+/OaxGYzTfQcqDIbaWLi tgGf9AeQGJhzWrqelRiHmlGXPRcq6sgf/meICP92mHBH9/x3vUi2t5wGxxrfVgLtQIzg PzfQ== 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 :user-agent:message-id:date:cc:to:from:subject; bh=pImcvVYySJ3eeKWE+qZKTZEI9r6P4K/w9xnGmP+qhz4=; fh=Vd00GRLUNDtgftEBzBaifz0ZIGFRdtawsvTRUw5VTu8=; b=LWC1O89IrITAYOEXv1h3t/nsfnCuTT9zdg8KRxfGZNeVcBnddR4WlivSArYoY8yO8z qUgY1shlmiMftky+Veb17uX8xXUmfAd+z722xU8RTYtbnV8YUjvoDwJnTlYxyNL6OzhP zQ8B3KEdMp/yI3tJogrp4LqGkQny/lHsx3xOl+T7NJE8HL03I4+ifyG5EYUBL4b84/+x 5wtrYUo0RMjRYCMA9kei9gVc76bMV1atBoUcC7Da1joHtLZxSrYnVXGFaa1DHfaoMjNm s2ZMvdOF3HBzxtFfJ/Z/HVloMtiiu4C+CFFSx7qAxcKet74EDxuoyB94wUQFNg3S/msu z0jg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id q5-20020a170902a3c500b001b89613687bsi2027310plb.439.2023.09.21.12.08.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 12:08:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id C8B0080DE60E; Thu, 21 Sep 2023 11:57:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230044AbjIUS5e (ORCPT + 28 others); Thu, 21 Sep 2023 14:57:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbjIUS46 (ORCPT ); Thu, 21 Sep 2023 14:56:58 -0400 X-Greylist: delayed 60 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 21 Sep 2023 11:51:06 PDT Received: from smtp01.aussiebb.com.au (smtp01.aussiebb.com.au [121.200.0.92]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40AE18ED50; Thu, 21 Sep 2023 11:51:05 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp01.aussiebb.com.au (Postfix) with ESMTP id 1C10D10037D; Thu, 21 Sep 2023 17:03:29 +1000 (AEST) X-Virus-Scanned: Debian amavisd-new at smtp01.aussiebb.com.au Received: from smtp01.aussiebb.com.au ([127.0.0.1]) by localhost (smtp01.aussiebb.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5x_DGjDpQCIv; Thu, 21 Sep 2023 17:03:29 +1000 (AEST) Received: by smtp01.aussiebb.com.au (Postfix, from userid 116) id 13103100265; Thu, 21 Sep 2023 17:03:29 +1000 (AEST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from donald.themaw.net (180-150-90-198.b4965a.per.nbn.aussiebb.net [180.150.90.198]) by smtp01.aussiebb.com.au (Postfix) with ESMTP id 02048100073; Thu, 21 Sep 2023 17:03:26 +1000 (AEST) Subject: [PATCH 0/8] autofs - convert to to use mount api From: Ian Kent To: Al Viro , Christian Brauner Cc: autofs mailing list , linux-fsdevel , Kernel Mailing List , Bill O'Donnell , Miklos Szeredi , David Howells Date: Thu, 21 Sep 2023 15:03:26 +0800 Message-ID: <169527971702.27328.16272807830250040704.stgit@donald.themaw.net> User-Agent: StGit/1.5 MIME-Version: 1.0 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 (agentk.vger.email [0.0.0.0]); Thu, 21 Sep 2023 11:57:49 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777675352472664502 X-GMAIL-MSGID: 1777675352472664502 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(-) -- Ian