From patchwork Tue May 15 09:05:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Aur=C3=A9lien_Aptel?= X-Patchwork-Id: 10400471 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2CF31600F4 for ; Tue, 15 May 2018 09:05:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D85528686 for ; Tue, 15 May 2018 09:05:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 02A25286E4; Tue, 15 May 2018 09:05:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB62A28686 for ; Tue, 15 May 2018 09:05:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752367AbeEOJFP (ORCPT ); Tue, 15 May 2018 05:05:15 -0400 Received: from mx2.suse.de ([195.135.220.15]:52782 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752256AbeEOJFO (ORCPT ); Tue, 15 May 2018 05:05:14 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 999C4AE1B; Tue, 15 May 2018 09:05:13 +0000 (UTC) From: Aurelien Aptel To: linux-cifs@vger.kernel.org Cc: jlayton@kernel.org, Aurelien Aptel Subject: [cifs-utils PATCH v1 2/2] mount.cifs.rst: document new (no)handlecache mount option Date: Tue, 15 May 2018 11:05:03 +0200 Message-Id: <20180515090503.11182-2-aaptel@suse.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180515090503.11182-1-aaptel@suse.com> References: <20180515090503.11182-1-aaptel@suse.com> Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Aurelien Aptel --- mount.cifs.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mount.cifs.rst b/mount.cifs.rst index c0f0bdb..405c459 100644 --- a/mount.cifs.rst +++ b/mount.cifs.rst @@ -237,6 +237,16 @@ cache=arg The default in kernels prior to 3.7 was ``loose``. As of kernel 3.7 the default is ``strict``. +handlecache + (default) In SMB2 and above, the client often has to open the root + of the share (empty path) in various places during mount, path + revalidation and the statfs(2) system call. This option cuts + redundant round trip traffic (opens and closes) by simply keeping + the directory handle for the root around once opened. + +nohandlecache + Disable caching of the share root directory handle. + directio Do not do inode data caching on files opened on this mount. This precludes mmaping files on this mount. In some cases with fast