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: 13394331 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E63BE7D0A4 for ; Thu, 21 Sep 2023 18:57:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229831AbjIUS5c (ORCPT ); Thu, 21 Sep 2023 14:57:32 -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) 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-fsdevel@vger.kernel.org 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