From patchwork Mon Oct 9 04:15:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve French X-Patchwork-Id: 13412930 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 CF597E95A8D for ; Mon, 9 Oct 2023 04:15:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345030AbjJIEPZ (ORCPT ); Mon, 9 Oct 2023 00:15:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345004AbjJIEPY (ORCPT ); Mon, 9 Oct 2023 00:15:24 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E04BBA4 for ; Sun, 8 Oct 2023 21:15:22 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-50305abe5f0so5370463e87.2 for ; Sun, 08 Oct 2023 21:15:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696824921; x=1697429721; darn=vger.kernel.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=IqBxmam5F7+VnQZu3In8O7rmGARTjuwgmHOYYCwTnJs=; b=RkdbehIBVb+OELuLk9iJZcwwZmepuRpWyzsORYRqupv8aeOvq9sOO+deD135/EwTzs SIDrXsVBYZ/wMnnU127cFKQMaFY9X4kJl4AjJ+SvOtHUSbviKHN0tzIaymmhEt5fsfHu A+15oWYLsuLGMCD1O6byqaa3R0Zda4J5+XF4wUYJ4ZflpBhLcOLWSg7xhIVeNogCM1Pw OjsfdTUnzAL53pvNgZGDzphFs2z5oz0T1BBA4UWJABGCSvVpPC/Gy4j86OG1wF5DUo4Z JbFlTK2nR1tPeZn1SowOhhZWvQHbirhNYVB4aQ9W9MRIG+bBhqPZKkew4/cytMK8yZdI 1p/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696824921; x=1697429721; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=IqBxmam5F7+VnQZu3In8O7rmGARTjuwgmHOYYCwTnJs=; b=kaRqAxIVTDV5K1ZEA7zhxi6u3dw6tlle8uZedKjd+4Wu3CohwPIzf2h+Q7oeppI7Eb 0wRlOb2HN5YwiwroIxO7Qx3AkFcXB2Akl+tG1WCI6gmE8ZjKaRgt4lEQia8gOo/pyQeu kFgf/kwGTrd24WKGTUdJ4n/vhItjD2XtjQMrz6RcfFHhUSetn6R6u0formXEXCGCN04J Dvv1MOZA5ZUgLiLKDJbc9syNZjDdjyjfxHWmFtImO1nOknkw0g1OQ1k8jVHHkLfoCiv+ Y7mqVu2hcsOA9uUpNB3GRpzhg4xMCAN3RFtMtlsSL+8aSLWoZVk9Jq+B9dg47+M3bSy0 pqQA== X-Gm-Message-State: AOJu0Yzh3LNTxpKRrfukMKW/MumQQyp7UxTlDe9/zjW6U2On8h6+LTJE p1DJApQmoe4SXcK35OubxQYnQTOYzqWiA5A9pociMCy1iPE= X-Google-Smtp-Source: AGHT+IFnrNsj4JYHGAjDAAG0TP0UsOX5fkVRc3A2ywMdHcnuHboz/BKiPDvRO8E6ah/9S9NY3vXPY85/AezIW2IKBu0= X-Received: by 2002:a05:6512:758:b0:503:59d:fbff with SMTP id c24-20020a056512075800b00503059dfbffmr3610209lfs.2.1696824920645; Sun, 08 Oct 2023 21:15:20 -0700 (PDT) MIME-Version: 1.0 From: Steve French Date: Sun, 8 Oct 2023 23:15:09 -0500 Message-ID: Subject: New SMB3.1.1 command To: samba-technical , CIFS Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org Add structs and defines for new SMB3.1.1 command, server to client notification. See MS-SMB2 section 2.2.44 Also another minor patch to clarify some of the unused CreateOptions flags See MS-SMB2 section 2.2.13 See attached. From 37a52ceb9b7b6e098846472e1b81ee95bfc0f6cb Mon Sep 17 00:00:00 2001 From: Steve French Date: Sun, 8 Oct 2023 23:11:38 -0500 Subject: [PATCH] SMB3: clarify some of the unused CreateOption flags Update comments to show flags which should be not set (zero). See MS-SMB2 section 2.2.13 Signed-off-by: Steve French --- fs/smb/common/smb2pdu.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fs/smb/common/smb2pdu.h b/fs/smb/common/smb2pdu.h index 73cdcf14ef27..8a469929cf62 100644 --- a/fs/smb/common/smb2pdu.h +++ b/fs/smb/common/smb2pdu.h @@ -1112,16 +1112,23 @@ struct smb2_server_client_notification { #define FILE_WRITE_THROUGH_LE cpu_to_le32(0x00000002) #define FILE_SEQUENTIAL_ONLY_LE cpu_to_le32(0x00000004) #define FILE_NO_INTERMEDIATE_BUFFERING_LE cpu_to_le32(0x00000008) +/* FILE_SYNCHRONOUS_IO_ALERT_LE cpu_to_le32(0x00000010) should be zero, ignored */ +/* FILE_SYNCHRONOUS_IO_NONALERT cpu_to_le32(0x00000020) should be zero, ignored */ #define FILE_NON_DIRECTORY_FILE_LE cpu_to_le32(0x00000040) #define FILE_COMPLETE_IF_OPLOCKED_LE cpu_to_le32(0x00000100) #define FILE_NO_EA_KNOWLEDGE_LE cpu_to_le32(0x00000200) +/* FILE_OPEN_REMOTE_INSTANcE cpu_to_le32(0x00000400) should be zero, ignored */ #define FILE_RANDOM_ACCESS_LE cpu_to_le32(0x00000800) -#define FILE_DELETE_ON_CLOSE_LE cpu_to_le32(0x00001000) +#define FILE_DELETE_ON_CLOSE_LE cpu_to_le32(0x00001000) /* MBZ */ #define FILE_OPEN_BY_FILE_ID_LE cpu_to_le32(0x00002000) #define FILE_OPEN_FOR_BACKUP_INTENT_LE cpu_to_le32(0x00004000) #define FILE_NO_COMPRESSION_LE cpu_to_le32(0x00008000) +/* FILE_OPEN_REQUIRING_OPLOCK cpu_to_le32(0x00010000) should be zero, ignored */ +/* FILE_DISALLOW_EXCLUSIVE cpu_to_le32(0x00020000) should be zero, ignored */ +/* FILE_RESERVE_OPFILTER cpu_to_le32(0x00100000) MBZ */ #define FILE_OPEN_REPARSE_POINT_LE cpu_to_le32(0x00200000) #define FILE_OPEN_NO_RECALL_LE cpu_to_le32(0x00400000) +/* #define FILE_OPEN_FOR_FREE_SPACE_QUERY cpu_to_le32(0x00800000) should be zero, ignored */ #define CREATE_OPTIONS_MASK_LE cpu_to_le32(0x00FFFFFF) #define FILE_READ_RIGHTS_LE (FILE_READ_DATA_LE | FILE_READ_EA_LE \ -- 2.39.2