get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2197421,
    "url": "http://patchwork.ozlabs.org/api/patches/2197421/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260217214741.1928576-14-cel@kernel.org/",
    "project": {
        "id": 8,
        "url": "http://patchwork.ozlabs.org/api/projects/8/?format=api",
        "name": "Linux ext4 filesystem development",
        "link_name": "linux-ext4",
        "list_id": "linux-ext4.vger.kernel.org",
        "list_email": "linux-ext4@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260217214741.1928576-14-cel@kernel.org>",
    "list_archive_url": null,
    "date": "2026-02-17T21:47:37",
    "name": "[v8,13/17] vboxsf: Implement fileattr_get for case sensitivity",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "2889a8a6547743b92c2b4f911160067afa9ee76a",
    "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-ext4/patch/20260217214741.1928576-14-cel@kernel.org/mbox/",
    "series": [
        {
            "id": 492483,
            "url": "http://patchwork.ozlabs.org/api/series/492483/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=492483",
            "date": "2026-02-17T21:47:25",
            "name": "Subject: Exposing case folding behavior",
            "version": 8,
            "mbox": "http://patchwork.ozlabs.org/series/492483/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2197421/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2197421/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <SRS0=jZS1=AV=vger.kernel.org=linux-ext4+bounces-13724-patchwork-incoming=ozlabs.org@ozlabs.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-ext4@vger.kernel.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "patchwork-incoming@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=VUUjwpqa;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org;\n envelope-from=srs0=jzs1=av=vger.kernel.org=linux-ext4+bounces-13724-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=104.64.211.4 arc.chain=subspace.kernel.org",
            "gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org",
            "gandalf.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=VUUjwpqa;\n\tdkim-atps=neutral",
            "gandalf.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-ext4+bounces-13724-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"VUUjwpqa\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"
        ],
        "Received": [
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\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 4fFtZp5Qmgz1xwr\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 18 Feb 2026 08:49:22 +1100 (AEDT)",
            "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fFtZp4qjkz4w1v\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 18 Feb 2026 08:49:22 +1100 (AEDT)",
            "by gandalf.ozlabs.org (Postfix)\n\tid 4fFtZp4ls0z4wB9; Wed, 18 Feb 2026 08:49:22 +1100 (AEDT)",
            "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 gandalf.ozlabs.org (Postfix) with ESMTPS id 4fFtZl1DJ2z4w1v\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 18 Feb 2026 08:49:19 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id F055A3010685\n\tfor <patchwork-incoming@ozlabs.org>; Tue, 17 Feb 2026 21:48:26 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 5208C2FCC01;\n\tTue, 17 Feb 2026 21:48:19 +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 100E62FB630;\n\tTue, 17 Feb 2026 21:48:18 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 81EA3C19425;\n\tTue, 17 Feb 2026 21:48:16 +0000 (UTC)"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1771364962; cv=pass;\n\tb=CD/3vfheQLbvwX862vYt9kCsTw6YIOY7K1ShvKLZdIVq4eFeCbCRhFINtVgIdtl4tEBPZqEInRjzbTB00tbquKgXKAsMkkDJUUKD+3Zwex6XnBBL4IHz7XqKw0NwwvkptHazifwgl3FjOs0RcmYELVNWnUoZyCQ7Z4c8VQuPSAMw2iV6qZyuy6hyVPdICPEZfQ8O5I6YEi6FwN7P8XNu4PeXgPcHNSZgW6NDHZFTEySOfQG1yaRSF90Ao/5MoNkuy7YBnaZA7DG6c9+9BNtUUV1wBHVYCKUMHs1FBrq6jBfaxJp58HRmORGZOZQoCy/kWn02VFTgyzjsJdnPPICOrw==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1771364899; cv=none;\n b=BIouyOas5O8KsIkcEGeTDDW8zSzQQHfTfhHWY7XdoKaElqMqDOxCdEfHJKd9TZ7vMwgejVKGg6YKHNPhZPkjwWoxNaZLFGwaHbuU6d1t/rz45E2E2FpgotSXcx5yo6SOm9HNpUzhHQ+fF7XjKrt3cHdrJP0AKobSM+tsdYoD1Xo="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1771364962; c=relaxed/relaxed;\n\tbh=/mQwyxiYebL2tFlwsGV35o3p/4f8I8z5DpoIpBOVPCQ=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=RNwIBrGokDB3IY8ohzk7+rkGg4YdqSXTw1X9YN++IDgX7uhgtfT8hlCt3GygseAi2APUZrryxxzYKserp7Z2Peu8MhBv2N9wINND4luBR17fG6B+VAytFfSx2CaO2Q1JSq4FN2qhypfTnWJKA2On5kOHAQdJ7mZA8zH5md/7qHfWL6vk3gJ3pYTywGnW32BSoKeSN3+yYXddnrUsX52kKPL8aCXs38i+wY5aXO9q4f1vKTSEANcQEnxBGE2twXtySjQAo/b+kZdOIvk8d1N/DdZy+Asq5ibpMLIMVnaeaYeL+xe8L69muVu776EvyrB/zpEfgc543kBGZIW/5LD36A==",
            "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1771364899; c=relaxed/simple;\n\tbh=pqdeI5TQwNAuQp+gfTQuqsR0XDwiEm8X5PZvM+QQUsU=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=SQ3kdRIttRvgvRO84AMvjxp/ppwBKvR4g0lG3qzMCeoqrrrQifgxEWp9G6SxgETCQ5ZiqZuy5M46ddfWVs0tTTm032PQGHyx48XcDicKITTA7WsKaqPaXEVaRqDCFCZiOCJYG3THDcXb+n/QyD5+3hTVGfWCquWT2tUClpSSxMI="
        ],
        "ARC-Authentication-Results": [
            "i=2; gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=VUUjwpqa; dkim-atps=neutral;\n spf=pass (client-ip=104.64.211.4; helo=sin.lore.kernel.org;\n envelope-from=linux-ext4+bounces-13724-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org",
            "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=VUUjwpqa; 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=1771364898;\n\tbh=pqdeI5TQwNAuQp+gfTQuqsR0XDwiEm8X5PZvM+QQUsU=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=VUUjwpqaqT8j+ucTcrYiXZcuuBReXbKR2b1qvdLgba5tEaA+Q10sloFLiIdWMUuG2\n\t Zxa62EjYG/p0e5DDN1d9+Ldln1aOvpCuO4myfvsCYWpQJltxbpCgdaoFj3RmuIf16K\n\t 8MgG/OKf0Irbnl6B2BaQhG9MkoLbXewkmsdP5qThLeQMifJekJU2NbWspe2fjNHywe\n\t jFOBulYQXyzbtVtlWK9ed20sIzDRTKClcnfl1taD3pAIyF6zjh3QwXF8LuCpxJCq5t\n\t XubPWp/qBSXq+8OFXuB2vKTVF4vW8N5ju4lqp+5R2lwjqSQBybHmrBOljT6JxGOD3D\n\t bVFhZB0hV93nQ==",
        "From": "Chuck Lever <cel@kernel.org>",
        "To": "Al Viro <viro@zeniv.linux.org.uk>,\n\tChristian Brauner <brauner@kernel.org>,\n\tJan Kara <jack@suse.cz>",
        "Cc": "linux-fsdevel@vger.kernel.org,\n\tlinux-ext4@vger.kernel.org,\n\tlinux-xfs@vger.kernel.org,\n\tlinux-cifs@vger.kernel.org,\n\tlinux-nfs@vger.kernel.org,\n\tlinux-api@vger.kernel.org,\n\tlinux-f2fs-devel@lists.sourceforge.net,\n\thirofumi@mail.parknet.co.jp,\n\tlinkinjeon@kernel.org,\n\tsj1557.seo@samsung.com,\n\tyuezhang.mo@sony.com,\n\talmaz.alexandrovich@paragon-software.com,\n\tslava@dubeyko.com,\n\tglaubitz@physik.fu-berlin.de,\n\tfrank.li@vivo.com,\n\ttytso@mit.edu,\n\tadilger.kernel@dilger.ca,\n\tcem@kernel.org,\n\tsfrench@samba.org,\n\tpc@manguebit.org,\n\tronniesahlberg@gmail.com,\n\tsprasad@microsoft.com,\n\ttrondmy@kernel.org,\n\tanna@kernel.org,\n\tjaegeuk@kernel.org,\n\tchao@kernel.org,\n\thansg@kernel.org,\n\tsenozhatsky@chromium.org,\n\tChuck Lever <chuck.lever@oracle.com>",
        "Subject": "[PATCH v8 13/17] vboxsf: Implement fileattr_get for case sensitivity",
        "Date": "Tue, 17 Feb 2026 16:47:37 -0500",
        "Message-ID": "<20260217214741.1928576-14-cel@kernel.org>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260217214741.1928576-1-cel@kernel.org>",
        "References": "<20260217214741.1928576-1-cel@kernel.org>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-ext4@vger.kernel.org",
        "List-Id": "<linux-ext4.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-ext4+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-ext4+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Spam-Status": "No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tMAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org"
    },
    "content": "From: Chuck Lever <chuck.lever@oracle.com>\n\nUpper layers such as NFSD need a way to query whether a\nfilesystem handles filenames in a case-sensitive manner. Report\nVirtualBox shared folder case handling behavior via the\nFS_XFLAG_CASEFOLD flag.\n\nThe case sensitivity property is queried from the VirtualBox host\nservice at mount time and cached in struct vboxsf_sbi. The host\ndetermines case sensitivity based on the underlying host filesystem\n(for example, Windows NTFS is case-insensitive while Linux ext4 is\ncase-sensitive).\n\nVirtualBox shared folders always preserve filename case exactly\nas provided by the guest. The host interface does not expose a\ncase_preserving property, so this is hardcoded to true.\n\nThe callback is registered in all three inode_operations\nstructures (directory, file, and symlink) to ensure consistent\nreporting across all inode types.\n\nSigned-off-by: Chuck Lever <chuck.lever@oracle.com>\n---\n fs/vboxsf/dir.c    |  1 +\n fs/vboxsf/file.c   |  6 ++++--\n fs/vboxsf/super.c  |  4 ++++\n fs/vboxsf/utils.c  | 31 +++++++++++++++++++++++++++++++\n fs/vboxsf/vfsmod.h |  6 ++++++\n 5 files changed, 46 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/fs/vboxsf/dir.c b/fs/vboxsf/dir.c\nindex 42bedc4ec7af..c5bd3271aa96 100644\n--- a/fs/vboxsf/dir.c\n+++ b/fs/vboxsf/dir.c\n@@ -477,4 +477,5 @@ const struct inode_operations vboxsf_dir_iops = {\n \t.symlink = vboxsf_dir_symlink,\n \t.getattr = vboxsf_getattr,\n \t.setattr = vboxsf_setattr,\n+\t.fileattr_get = vboxsf_fileattr_get,\n };\ndiff --git a/fs/vboxsf/file.c b/fs/vboxsf/file.c\nindex 111752010edb..30a4f4262928 100644\n--- a/fs/vboxsf/file.c\n+++ b/fs/vboxsf/file.c\n@@ -222,7 +222,8 @@ const struct file_operations vboxsf_reg_fops = {\n \n const struct inode_operations vboxsf_reg_iops = {\n \t.getattr = vboxsf_getattr,\n-\t.setattr = vboxsf_setattr\n+\t.setattr = vboxsf_setattr,\n+\t.fileattr_get = vboxsf_fileattr_get,\n };\n \n static int vboxsf_read_folio(struct file *file, struct folio *folio)\n@@ -389,5 +390,6 @@ static const char *vboxsf_get_link(struct dentry *dentry, struct inode *inode,\n }\n \n const struct inode_operations vboxsf_lnk_iops = {\n-\t.get_link = vboxsf_get_link\n+\t.get_link = vboxsf_get_link,\n+\t.fileattr_get = vboxsf_fileattr_get,\n };\ndiff --git a/fs/vboxsf/super.c b/fs/vboxsf/super.c\nindex 241647b060ee..fcabeca2a339 100644\n--- a/fs/vboxsf/super.c\n+++ b/fs/vboxsf/super.c\n@@ -185,6 +185,10 @@ static int vboxsf_fill_super(struct super_block *sb, struct fs_context *fc)\n \tif (err)\n \t\tgoto fail_unmap;\n \n+\terr = vboxsf_query_case_sensitive(sbi);\n+\tif (err)\n+\t\tgoto fail_unmap;\n+\n \tsb->s_magic = VBOXSF_SUPER_MAGIC;\n \tsb->s_blocksize = 1024;\n \tsb->s_maxbytes = MAX_LFS_FILESIZE;\ndiff --git a/fs/vboxsf/utils.c b/fs/vboxsf/utils.c\nindex 9515bbf0b54c..658b8b0ebbd7 100644\n--- a/fs/vboxsf/utils.c\n+++ b/fs/vboxsf/utils.c\n@@ -11,6 +11,7 @@\n #include <linux/sizes.h>\n #include <linux/pagemap.h>\n #include <linux/vfs.h>\n+#include <linux/fileattr.h>\n #include \"vfsmod.h\"\n \n struct inode *vboxsf_new_inode(struct super_block *sb)\n@@ -567,3 +568,33 @@ int vboxsf_dir_read_all(struct vboxsf_sbi *sbi, struct vboxsf_dir_info *sf_d,\n \n \treturn err;\n }\n+\n+int vboxsf_query_case_sensitive(struct vboxsf_sbi *sbi)\n+{\n+\tstruct shfl_volinfo volinfo = {};\n+\tu32 buf_len;\n+\tint err;\n+\n+\tbuf_len = sizeof(volinfo);\n+\terr = vboxsf_fsinfo(sbi->root, 0, SHFL_INFO_GET | SHFL_INFO_VOLUME,\n+\t\t\t    &buf_len, &volinfo);\n+\tif (err)\n+\t\treturn err;\n+\n+\tsbi->case_insensitive = !volinfo.properties.case_sensitive;\n+\treturn 0;\n+}\n+\n+int vboxsf_fileattr_get(struct dentry *dentry, struct file_kattr *fa)\n+{\n+\tstruct vboxsf_sbi *sbi = VBOXSF_SBI(dentry->d_sb);\n+\n+\t/*\n+\t * VirtualBox shared folders preserve filename case exactly as\n+\t * provided by the guest (the default). The host interface does\n+\t * not expose a case-preservation property.\n+\t */\n+\tif (sbi->case_insensitive)\n+\t\tfa->fsx_xflags |= FS_XFLAG_CASEFOLD;\n+\treturn 0;\n+}\ndiff --git a/fs/vboxsf/vfsmod.h b/fs/vboxsf/vfsmod.h\nindex 05973eb89d52..b61afd0ce842 100644\n--- a/fs/vboxsf/vfsmod.h\n+++ b/fs/vboxsf/vfsmod.h\n@@ -47,6 +47,7 @@ struct vboxsf_sbi {\n \tu32 next_generation;\n \tu32 root;\n \tint bdi_id;\n+\tbool case_insensitive;\n };\n \n /* per-inode information */\n@@ -111,6 +112,11 @@ void vboxsf_dir_info_free(struct vboxsf_dir_info *p);\n int vboxsf_dir_read_all(struct vboxsf_sbi *sbi, struct vboxsf_dir_info *sf_d,\n \t\t\tu64 handle);\n \n+int vboxsf_query_case_sensitive(struct vboxsf_sbi *sbi);\n+\n+struct file_kattr;\n+int vboxsf_fileattr_get(struct dentry *dentry, struct file_kattr *fa);\n+\n /* from vboxsf_wrappers.c */\n int vboxsf_connect(void);\n void vboxsf_disconnect(void);\n",
    "prefixes": [
        "v8",
        "13/17"
    ]
}