Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp761736pxp; Wed, 9 Mar 2022 12:06:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzFQeN40FZYQFiVS0LrYb52/V2VjB8HlKca4nse+kulwYSICMm3L1vMGmcDnUWDMKgqwd8D X-Received: by 2002:a17:907:d8b:b0:6db:77c1:1889 with SMTP id go11-20020a1709070d8b00b006db77c11889mr1331936ejc.84.1646856384465; Wed, 09 Mar 2022 12:06:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646856384; cv=none; d=google.com; s=arc-20160816; b=QfBAyz994PEDIBYXBGfpSy2T8gUsPS4b6TIcd0Jq9lLTB9K4t2pVhTBB8w+i5TEoSK +gbci9haWsxUr0ZQwt9P0rqq9hVcvkppxXfr4pUELDjdoC3qORugAYBdLGQvSvTGvv6o Yst36grmHJd0YbDuZTajO6wIllZKi2RYR6eYmSqwHZAWkOSMRECbSCZEEedrZv/gdq2+ 94Kc1LyV9vpA/aVo6tGusVZ4Gv2WHXMbcwNw4PFgJNHvHxOzMbjy1DBdZJq0KZU9uSmn Dajqv1IEhCrcyNa98ucn26s77onJkWzRNfR7o9/Cm8YPJx35vGXYJ3Zs4L+8onVHnqON BWMw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=a5MME4KpDziBTxxufAkFOBkSULAPSK1XcRbM0uCC95g=; b=VveL18+zLkh/s2mNfWnG+rsKq5eCaXAA7GYIgfEfuZ8JteqhV6HnfQx9uAVIompS0C FkO7hqL/bZnXqs182e4q0rcEmLTrOhLozcv7qyAxyUVgWqbWOZYIp7Av+D25RjL9Oskd ezMESFruAMjHz1RJ+2SB6GkMFJvrBB0NzM8QSKe/8TvcCUiF96Gf5kIFao0fs1Icq88K K2RrpCyenW8eeG+Tbaeoht7oIveWt5yRs2h+VDdMfM2fs6HtJ+K4qqc1PsJC4GdEmR4c VPLjxGKoyi5qiRQPx5s1ejx3rRwbtqozlLbuLwJBOBbuzRuKC1Cl5qgSUPTdaD3CgDjS DRWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YotN5tXz; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv21-20020a17090760d500b006db1bfc9c3bsi1736578ejc.981.2022.03.09.12.05.39; Wed, 09 Mar 2022 12:06:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YotN5tXz; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234965AbiCIS2Z (ORCPT + 99 others); Wed, 9 Mar 2022 13:28:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231716AbiCIS2Z (ORCPT ); Wed, 9 Mar 2022 13:28:25 -0500 Received: from mail-oo1-xc36.google.com (mail-oo1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8D0957B04 for ; Wed, 9 Mar 2022 10:27:24 -0800 (PST) Received: by mail-oo1-xc36.google.com with SMTP id l24-20020a4a8558000000b00320d5a1f938so3902504ooh.8 for ; Wed, 09 Mar 2022 10:27:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=a5MME4KpDziBTxxufAkFOBkSULAPSK1XcRbM0uCC95g=; b=YotN5tXzf+jVHlwTTFLgl4/WKT7Tjqi4XomzYukiJCuoNGzUj5kRRuvUuy5Vgfzbih aH7MCaKY/F+FnErit2c5ZatzQpkttv3E0fIMRS1fPx7fCzHJELSlkmF1/g9ldxe3yIxH f51J6R6ZKYnT8rt8O0YX6ftylWRRugqi5eFc+tIIb1cdj/AbooyHisuCDeIfnV8kolCl gaRz5ZmABCAukWl+M6d0tw07yDLP23edcLvQinlpTIJ2G/DoIiAwLEPCTv+qki7MnHyP sK5APbQLxXKb4n4MR4Yt9XF5NUKVWmghgMOC4Udt28cuU9E0lwMyFeMrILJKzgI8yofG Av8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=a5MME4KpDziBTxxufAkFOBkSULAPSK1XcRbM0uCC95g=; b=Nx6ub7saXR+ziMLM4ZZoH+ZRBhbU+UbVdRNjMXnNpcPuYPnde/97pdTFntw9wn4K38 NfbfKbVTuIuUMDsu2NkT4HfDw/6Hv65r3rwJeGzYmGaTw1YHWJ9XByDAVA0D3hhwPrxW ZDUNtTCMwK0zawMuficTyFQDkkpyo6i/HX2mG2D074nuujFFx/3gWQlGAOAE7Er5w2FH 1GAjExwboM0MYKNqf69Gb3MkhzVhJgqq6oU16UMyqsoIOy2akzSZIIhVL3H2NcRCX6jd 2j3pS9HRn/aLz1qzSiGw2dab5YyDwdceguxbBcJt8c8rV7A3hwHwV1e8hYmF6N+O6jML r1jg== X-Gm-Message-State: AOAM531KkFKJ5Z7ysvLDua2dWuQMA4Q7aUFE0qi6g7IIxDf3fVD3MZi0 I1NClqApxMRzQregXUm6brRDdbQwt+g= X-Received: by 2002:a4a:141:0:b0:31d:8eb3:b2c0 with SMTP id 62-20020a4a0141000000b0031d8eb3b2c0mr495461oor.4.1646850443920; Wed, 09 Mar 2022 10:27:23 -0800 (PST) Received: from nyarly.redhat.com ([179.233.246.234]) by smtp.gmail.com with ESMTPSA id k5-20020a056870a4c500b000d9c2216692sm1213270oal.24.2022.03.09.10.27.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Mar 2022 10:27:23 -0800 (PST) From: Thiago Rafael Becker To: linux-nfs@vger.kernel.org Cc: tbecker@redhat.com, steved@redhat.com, chuck.lever@oracle.com, Thiago Rafael Becker Subject: [RFC PATCH 1/7] Create nfs-readahead-udev Date: Wed, 9 Mar 2022 15:26:47 -0300 Message-Id: <20220309182653.1885252-2-trbecker@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220309182653.1885252-1-trbecker@gmail.com> References: <20220309182653.1885252-1-trbecker@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org This tool is invoked by udev to find and set the readahead value to NFS mounts. Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1946283 Signed-off-by: Thiago Rafael Becker --- .gitignore | 1 + configure.ac | 1 + tools/Makefile.am | 2 +- tools/nfs-readahead-udev/Makefile.am | 3 +++ tools/nfs-readahead-udev/main.c | 7 +++++++ 5 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 tools/nfs-readahead-udev/Makefile.am create mode 100644 tools/nfs-readahead-udev/main.c diff --git a/.gitignore b/.gitignore index c89d1cd2..c99269a4 100644 --- a/.gitignore +++ b/.gitignore @@ -61,6 +61,7 @@ utils/statd/statd tools/locktest/testlk tools/getiversion/getiversion tools/nfsconf/nfsconf +tools/nfs-readahead-udev/nfs-readahead-udev support/export/mount.h support/export/mount_clnt.c support/export/mount_xdr.c diff --git a/configure.ac b/configure.ac index e0f5a930..7e5ba5d9 100644 --- a/configure.ac +++ b/configure.ac @@ -737,6 +737,7 @@ AC_CONFIG_FILES([ tools/rpcgen/Makefile tools/mountstats/Makefile tools/nfs-iostat/Makefile + tools/nfs-readahead-udev/Makefile tools/rpcctl/Makefile tools/nfsdclnts/Makefile tools/nfsconf/Makefile diff --git a/tools/Makefile.am b/tools/Makefile.am index c3feabbe..621cde03 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -12,6 +12,6 @@ if CONFIG_NFSDCLD OPTDIRS += nfsdclddb endif -SUBDIRS = locktest rpcdebug nlmtest mountstats nfs-iostat rpcctl nfsdclnts $(OPTDIRS) +SUBDIRS = locktest rpcdebug nlmtest mountstats nfs-iostat rpcctl nfsdclnts nfs-readahead-udev $(OPTDIRS) MAINTAINERCLEANFILES = Makefile.in diff --git a/tools/nfs-readahead-udev/Makefile.am b/tools/nfs-readahead-udev/Makefile.am new file mode 100644 index 00000000..5455e954 --- /dev/null +++ b/tools/nfs-readahead-udev/Makefile.am @@ -0,0 +1,3 @@ +libexec_PROGRAMS = nfs-readahead-udev +nfs_readahead_udev_SOURCES = main.c + diff --git a/tools/nfs-readahead-udev/main.c b/tools/nfs-readahead-udev/main.c new file mode 100644 index 00000000..e454108e --- /dev/null +++ b/tools/nfs-readahead-udev/main.c @@ -0,0 +1,7 @@ +#include + +int main(int argc, char **argv, char **envp) +{ + unsigned int readahead = 128; + printf("%d\n", readahead); +} -- 2.35.1