get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230446,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230446/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260429-case-sensitivity-v12-15-8057123bebe0@oracle.com/",
    "project": {
        "id": 12,
        "url": "http://patchwork.ozlabs.org/api/1.1/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": ""
    },
    "msgid": "<20260429-case-sensitivity-v12-15-8057123bebe0@oracle.com>",
    "date": "2026-04-29T18:07:26",
    "name": "[v12,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/1.1/people/86689/?format=api",
        "name": "Chuck Lever",
        "email": "cel@kernel.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260429-case-sensitivity-v12-15-8057123bebe0@oracle.com/mbox/",
    "series": [
        {
            "id": 502123,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502123/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=502123",
            "date": "2026-04-29T18:07:11",
            "name": "Exposing case folding behavior",
            "version": 12,
            "mbox": "http://patchwork.ozlabs.org/series/502123/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230446/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230446/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-11295-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=cp7aPOO+;\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-11295-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=\"cp7aPOO+\"",
            "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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5QQB6Rvvz1yHZ\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 04:12:50 +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 C2498308B071\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 18:08:59 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 05F17421885;\n\tWed, 29 Apr 2026 18:08:06 +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 D4A3E41C2EB;\n\tWed, 29 Apr 2026 18:08:05 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 3B2BCC19425;\n\tWed, 29 Apr 2026 18:08:03 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777486085; cv=none;\n b=KApq0nTEca1lTOwFZXLlcSIdpHRu9R3ZK3ADdiY5wGr31D+QwYzeaLmeEOO4JFI+ZfB6GQej/fGnUvCsngdjFMBVZWZ50+q2X3J/LDNTH9PuAjoIpi26kNYoUmU4zO6LphmkZmpsdPQRJhg2prqr1se3cBCqL8OKSIHye3SlRyQ=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777486085; 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=CZU6k68QIom8f1cBvpNYfUA0ggxk3qxZxhPOYLH+Ph+B4RlPBSF+UMlcW4qd1luSjTMc9wwGrJbYVHVlDn8HEpmnh7s/cvtdSWI/OCcK++0XWlpn0pInknkk+xd+FH+wUIIisjuq4uwr3X4fFwreBEpTcu7o+MXkWtSaUKzQmjo=",
        "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=cp7aPOO+; 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=1777486085;\n\tbh=qee/kCsMg8C4eRFPxmiZaknm+clMPDWXLjgwoKgpYx8=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=cp7aPOO+0dpAl5comMlMldcJa1APBJg4dyIBsWMJ2dtOrQbwWwziadV1HHKwrhyO2\n\t EKu4+yuEtoA6jUBez4Y0IWm7LnpjZ7KIQ0cKbWX4NFBhaQoo8h8ksY6WyypcBJIiWf\n\t YVKLHIwg3nRuxX0c7vGmZp0keEDeDDm30aZiICMEh6w5Ltf7b9eGdLSsN7GUeHd2RO\n\t KG8J5iHDbC2xwSoCytBzBwqRmnDRaD72VrktoFD4aXdoNzEgYb39fr+hiUjydoGqNK\n\t eZvAfEO7UeiBTmVpcpqsgS3jMPggCeKbV1zsEWMalElaMbD0tnnbSQkclFiQ1gT2dT\n\t +Oqta2nmBEIpg==",
        "From": "Chuck Lever <cel@kernel.org>",
        "Date": "Wed, 29 Apr 2026 14:07:26 -0400",
        "Subject": "[PATCH v12 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": "<20260429-case-sensitivity-v12-15-8057123bebe0@oracle.com>",
        "References": "<20260429-case-sensitivity-v12-0-8057123bebe0@oracle.com>",
        "In-Reply-To": "<20260429-case-sensitivity-v12-0-8057123bebe0@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+XAcsmYgBp8kjdM8DNWFfItbp41H9vWWe4sjWWzOyQ+8ADF\n lrE33haaFeJAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCafJI3QAKCRAzarMzb2Z/\n l6qCD/49AW4062WfbZHsVpGZySPK2wkZN4kfzlroTWbJi5jHIlMQIwp5bYVt4lATNx2xi3HKgCa\n yItm/0qjXDMJPU9Fn94bdyvedMVogpUZIY/ZRViPTT9ruiASIFp9YTJaUFH3gm+q6lKMGGueSfn\n Z8EN2By/rS44QT2tQtZeRQg+zuoeN0qOLicrbGM8Ug4pCtBZ8RgpvTKfaLyrnDSp4V386qjxeSF\n m6/1X0kKy/gtY/4vezUg9HU0vMFe/Z8hWm7GM3FiUBaQtO3NkImZILcblBqflbk1iwbr7Qyj/ZN\n GolZ7i6mSX43sZPXu2qZvJcXrsjI2l1ZrjkAcd2TiNhxk01B8C29+OkVaZDoYfOFPJ7cem1CUkD\n yF4wuNlaIqyfQ7wUC2gDXnZx464eKD6yuPpBqLgQh5Shi11DAwcJh+bESsAO0t8+6/KX8qiwJ+D\n FmGWua4a6ZHifxfcGv//3z8Lqg/FuYL/G/tSGUlJR3ucsFKGHFkl58j6LSSMV6/nXs5C/WsGKGX\n BXuIrC5tVEveeTCH07Efv3p8TfnjaJqw+kQMv4dnuhYU1F4RwUb/4o3W2yBHobxSWo9aYMfSm/7\n xCr9iOFnAKJYKyohvVvXxada0v9urbMpe8ELrwuwZW6XK/aKH29m1vV2wOnVmP/IH9CA5qJVTgt\n LYV9F6XEAovyiZQ==",
        "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": [
        "v12",
        "15/15"
    ]
}