From patchwork Fri Nov 10 07:30:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve French X-Patchwork-Id: 1862352 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=gJ4+ylvP; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:40f1:3f00::1; helo=sy.mirrors.kernel.org; envelope-from=linux-cifs+bounces-43-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [IPv6:2604:1380:40f1:3f00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SRVqB6KWvz1yQl for ; Fri, 10 Nov 2023 18:30:46 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1E9C8B20D09 for ; Fri, 10 Nov 2023 07:30:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B88B1FCB; Fri, 10 Nov 2023 07:30:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gJ4+ylvP" X-Original-To: linux-cifs@vger.kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3ABA41FC4 for ; Fri, 10 Nov 2023 07:30:41 +0000 (UTC) Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF4568689 for ; Thu, 9 Nov 2023 23:30:39 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-507e85ebf50so2194061e87.1 for ; Thu, 09 Nov 2023 23:30:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699601438; x=1700206238; darn=vger.kernel.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=hK9ose7rtNgcL2qBkXgfbjD4PqSd5SPvz8Udedxd9qE=; b=gJ4+ylvP0V6i4QEiGZUP4264SI726BOT/zHhWSCBGqBYprh9IpBScQs/gIQ0LfAeVh sxREhAPS16AHVrluDYH3tMm9Y17nzBfhZuM/He6PczdmQjTzSTkRcFyL6uC/noKcqV7j FUIq8MOYRFuIH2HFXsVdT1cvZ3O8a+fZmWgMlerf7ZJ07PAO5il5go0hyQJN5CSuSt7r 7HYN9S3shNZuYqyo3Xt7y6lvXFBx0iOAZrfWJmnER1lr8sY0h3jRxp/4sgnjq0lShmCt WoQ7lvrSPZLbTXlfooMV+omTSSs5yxhVUQL/Gy8IDe1R1ImsT8YorSi2pU3R/BusHrDA 9frw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699601438; x=1700206238; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hK9ose7rtNgcL2qBkXgfbjD4PqSd5SPvz8Udedxd9qE=; b=gDeGyyP/rXcJGtrQyAONCZbPDA+V0wLwbjKRCFrJQnm+xh38X3uBeXgMVKFF03Cdg6 soyefBJ/X6KwelQmjzHbEpGkf4vKYmPjgxOwdpYHSv07xaDo0rrvPyWG/9TbQ87QjetL 07IeWi+wQ6GlUOh28ZSqRnSDW/qVy39sbc5R4ABWNImoJD/1whEOYyzhp1WGw1NrzG62 LLjnfbG2cSm7O2YBVYQRfhEELBEj/04eJTeqNTunzjiyrMquUgdQE5hjJjUNQ6K87DNk YPOndIUbXd4Z/nAL1cvgUOx/XKjG9DIkv5/7aVvlkXYe9aDYBfuX9z0Cq0X/bMKscNfd KfRw== X-Gm-Message-State: AOJu0YzKfCdWrw8SNcqkQcIltuZK2iABYahelnpo3OPUlwDtsf5Q3glK 3gRhbz0RvBlT0TygyXrObsBlORG0LqKeNpO1QoYYWrrLBGEDnmVv2uY= X-Google-Smtp-Source: AGHT+IHVMpgt9QYF/66LHR1c+3nq3DpKlAEAvudSGACrx4FmsnK2it4LX45BeSy5UnDzXRKxA1FY/TNHcKn15XQtZY4= X-Received: by 2002:a05:6512:34c3:b0:507:b15b:8b93 with SMTP id w3-20020a05651234c300b00507b15b8b93mr2766448lfr.69.1699601437554; Thu, 09 Nov 2023 23:30:37 -0800 (PST) Precedence: bulk X-Mailing-List: linux-cifs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Steve French Date: Fri, 10 Nov 2023 01:30:26 -0600 Message-ID: Subject: [PATCH][SMB3 client] flags field not being set in To: CIFS A very small fix ... The tcon_flags field was always being set to zero in the information about the mount returned by the ioctl CIFS_IOC_GET_MNT_INFO instead of being set to the value of the Flags field in the tree connection structure as intended. From a99a12867600231f12c8bd1dad182c40855476b6 Mon Sep 17 00:00:00 2001 From: Steve French Date: Fri, 10 Nov 2023 01:24:16 -0600 Subject: [PATCH] Missing field not being returned in ioctl CIFS_IOC_GET_MNT_INFO The tcon_flags field was always being set to zero in the information about the mount returned by the ioctls CIFS_IOC_GET_MNT_INFO instead of being set to the value of the Flags field in the tree connection structure as intended. Signed-off-by: Steve French --- fs/smb/client/ioctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/smb/client/ioctl.c b/fs/smb/client/ioctl.c index 73ededa8eba5..e2f92c21fff5 100644 --- a/fs/smb/client/ioctl.c +++ b/fs/smb/client/ioctl.c @@ -143,6 +143,7 @@ static long smb_mnt_get_fsinfo(unsigned int xid, struct cifs_tcon *tcon, fsinf->version = 1; fsinf->protocol_id = tcon->ses->server->vals->protocol_id; + fsinf->tcon_flags = tcon->Flags; fsinf->device_characteristics = le32_to_cpu(tcon->fsDevInfo.DeviceCharacteristics); fsinf->device_type = le32_to_cpu(tcon->fsDevInfo.DeviceType); -- 2.39.2