get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2232073,
    "url": "http://patchwork.ozlabs.org/api/patches/2232073/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260502-case-sensitivity-v13-15-aa853140311f@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": "<20260502-case-sensitivity-v13-15-aa853140311f@oracle.com>",
    "list_archive_url": null,
    "date": "2026-05-02T14:21:00",
    "name": "[v13,15/15] ksmbd: Report filesystem case sensitivity via FS_ATTRIBUTE_INFORMATION",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "bce4e31358daebdc91f39b6c2ff85905680aed70",
    "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/20260502-case-sensitivity-v13-15-aa853140311f@oracle.com/mbox/",
    "series": [
        {
            "id": 502530,
            "url": "http://patchwork.ozlabs.org/api/series/502530/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=502530",
            "date": "2026-05-02T14:20:45",
            "name": "Exposing case folding behavior",
            "version": 13,
            "mbox": "http://patchwork.ozlabs.org/series/502530/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2232073/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2232073/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-11374-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=bQkPGs/V;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11374-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=\"bQkPGs/V\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g79BY5fP3z1y04\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 03 May 2026 00:23:49 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 751EC301FA8D\n\tfor <incoming@patchwork.ozlabs.org>; Sat,  2 May 2026 14:22:46 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id D638033F58C;\n\tSat,  2 May 2026 14:22:42 +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 A935933D4FD;\n\tSat,  2 May 2026 14:22:42 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id C1DDFC19425;\n\tSat,  2 May 2026 14:22:36 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777731762; cv=none;\n b=TOHtApi3RdBSy9028I2ebeoMjw5k0bewNW7gLHqv8DolPeP0WHH/d9oeT2ZTNtVOhHYAIfwBjd99Gp+/cbQzKwF5H+VSUmys0FVspQ4NHWJTkETt7l1Zm43v7YmiGpizGuN5cQdle0pLHjxe7b93mmOnhMOXttzGYVKvPFb2Y7I=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777731762; c=relaxed/simple;\n\tbh=qee/kCsMg8C4eRFPxmiZaknm+clMPDWXLjgwoKgpYx8=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=NF5H1zE0PM0S4gXxYA+loTOfA48k6RPeafuDOTudMFDobmyqqnoXZOs4kc4V/jm7vsqtuaX5nSq4C2BmFg/UBAi7kaoOerGg4GZiHS7lzzn9zixzl+7OjMc1wpnfKfoMZErkED8m7g8OajvzEsk4ScPhERR8wDKcSUXO908/Asc=",
        "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=bQkPGs/V; 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=1777731762;\n\tbh=qee/kCsMg8C4eRFPxmiZaknm+clMPDWXLjgwoKgpYx8=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=bQkPGs/VClTXVe7RJWNstN5TRHFnJPur402C7r15f8ZfoCNm+mc62dH87hRvCnli9\n\t AIAkrLYBzmzx1ZL/dwfSGYCoIhV6YopiR3pphFxnwS5hPYzVlSa9UfmXValKG6W44R\n\t DNcfOtD8C2VzZ7qxgI9AqXItn6XpNLzSfGrcxfbr+cU+rPB/BQ0vLES3y3wjmW3ZWv\n\t M+z8CZmNPolQ34BzYg1vsXL6mk94AOF1GlygCWn7EEHcaN08VMHpVNdN/m5FwGl/Oj\n\t 6CBh+asEl+qCGvNJh2q7I1rPLRno2O+374hMYm+B3s+xydTaMBOM4LouQSR8cJJhCg\n\t boI+EqT0UQh7g==",
        "From": "Chuck Lever <cel@kernel.org>",
        "Date": "Sat, 02 May 2026 10:21:00 -0400",
        "Subject": "[PATCH v13 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": "<20260502-case-sensitivity-v13-15-aa853140311f@oracle.com>",
        "References": "<20260502-case-sensitivity-v13-0-aa853140311f@oracle.com>",
        "In-Reply-To": "<20260502-case-sensitivity-v13-0-aa853140311f@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=2812;\n i=chuck.lever@oracle.com; h=from:subject:message-id;\n bh=3j19l6mVyr/XReBrhpdSBMPAL80WouHe9sT+TihiyQM=;\n b=owEBbQKS/ZANAwAKATNqszNvZn+XAcsmYgBp9ghR5o+RiEOKLVYs8fKHluTob3cyoRHlSuLpO\n IhopKWa5I2JAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCafYIUQAKCRAzarMzb2Z/\n l0/sD/9NAN/eiWStj0uMUbgslClWKS0KXDa0CJiGF0vGNQ20tWI3HeSmZA6JphPx39504bWoStu\n U9abYmvZJr2BB5PC4nQBaHFd09QP2X5/zKhHQqVZHoiVU3ItQaxgCb2NBKFtfZ4eSbqMhy87g0C\n TceN7w3DgaKI5qtIbS2DrEck538I04k6SclOw4jDJAKkQ0s9v2VQK46AiT8zfLpZtKxyD3TBLj1\n bR6RuhpvU1Wba5LSR3E5nRAtIkj6Yd29JVJRbFsvVOj5b1s66Gt1iWZ/IpOXqd3akt5SsfF2uXQ\n TDBUbFUGkRZJKUlIAOdLm4K3psQ9mwISzEurgdO8wmzaAxLM6FvKbNDv99JoOOX73sJpsYEzRMd\n G/BRCdUN5Rb3J51anmd1cEoxYQy4mVTySi/L2HdVIOeoOrfgAlpYMm+RB2gAc8Y5uIMqYgjZnBb\n 4ydECc0FI1ya4xsU8jkEUmU9ZczhuATaFNT3YYkiN6deNgqMIq7Mtqxe4thwfTdsX9BJ1lPtX6I\n 6WmShv8pUqdjPIAcS++OpNuLb65oDOIcELEqXpjGkbj30nBBjmN8meuU0MQMwKtQzj20V82Xkv9\n URfRjBYVKorxQuwwUEHwPjt0xH2wdwnW5eBfDnf7zECnmHgLNF6Cb/txRqw79dQ7h9e/ZiFHrYt\n BIs73uA2+CXMpqA==",
        "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..cf0bc453a036 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, -EOPNOTSUPP: ntfs-3g and other FUSE\n+\t\t * filesystems that lack FS_IOC_FSGETXATTR support.\n+\t\t */\n+\t\tif (err && err != -ENOIOCTLCMD && err != -ENOTTY &&\n+\t\t    err != -EINVAL && err != -EOPNOTSUPP) {\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": [
        "v13",
        "15/15"
    ]
}