get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2228069/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2228069,
    "url": "http://patchwork.ozlabs.org/api/patches/2228069/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260424-case-sensitivity-v11-15-de5619beddaf@oracle.com/",
    "project": {
        "id": 12,
        "url": "http://patchwork.ozlabs.org/api/projects/12/?format=api",
        "name": "Linux CIFS Client",
        "link_name": "linux-cifs-client",
        "list_id": "linux-cifs.vger.kernel.org",
        "list_email": "linux-cifs@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260424-case-sensitivity-v11-15-de5619beddaf@oracle.com>",
    "list_archive_url": null,
    "date": "2026-04-25T01:53:17",
    "name": "[v11,15/15] ksmbd: Report filesystem case sensitivity via FS_ATTRIBUTE_INFORMATION",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "aa9bde5180339e2478924b7bc88f6d69827fac2f",
    "submitter": {
        "id": 86689,
        "url": "http://patchwork.ozlabs.org/api/people/86689/?format=api",
        "name": "Chuck Lever",
        "email": "cel@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260424-case-sensitivity-v11-15-de5619beddaf@oracle.com/mbox/",
    "series": [
        {
            "id": 501416,
            "url": "http://patchwork.ozlabs.org/api/series/501416/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=501416",
            "date": "2026-04-25T01:53:02",
            "name": "Exposing case folding behavior",
            "version": 11,
            "mbox": "http://patchwork.ozlabs.org/series/501416/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2228069/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2228069/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-11105-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-cifs@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=f+14oXfN;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=104.64.211.4; helo=sin.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11105-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"f+14oXfN\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g2XxX6j5mz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 25 Apr 2026 11:56:32 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 4F835300BCAC\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 25 Apr 2026 01:54:34 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id BCD9522423A;\n\tSat, 25 Apr 2026 01:54:01 +0000 (UTC)",
            "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 97B2A1A680A;\n\tSat, 25 Apr 2026 01:54:01 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id E7D17C19425;\n\tSat, 25 Apr 2026 01:53:58 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777082041; cv=none;\n b=FJFogCECkPhM2D4+IO6WGLszkdeUjQrrLux7pOgnCsZ7Y/ktWTdgNuPrpFQ5kPFe+WQhql9iw/jFdMVBiwqdhBsvyd+JfHC7x/lU1fN52unHj7W42nd5oxHkijQeR+tZHWAwdhMyc0qe4rHciUYyqvaSpQm+yoQAwPeimVB23x0=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777082041; c=relaxed/simple;\n\tbh=WLSj6q07XGhooB1eQG/mkk9y+n+R25fNe7TfBGbYD6w=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=NzF2bq7UfJwANGQ/6DSaw/NOYqMCxvN3PzTsIHFQDgCUKSuNsoASeiU+Gs3UbJn46A7hx9LIysiAlgNdGjmKBDLPJXSiv9dMBU1PIBKBBxFKOGSWEHLu1D1OJSKMJtrdtb933TLOguaMvIF+bpDOrssc/7UCA/TO/oBcQtdxMJ8=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=f+14oXfN; arc=none smtp.client-ip=10.30.226.201",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1777082041;\n\tbh=WLSj6q07XGhooB1eQG/mkk9y+n+R25fNe7TfBGbYD6w=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=f+14oXfNcR0y15fPuFCLp01DM94FDXmSl7es75IIr1L4hSm26GQHflKCsS/T+fCH7\n\t IxqfvoCKWbcfqftl4glsZxs+3SLtpgCSHkUnoMkglQnXkjw8a835IAnJcl8opIY16Q\n\t xv98I0Bf1eJu9VneyqPhqDYrv1soNLxAtCRxTBoZgaso5zHqEi/IZrDgdjx0pqW+1k\n\t q7i/n+YROp2Wc52rxre4Ly05gxHjM/SxH+6EyIOxW92CC92MxiA9etHi4sB1HWl4GK\n\t 0Gf+QAJNHfBajMT+x7Fie4+Ju0FdgF/okPWs5a5teM3S7e6T5r6L9oGSMyjya+IOR9\n\t sQL/+aD7qtmew==",
        "From": "Chuck Lever <cel@kernel.org>",
        "Date": "Fri, 24 Apr 2026 21:53:17 -0400",
        "Subject": "[PATCH v11 15/15] ksmbd: Report filesystem case sensitivity via\n FS_ATTRIBUTE_INFORMATION",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-cifs@vger.kernel.org",
        "List-Id": "<linux-cifs.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-cifs+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-cifs+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260424-case-sensitivity-v11-15-de5619beddaf@oracle.com>",
        "References": "<20260424-case-sensitivity-v11-0-de5619beddaf@oracle.com>",
        "In-Reply-To": "<20260424-case-sensitivity-v11-0-de5619beddaf@oracle.com>",
        "To": "Al Viro <viro@zeniv.linux.org.uk>,\n Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>",
        "Cc": "linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org,\n linux-xfs@vger.kernel.org, linux-cifs@vger.kernel.org,\n linux-nfs@vger.kernel.org, linux-api@vger.kernel.org,\n linux-f2fs-devel@lists.sourceforge.net, hirofumi@mail.parknet.co.jp,\n linkinjeon@kernel.org, sj1557.seo@samsung.com, yuezhang.mo@sony.com,\n almaz.alexandrovich@paragon-software.com, slava@dubeyko.com,\n glaubitz@physik.fu-berlin.de, frank.li@vivo.com, tytso@mit.edu,\n adilger.kernel@dilger.ca, cem@kernel.org, sfrench@samba.org,\n pc@manguebit.org, ronniesahlberg@gmail.com, sprasad@microsoft.com,\n trondmy@kernel.org, anna@kernel.org, jaegeuk@kernel.org, chao@kernel.org,\n hansg@kernel.org, senozhatsky@chromium.org,\n Chuck Lever <chuck.lever@oracle.com>,\n Roland Mainz <roland.mainz@nrubsig.org>",
        "X-Mailer": "b4 0.16-dev",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=2777;\n i=chuck.lever@oracle.com; h=from:subject:message-id;\n bh=bR19bllkdkbQhQ2DCXklF79gERXw2neFVWEG5vaHCMI=;\n b=owEBbQKS/ZANAwAKATNqszNvZn+XAcsmYgBp7B6RlXNMlI/rLhCwMFhVMU8ZABGegjkofRPR2\n ncJdim+heqJAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCaewekQAKCRAzarMzb2Z/\n l1LND/4uqOXdd199YF0FpQLa57v96XaDEDTz2tsuu1Jy8Rm2pkaAXnt2S5mPdS/8jzkzmi8Oi6m\n X8XT6xcacj3KsdAAFTD22vS6WbgVdTAmqK65TET+/SmvLrIeaDdev8EEZnZoBoYSTPSDAcTs7qV\n 1Uzz5TZXPXu3LL9lifyrHKczsHxRp/BhX7soqltLsQ/MxdspB+mJfx5/pIOCT9FPWeBmGpkBUFQ\n t9OKuJS/b7g1R1HG1MXBx4SpEXth/mJZ1Y8+k0eeAnED3Tht8jjnMCAaVaqKxHbreQp7dpGLCMs\n j4ROrEqRnwFuKYciW5JQW7Fon0sKdOQmNBiKcE0B3SaJP0v/xGQRvJUOjixSrhd214JwfTiNl5L\n 1EUZwcRevf0/4qphDqBbebHD67q0dsygv4qA/5muzo7Bfa1+btVRlfqttC7WyiRVKuAfZ4m9rU0\n HVG15pYcsZmOR5wT9PMxrhUCsRgWMpLtFW5MBUffzk5W5LYIvWxFS1WJg80XNFH2jKKenkyhHeo\n ontQczLzlnKsa/hSS8eetl3DOOvi/08TkI+xVlQAwzjrv9UpaOcOxuS1OOK1n4bHUnSiclMjqhK\n 7uTnYGGYWBmJx9yRhyzZXRZ06a/PyRhr6U3THDwc+IzuK3t4jHMf9Y0ul1U2EHaUgGawkyjbTRu\n 9PR5DEbJBJC+XtA==",
        "X-Developer-Key": "i=chuck.lever@oracle.com; a=openpgp;\n fpr=28B2E5B01286DF243CF23EFE336AB3336F667F97"
    },
    "content": "From: Chuck Lever <chuck.lever@oracle.com>\n\nFS_ATTRIBUTE_INFORMATION responses have always reported\nFILE_CASE_SENSITIVE_SEARCH and FILE_CASE_PRESERVED_NAMES\nunconditionally. Case-insensitive filesystems like exFAT, and\ncasefolded directories on ext4 or f2fs, have no way to signal\ntheir actual semantics to SMB clients.\n\nNow that filesystems expose case behavior through ->fileattr_get,\nquery it via vfs_fileattr_get() and translate the FS_XFLAG_CASEFOLD\nand FS_XFLAG_CASENONPRESERVING flags into the corresponding SMB\nattributes. Filesystems without ->fileattr_get continue reporting\ndefault POSIX behavior (case-sensitive, case-preserving).\n\nSMB's FS_ATTRIBUTE_INFORMATION reports per-share attributes from\nthe share root, not per-file. Shares mixing casefold and\nnon-casefold directories report the root directory's behavior.\n\nAcked-by: Namjae Jeon <linkinjeon@kernel.org>\nReviewed-by: Roland Mainz <roland.mainz@nrubsig.org>\nSigned-off-by: Chuck Lever <chuck.lever@oracle.com>\n---\n fs/smb/server/smb2pdu.c | 30 ++++++++++++++++++++++++------\n 1 file changed, 24 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/fs/smb/server/smb2pdu.c b/fs/smb/server/smb2pdu.c\nindex ee32e61b6d3c..face5390c614 100644\n--- a/fs/smb/server/smb2pdu.c\n+++ b/fs/smb/server/smb2pdu.c\n@@ -14,6 +14,7 @@\n #include <linux/falloc.h>\n #include <linux/mount.h>\n #include <linux/filelock.h>\n+#include <linux/fileattr.h>\n \n #include \"glob.h\"\n #include \"smbfsctl.h\"\n@@ -5541,16 +5542,33 @@ static int smb2_get_info_filesystem(struct ksmbd_work *work,\n \tcase FS_ATTRIBUTE_INFORMATION:\n \t{\n \t\tFILE_SYSTEM_ATTRIBUTE_INFO *info;\n+\t\tstruct file_kattr fa = {};\n \t\tsize_t sz;\n+\t\tu32 attrs;\n+\t\tint err;\n \n \t\tinfo = (FILE_SYSTEM_ATTRIBUTE_INFO *)rsp->Buffer;\n-\t\tinfo->Attributes = cpu_to_le32(FILE_SUPPORTS_OBJECT_IDS |\n-\t\t\t\t\t       FILE_PERSISTENT_ACLS |\n-\t\t\t\t\t       FILE_UNICODE_ON_DISK |\n-\t\t\t\t\t       FILE_CASE_PRESERVED_NAMES |\n-\t\t\t\t\t       FILE_CASE_SENSITIVE_SEARCH |\n-\t\t\t\t\t       FILE_SUPPORTS_BLOCK_REFCOUNTING);\n+\t\tattrs = FILE_SUPPORTS_OBJECT_IDS |\n+\t\t\tFILE_PERSISTENT_ACLS |\n+\t\t\tFILE_UNICODE_ON_DISK |\n+\t\t\tFILE_SUPPORTS_BLOCK_REFCOUNTING;\n \n+\t\terr = vfs_fileattr_get(path.dentry, &fa);\n+\t\t/*\n+\t\t * -EINVAL: ntfs-3g and other FUSE filesystems that lack\n+\t\t * FS_IOC_FSGETXATTR support.\n+\t\t */\n+\t\tif (err && err != -ENOIOCTLCMD && err != -ENOTTY &&\n+\t\t    err != -EINVAL) {\n+\t\t\tpath_put(&path);\n+\t\t\treturn err;\n+\t\t}\n+\t\tif (!(fa.fsx_xflags & FS_XFLAG_CASEFOLD))\n+\t\t\tattrs |= FILE_CASE_SENSITIVE_SEARCH;\n+\t\tif (!(fa.fsx_xflags & FS_XFLAG_CASENONPRESERVING))\n+\t\t\tattrs |= FILE_CASE_PRESERVED_NAMES;\n+\n+\t\tinfo->Attributes = cpu_to_le32(attrs);\n \t\tinfo->Attributes |= cpu_to_le32(server_conf.share_fake_fscaps);\n \n \t\tif (test_share_config_flag(work->tcon->share_conf,\n",
    "prefixes": [
        "v11",
        "15/15"
    ]
}