From patchwork Fri Jun 26 19:58:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Aurich X-Patchwork-Id: 11628589 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6BE371862 for ; Fri, 26 Jun 2020 20:06:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4AD4D20720 for ; Fri, 26 Jun 2020 20:06:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=darkrain42.org header.i=@darkrain42.org header.b="Y9Jd2vc5" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726192AbgFZUG2 (ORCPT ); Fri, 26 Jun 2020 16:06:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbgFZUG1 (ORCPT ); Fri, 26 Jun 2020 16:06:27 -0400 Received: from mail.darkrain42.org (o-chul.darkrain42.org [IPv6:2600:3c01::f03c:91ff:fe96:292c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03DADC03E97E for ; Fri, 26 Jun 2020 13:06:27 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by o-chul.darkrain42.org (Postfix) with ESMTPSA id 9C6148201; Fri, 26 Jun 2020 12:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkrain42.org; s=a; t=1593201518; bh=Mw3ySGLclDExgqtCSYh8MQIvlnlfvu7QtUl//1QfNy8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y9Jd2vc5XAHyETcr84KeFrrg1d7cV91SZbEaOQUhEALPNJMUNH+aN5lXDaGo13nS2 iwWQQ22X7WRLcYizn7wiC6dV4kKwGrJIMSm1qqeW3UlOyCnD1kcP00K4D2HzlSvkWN mEoYGxxwoBX0B9k4tMNMcMu08q5uxAD7Xoc+N00VUcT/sqJ8wjxNh2BC5zuL6qLvTy bPn1/Aeg4g82p750v8HWEajspiR9ehhCOQEsVqZsQC3eT7SLUBdKTrF8ZHXek7mX2X BxBi+OQKb0RQ6WjBbgjnQZOXYxXFvpZmHiSuYgSAbjyMSJT0sUzlvDiwKwCk/7b5hQ ar1hw01JUQXYA== From: Paul Aurich To: linux-cifs@vger.kernel.org, sfrench@samba.org Cc: paul@darkrain42.org Subject: [PATCH 3/6] SMB3: Honor persistent/resilient handle flags for multiuser mounts Date: Fri, 26 Jun 2020 12:58:06 -0700 Message-Id: <20200626195809.429507-4-paul@darkrain42.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200626195809.429507-1-paul@darkrain42.org> References: <20200626195809.429507-1-paul@darkrain42.org> MIME-Version: 1.0 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org Without this: - persistent handles will only be enabled for per-user tcons if the server advertises the 'Continuous Availabity' capability - resilient handles would never be enabled for per-user tcons Signed-off-by: Paul Aurich CC: Stable --- fs/cifs/connect.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 804509f7f3a1..dc7f875d2caf 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -5306,6 +5306,8 @@ cifs_construct_tcon(struct cifs_sb_info *cifs_sb, kuid_t fsuid) vol_info->nocase = master_tcon->nocase; vol_info->nohandlecache = master_tcon->nohandlecache; vol_info->local_lease = master_tcon->local_lease; + vol_info->resilient = master_tcon->use_resilient; + vol_info->persistent = master_tcon->use_persistent; vol_info->no_linux_ext = !master_tcon->unix_ext; vol_info->sectype = master_tcon->ses->sectype; vol_info->sign = master_tcon->ses->sign;