Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2226990/?format=api
{ "id": 2226990, "url": "http://patchwork.ozlabs.org/api/patches/2226990/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260422-case-sensitivity-v9-13-be023cc070e2@oracle.com/", "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": "<20260422-case-sensitivity-v9-13-be023cc070e2@oracle.com>", "list_archive_url": null, "date": "2026-04-22T23:30:07", "name": "[v9,13/17] vboxsf: Implement fileattr_get for case sensitivity", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": false, "hash": "a130fc7ef4501d1af3ac82a741cbba48b51652ec", "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/20260422-case-sensitivity-v9-13-be023cc070e2@oracle.com/mbox/", "series": [ { "id": 501129, "url": "http://patchwork.ozlabs.org/api/series/501129/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=501129", "date": "2026-04-22T23:29:54", "name": "Exposing case folding behavior", "version": 9, "mbox": "http://patchwork.ozlabs.org/series/501129/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2226990/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2226990/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <SRS0=ZKb2=CV=vger.kernel.org=linux-ext4+bounces-16031-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=STidkhiA;\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=zkb2=cv=vger.kernel.org=linux-ext4+bounces-16031-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=STidkhiA;\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-16031-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=\"STidkhiA\"", "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 4g1FrR5s0Tz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 09:32:39 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g1FrR5Q8hz4wHx\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 09:32:39 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4g1FrR5L90z4wCZ; Thu, 23 Apr 2026 09:32:39 +1000 (AEST)", "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 4g1FrN3VVYz4wHx\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 23 Apr 2026 09:32:36 +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 757AB301FDC7\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 22 Apr 2026 23:30:51 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id A58593A4538;\n\tWed, 22 Apr 2026 23:30:48 +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 600F333B6E3;\n\tWed, 22 Apr 2026 23:30:48 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 20747C2BCAF;\n\tWed, 22 Apr 2026 23:30:46 +0000 (UTC)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1776900759; cv=pass;\n\tb=JrX/zdBUQ9UaCACbpcV2kG5lcMw2A96CxgPuPxdVULXWkVWlG+WvQTVgFJRp1O4uZRVBhrwBRRq43avlPdTzPIhj6K9dVrE+hsNcWDNbjGQU0gYeUiU8YbWDG0EN8FwNEIbNHRQZmdE/uHjpnFSSTdNrtkKyFuvIL5C9NrK+sdSfnTT+14WJfN8huB9stDGHSjaz22KDIqMMiOF2AhLAJmi0JzC5F6UDnfp50VsXwqXk7FfR1f7vZITYC5+dshstWe+eynSmuci27P/+U0jXOkOdiiLuzj9HfTaavHRriC5fHJQuqRjdkkKGovre7PMYbJMPfgCcg8J2O0BZNjKkbQ==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776900648; cv=none;\n b=c1X4qQ4O4rVlmawUbtj6fbWJdLOjM1URIHLCRXR5LbyOsoLP6CVLMiCmcBEcq+EWbtkLq8ho+su0DboX8xQ5StsSh0JSK99z9JZNFApVxZxgwI78GFuneszq5hgQHjoq4Aspma2N+2h++uPwjnOAoyBlYOyRjWV52y6JlZPWZqc=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1776900759; c=relaxed/relaxed;\n\tbh=AFra62OZT2DqYSoROvCPLXRVNbsOLJuXBbsilRJEmBo=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=HZ7Q21ZadFCPCWpHi1GAG6jOweS8u2qKepmy4xdRUrp4ehnU/UTXd/hPG0BbahiS9z/KrSm5DFsgaP/bCgRR/j/RRd7o90IAw1GjmEClqYFcRBLPOTOgg1NT4MFckth0XL9tE1w1BVvC08ogoawMq/smjnK/jYUpjZfH+fqF1SHLJBKe+QMt3adNl5X6n1vcupB8VPQ0bS6gRLih7blBike6dsJvnERirt2u/joFe9Vr3fmimjmZS+metr8YGFRupSlNk3IvEekzrlhu5BR41Zfx3YxPTeW/51zjvKh9FMaPgRTcy6Qn8SgnjsfTVU8H3Y1KsRDMMVANEArrbi513Q==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776900648; c=relaxed/simple;\n\tbh=jjv42QbxTnNRC8fn85isOGhp+dmzdXqDdMc239rdxgc=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=JrfnGzyI3ah+f6cjolSTgTBgKKSnexIbSzKPVJ3OlIa80VP9MX3ndsKGy1AHeIwC6wKfzwarr6sMyT2N8r4m3I7fPIIOPezNpgWq2U+x0iLcn9x1J65ifKR6t2L0/idX+LU93nLby6ltJ4bP7VygmkJWESQjw7qEg3qeU2aaTfM=" ], "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=STidkhiA; dkim-atps=neutral;\n spf=pass (client-ip=104.64.211.4; helo=sin.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16031-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=STidkhiA; 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=1776900648;\n\tbh=jjv42QbxTnNRC8fn85isOGhp+dmzdXqDdMc239rdxgc=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=STidkhiA9lQXxT5c5P64kyxrp7mM5GktRnjp7EHM/Lj/Aa7J0IojBeQk3A9HKOc6Y\n\t qGgMeJrMg/MASGztWuuzTobWe3Tzx4tY/TXktFiuVRuHbGh0tjblPTcK+R0QQN3gts\n\t wLo1vgoKE7NBzcqbztXiddSR5KhldMXcB8KbixqQFiCLMcXNNevNy14va0sX65umU0\n\t x5C93cCmolSy/L5iRuJIXeIrU1VpFG/PEKXTtooDZrZyVijEEpbdQYUPtJkAaRd4d0\n\t cBuHztLrOCpyWqgXnK54e2N3OO5G6qYmhL3+Sak7LSQKMx0idxJleuasYD7fSMnew7\n\t kYdxNR/OsWd7g==", "From": "Chuck Lever <cel@kernel.org>", "Date": "Wed, 22 Apr 2026 19:30:07 -0400", "Subject": "[PATCH v9 13/17] vboxsf: Implement fileattr_get for case\n sensitivity", "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-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20260422-case-sensitivity-v9-13-be023cc070e2@oracle.com>", "References": "<20260422-case-sensitivity-v9-0-be023cc070e2@oracle.com>", "In-Reply-To": "<20260422-case-sensitivity-v9-0-be023cc070e2@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=4756;\n i=chuck.lever@oracle.com; h=from:subject:message-id;\n bh=uVU5WRfpYdn2bSA7vDAjqhdwLXQziO1Qec+1HfL59eY=;\n b=owEBbQKS/ZANAwAKATNqszNvZn+XAcsmYgBp6VoGiV8fZwXXifsOX0sdu6oVrHn50vsz8nnuk\n ZrmUUqfzo2JAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCaelaBgAKCRAzarMzb2Z/\n l+mGD/9XYLTzl0twQkvVd7HpXUIrErQFIddtDgO0ySXrcxusT/Me86jsrFQ3NBJvBOxSJI7uPEb\n HHtXzfGf+7a0MQeMnIOKH7aSu+qXBY5KbaVFYfK5bp1yCE5TH5vrEQ+Zm35Q5tiVBjlAxqA0vtH\n Irrhfn5BKOJ+utOU/xIwE+caTU+xfevILCp5EM2CfkZjAvCZlH1iKWZ9W2rHCRzj6b84Pzdjab8\n Dfs3fomMvK/JxWS+XG86Bokj0M1R5cnqBTEEutC6eQ3FAW4pmchEcn2S5iYLdolitRNvxpW5dN9\n Ocp+TFvDoi/Fskp/sla3F154ZHgkfU0xlxE7tsuXT4cr23+cJd6A2hX0ImxgRQMsPkW1zL4Dn7Y\n c6X8ADDhhH9xgkbGpPCAMjhuU1idB0T9IWo6ZL17IGZdX1eGNSQgkp17SO2YL8QKFhxj6fllfK4\n ksCWymnOrm7MpWtgBEyVtpfzqu5e+IL+ii9D8hD8qV5HLqmH5l/d801WKpxFZ9t5hOiKuEqi3EH\n EKi/rAR7tRhgiPxygKpS2VK8IFHja5Lb5wypnXCwoeGh1U2MeKz4r2Ap+F1mdCnifjYKJu1m6Jg\n 43DvzJhjmBH6zh7NoTEy8IebX0bct6+75H/8gJ5dmw1ioCid+IsW+eB5V4kaLE62jlu622vh0dN\n qis6+d/XcS5y/Hw==", "X-Developer-Key": "i=chuck.lever@oracle.com; a=openpgp;\n fpr=28B2E5B01286DF243CF23EFE336AB3336F667F97", "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\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 | 26 ++++++++++++++++++++++++++\n fs/vboxsf/vfsmod.h | 6 ++++++\n 5 files changed, 44 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..647a0ecb334a 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,28 @@ 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+\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": [ "v9", "13/17" ] }