get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2227321,
    "url": "http://patchwork.ozlabs.org/api/patches/2227321/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260423-case-sensitivity-v10-13-c385d674a6cf@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": "<20260423-case-sensitivity-v10-13-c385d674a6cf@oracle.com>",
    "list_archive_url": null,
    "date": "2026-04-23T13:12:16",
    "name": "[v10,13/17] vboxsf: Implement fileattr_get for case sensitivity",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "cac67f8d45eb39eb12272d74ed1cef5cc3ab3792",
    "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/20260423-case-sensitivity-v10-13-c385d674a6cf@oracle.com/mbox/",
    "series": [
        {
            "id": 501195,
            "url": "http://patchwork.ozlabs.org/api/series/501195/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=501195",
            "date": "2026-04-23T13:12:06",
            "name": "Exposing case folding behavior",
            "version": 10,
            "mbox": "http://patchwork.ozlabs.org/series/501195/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227321/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227321/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-11056-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=lPM16o/s;\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-11056-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=\"lPM16o/s\"",
            "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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g1c9X0Z9Bz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 23:18:40 +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 E2B6030343C2\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 13:13:39 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id D95593EFD2A;\n\tThu, 23 Apr 2026 13:12:54 +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 B42DC3EFD07;\n\tThu, 23 Apr 2026 13:12:54 +0000 (UTC)",
            "by smtp.kernel.org (Postfix) with ESMTPSA id 21458C2BCAF;\n\tThu, 23 Apr 2026 13:12:52 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776949974; cv=none;\n b=GQVmAY4OYpDLDNhuHhqdgJ7NIROqXBG+SP0fQg7xaHSkoAQBe4CsYq2Op1pm4tocmWa8XJb6+xOFDdo93mDlRgfBxkA8WgqzqcytwLPxt7mmoIVi7WOadOhYrrY8dRXo+Qgnxwv3bIabdWlRpjRev9E9ZxHVCIvfuu//cWUmq5U=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776949974; c=relaxed/simple;\n\tbh=xTnUJBzhUaJt7Dk+a5+/UM+0og4vgCLh8INVoPYiQlA=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=Mf+3ysgxcBo/HPuN41AcygZMFdOhEW5hw4y/2t4yKUqX5VdwVm423awPz/t8CeV9VdRlwXcrxg7RTDLDmcFsCsONndlJWQk61+3GRfTRVhYZUUHnkrQ2wicensEPjFs7sD1K3p4TcBvs4bGL1FeOxXg/xJTj5V7VQJm9INFR8SQ=",
        "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=lPM16o/s; 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=1776949974;\n\tbh=xTnUJBzhUaJt7Dk+a5+/UM+0og4vgCLh8INVoPYiQlA=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=lPM16o/sNzHkzOjlOaPRa0y9RJbPLZbCTOyIH29KrrDYZ/n9y4s+YNT6KxLXg3kcz\n\t CD2SQyfWtBZdoEEjdvDT4mwGdNiXqojNcy5Z36UzgK2qNLa+OuXfTXR6YYCnvavPXr\n\t VrFfPWHlgpjjOqyuzRpE5Hm5sDFir+Nt41guOPmCqBTZQPM9q8iuNso1PeJPgDQsrY\n\t NMh3c6l9ffyAp8bspC+KOMRwYDuNs+IOcH4pRcJRqVX5a6EfUzuOfoNipDLMSrjwi6\n\t LCvAbmbr4O9KuwA2ItCJ0fuek1ZkRiHuBez4NHzT5p+2F7bh5KdPXlayM84UOI/Ztg\n\t r8uyN72BeVBPA==",
        "From": "Chuck Lever <cel@kernel.org>",
        "Date": "Thu, 23 Apr 2026 09:12:16 -0400",
        "Subject": "[PATCH v10 13/17] vboxsf: Implement fileattr_get for case\n sensitivity",
        "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": "<20260423-case-sensitivity-v10-13-c385d674a6cf@oracle.com>",
        "References": "<20260423-case-sensitivity-v10-0-c385d674a6cf@oracle.com>",
        "In-Reply-To": "<20260423-case-sensitivity-v10-0-c385d674a6cf@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>",
        "X-Mailer": "b4 0.16-dev",
        "X-Developer-Signature": "v=1; a=openpgp-sha256; l=4806;\n i=chuck.lever@oracle.com; h=from:subject:message-id;\n bh=U3Tf1iN9l6gRsu2HPLJbtQm3eFhk1EJ4rfpa5UQrh+k=;\n b=owEBbQKS/ZANAwAKATNqszNvZn+XAcsmYgBp6hq0JHFJUq25NmA3t1UhOZHaHx4uPK2myeQ2p\n rSy1x1GvLGJAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCaeoatAAKCRAzarMzb2Z/\n l60QD/9f3C8ut9/eTp+/vstUXouz8Ayy73cHBgh2xknNmM+PGTvcw6LY0kl0b4tYWdILo1HApMa\n za/G3ejAqZj/Bu8eE+UVGG7W3P2l0mUs9utKAlY5dAiJhvoFDNMZLaDwjyQoqjVM+eGrGz80QTO\n 6z92dV8sidTSZDO/yuiVE+dGa3s/ARSnp0vQnT1rbnDbD7JNJHsco7OE27MB21m03yPWAsfX48D\n sKhJdNkjUfOBXqcjAze7V91l4+SSG9rLvrS8qEyTpUEUj0Lznpu7hbS8c1Vo4ffeKVG4msYKsEs\n 7jmfumMaOg2mO/HcOf5Y5HELWh1aA2jWl56rDE/ln3KI5PgUqntAQYR+M2YsEM7XKCBZ83lBeHV\n ANuVRi998lV3YYrcc8I25V1sPngqIpehjoJ0q1a73gM7fUJ9uj7/hJAa3ugIsUu30K4kV3gHssL\n V6uUCwdVrVPr4BIxagij4HPvtlqglhP9iIRaHPeWui1x36FI+xWfrB8oAVxB9BwE5HyllpTjJSN\n A6bdV6/K9KLj//Cl1AqNRzopPWcM6BL+5Q3No7dX5ptCYSsJ5b68NcrclehuxY++2or2PRcrG+C\n xeVprW6fvA+ZJbGouiM0OjN+VcH8I8qnx4Q4MU3IGw/eMlmrZ4qbPQsWluNL0G1mVGFCsET5fhH\n Ie9aSV+InsDwPZw==",
        "X-Developer-Key": "i=chuck.lever@oracle.com; a=openpgp;\n fpr=28B2E5B01286DF243CF23EFE336AB3336F667F97"
    },
    "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\nseparate case-preserving property; leaving\nFS_XFLAG_CASENONPRESERVING unset reports the POSIX-default\ncase-preserving behavior, which matches vboxsf semantics.\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  |  7 +++++++\n fs/vboxsf/utils.c  | 28 ++++++++++++++++++++++++++++\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 7a7a3fbb2651..943953867e18 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 a618cb093e00..a61fbab51d37 100644\n--- a/fs/vboxsf/super.c\n+++ b/fs/vboxsf/super.c\n@@ -185,6 +185,13 @@ static int vboxsf_fill_super(struct super_block *sb, struct fs_context *fc)\n \tif (err)\n \t\tgoto fail_unmap;\n \n+\t/*\n+\t * A failed query leaves sbi->case_insensitive false, so the\n+\t * mount defaults to reporting case-sensitive behavior. Do not\n+\t * fail the mount over an advisory attribute.\n+\t */\n+\tvboxsf_query_case_sensitive(sbi);\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 440e8c50629d..8655670061dc 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,30 @@ 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+\tif (buf_len < sizeof(volinfo))\n+\t\treturn 0;\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+\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": [
        "v10",
        "13/17"
    ]
}