Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2224858/?format=api
{ "id": 2224858, "url": "http://patchwork.ozlabs.org/api/patches/2224858/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260418223850.20351-1-ablagodarenko@ddn.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": "<20260418223850.20351-1-ablagodarenko@ddn.com>", "list_archive_url": null, "date": "2026-04-18T22:38:49", "name": "[1/2] ext4/064 encryption + casefold feature combination WITHOUT dirdata", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": false, "hash": "84e30091679eda9f9594b46850a144e43743c075", "submitter": { "id": 70973, "url": "http://patchwork.ozlabs.org/api/people/70973/?format=api", "name": "Artem Blagodarenko", "email": "artem.blagodarenko@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260418223850.20351-1-ablagodarenko@ddn.com/mbox/", "series": [ { "id": 500476, "url": "http://patchwork.ozlabs.org/api/series/500476/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=500476", "date": "2026-04-18T22:38:49", "name": "[1/2] ext4/064 encryption + casefold feature combination WITHOUT dirdata", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/500476/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2224858/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2224858/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <SRS0=rytd=CR=vger.kernel.org=linux-ext4+bounces-15898-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=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=fXtV+82l;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=150.107.74.76; helo=mail.ozlabs.org;\n envelope-from=srs0=rytd=cr=vger.kernel.org=linux-ext4+bounces-15898-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c0a:e001:db::12fc:5321\"\n arc.chain=subspace.kernel.org", "gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=fXtV+82l;\n\tdkim-atps=neutral", "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15898-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"fXtV+82l\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.128.45", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com" ], "Received": [ "from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fymt45Mh3z1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 19 Apr 2026 08:40:28 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fymt41l9Dz4wCp\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 19 Apr 2026 08:40:28 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4fymt41Wz1z4wH2; Sun, 19 Apr 2026 08:40:28 +1000 (AEST)", "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::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 gandalf.ozlabs.org (Postfix) with ESMTPS id 4fymt03lrRz4wCp\n\tfor <patchwork-incoming@ozlabs.org>; Sun, 19 Apr 2026 08:40:24 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id A205A3008762\n\tfor <patchwork-incoming@ozlabs.org>; Sat, 18 Apr 2026 22:39:00 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id C62C034FF41;\n\tSat, 18 Apr 2026 22:38:59 +0000 (UTC)", "from mail-wm1-f45.google.com (mail-wm1-f45.google.com\n [209.85.128.45])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 078A4338593\n\tfor <linux-ext4@vger.kernel.org>; Sat, 18 Apr 2026 22:38:57 +0000 (UTC)", "by mail-wm1-f45.google.com with SMTP id\n 5b1f17b1804b1-483487335c2so16831785e9.2\n for <linux-ext4@vger.kernel.org>;\n Sat, 18 Apr 2026 15:38:57 -0700 (PDT)", "from Cluster1.local ([2a00:23c7:90c1:9201:ef47:d559:d907:fd0b])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-488fc177dafsm201330545e9.4.2026.04.18.15.38.55\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 18 Apr 2026 15:38:55 -0700 (PDT)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1776552028; cv=pass;\n\tb=M22B/SufI/cVj31ax23UWZu9MxDLCin1iCtVCbjPmh79NO+NBbT1Nqubw1xT9kx5fHivkd78XJ8/YVM/uU2N7AuMQPFF6J0+SD6/5efOZQdf7L8PNWDjTHWrfkqZfgRKmYbO/eeeSWHZDMRNU1+qdCDaG4J7ZOH1Cf4I9VK2RqWV5yXCBWYYdfpwjj4LjMcYm2RnAGgJAfCyJKnUixYy48o93F/1bR4d/FR2SQRSgXeZj6zAoKw0s0Xz90kWh8iPxBfuGAAwF/PGbSrFjSUb5DNK5Fhwd8PBtteFoDcWd5rgK3C1sACmV0f+urZsn8GfJtKj/LzDOrLf0wP5PSC/QQ==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776551939; cv=none;\n b=Qy0/kO6WKU83vCBHq16LhAVc/RvCpvu00mq6vA2E1+7TXYrvIdbq3dIWKKx89ofvizEUPzglZlSYI+IGz2llwvWv7DF9+MfWBYl7y7wU504hwFcFdZPBVn6bDJFDum7AEVTioPY+APcMWlbiXgFInHyVZoxwoczyBDkak/6cYKs=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1776552028; c=relaxed/relaxed;\n\tbh=JOLVEsbAJOmJN5pZrazzA23v63Rjq08BMGljx81/Nek=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=MQBweUWec0yuMXKWD2OJuE/Q+ween42Nv8HRM+Eg/OGokWDkwtM86XltJezJTuEQ/Ebyyn3JN8PclOZrYbbt+T9fWytaEEhmbX2kZ3epMfWEi5PT6MArbtqF0ZTpcNMA+x76ikVntGR7KR8KUE7bPwo9oUqNtuZJJQOE2cjrS+WI7qzWoejFtXODQx89QfjBEpU5L3Ngvp0OC0UBlgL6MC1KxIDAgZ6qLt4UN7mPqdHRHbqyZMLlxw4DEwTNYpMGxU1hRMbSqWRuRnINaLN6g6gRF855ZyC1wkZKbToZqiQTKuVivAoIg2rUniVuhwW1i6HkLSqo3xKnaECJoKf7jw==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776551939; c=relaxed/simple;\n\tbh=e2ZXz9El51g1RD6EKfetxbYKJLS2iylvtEyIUN89uSU=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=n6ODkVOdCXsa7NWI0FKTdi/VKK/SrL/z49eZ8TI2vZips8evD5L1y95ANF/rGByu7gh6PoWO3yTNE+Ze6Q+NGLfjOlmCnI+8Qbsm+tklpB/4OTeEfy0k+R4gnLBXaFjOnVUp1aRYZCQZliYoJnbwwRLwjX9I4gqSlRQdo18ZMKc=" ], "ARC-Authentication-Results": [ "i=2; gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=fXtV+82l; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15898-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org", "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=fXtV+82l; arc=none smtp.client-ip=209.85.128.45" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1776551936; x=1777156736;\n darn=vger.kernel.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=JOLVEsbAJOmJN5pZrazzA23v63Rjq08BMGljx81/Nek=;\n b=fXtV+82lZQ3rZy7NdgW+8lNZgXG3i2BCFqIxjJPLZlKE50JRSTRsj1Is/d81eMRy7i\n IhAJ0RFA3PbDH17lQGRDlppje9lyQynqdFl83CcBOlqC8QhD45P0qhSWwVmExuZCrG1r\n ToZwjmMzBGfn3KWprmVpQTfz2NCsK/3FXPkFiwSiqd6rCCwFczrTaV2+Y6/1/mPArmyW\n 8oaVHYh3aG6rXK5ynqn6+nVg80dKKFdOnXBQbMUfWiiTdRmYQ/QXBGpiyfooKCwnMj0B\n YKKo3gLJb88lut1hh3gRRmpJ5iL5nsMOplwGbuoZSWIOiN4bM1cC16S0eBcd3eFACgAd\n AO0A==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776551936; x=1777156736;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=JOLVEsbAJOmJN5pZrazzA23v63Rjq08BMGljx81/Nek=;\n b=p0FqmrJzgJ/OTrSHT39XtGwUH0KZ7bosJIuVHQTY+uhQoh6+Zh7h4zdQdQ47V00Pbu\n bNLQwWE/fE2AJOgDIWpZpvrXpI5syiu3HDD6iWiDV3r2cM6hiw6t2kXarDdwe8ScYBtt\n o57kNv8YeDCc26dyr3wsazCsxagFUNlANclhgdb6TMERG7Ye/UbDAPuVY8bN/kupGbG4\n OThNp1K9kzaU/XbmaFhr+pJSjpZfr6EXDt/sNFSgXjdPTde86nTq3UmwD3/PX6mnxzs7\n qF1E6D5uG+TIAll0jl0zUEoCChZCIrD6/flFyP8qxRYl10LVHJ/LaGtxJjP42gBZgs6B\n YSKg==", "X-Gm-Message-State": "AOJu0Yza0qHKxuQS6Q3Duap/tPz+Y62D4xHdZ+SWzrhkMIq6ahVyslP7\n\thM0NjW5/s6Ls8DU3/dGrl3DxrKIVzf22rOIUc3swytAP40Gn4zQdmhe+BLXZoh8t", "X-Gm-Gg": "AeBDietF8V/+3iPG13B0eaeOUVyrxwnCB7BIP7LQth3t6ZcShhzbZA44SmEOiStZk26\n\tiic08ECu3yiO2y9W7bANEVGhgMDepfZAZ956AtYjciiNBTs3FCyjsFzwOzO4KZbG7RMDN8+yo7j\n\t4lcT5cR+WA1RTQjW+0TBOGdTBuo8NHB2lZ0Qt6TVUhpDbr34v8gGRII1TCRvecJvfF8BZ7xKanY\n\txfsaCvizbM0yfQgA5i2qindUP+5XD+YHFM+hyENOtnq4O0Z1vjpzImNe59VIOEKBSQAFVCigi/i\n\tCLcIk++4Tup8wJv1v8df+yZyGKyFqVNULWY5bYPjoqGgLgJ0Cn68VnXP/96XHdcNzoAXQc7Gu/e\n\t8x+nE/J7SeBAUWjVc7689zU24xbou5JBaYcTznOGOxht/eF91Dc+nF0EH2DYqZ8PEn+H88t5dvD\n\tV5GWTSt3yTnTtbHLFsFt2fg2bNrAbfnW6zo0KSLg/nWA==", "X-Received": "by 2002:a05:600c:46c8:b0:488:ae4e:51a5 with SMTP id\n 5b1f17b1804b1-488fb778d5dmr114709675e9.15.1776551935889;\n Sat, 18 Apr 2026 15:38:55 -0700 (PDT)", "From": "Artem Blagodarenko <artem.blagodarenko@gmail.com>", "X-Google-Original-From": "Artem Blagodarenko <ablagodarenko@ddn.com>", "To": "linux-ext4@vger.kernel.org", "Cc": "adilger.kernel@dilger.ca,\n\tArtem Blagodarenko <artem.blagodarenko@gmail.com>", "Subject": "[PATCH 1/2] ext4/064 encryption + casefold feature combination\n WITHOUT dirdata", "Date": "Sat, 18 Apr 2026 18:38:49 -0400", "Message-ID": "<20260418223850.20351-1-ablagodarenko@ddn.com>", "X-Mailer": "git-send-email 2.43.5", "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\tDKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tFREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,\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: Artem Blagodarenko <artem.blagodarenko@gmail.com>\n\nThis test verifies that files created in directories with both\nencryption and case-insensitive (casefold) attributes work correctly.\nSee ext4/065 for the same test WITH dirdata feature enabled.\n\nSigned-off-by: Artem Blagodarenko <artem.blagodarenko@gmail.com>\n---\n tests/ext4/064 | 154 +++++++++++++++++++++++++++++++++++++++++++++\n tests/ext4/064.out | 17 +++++\n 2 files changed, 171 insertions(+)\n create mode 100755 tests/ext4/064\n create mode 100644 tests/ext4/064.out", "diff": "diff --git a/tests/ext4/064 b/tests/ext4/064\nnew file mode 100755\nindex 00000000..6ad865a9\n--- /dev/null\n+++ b/tests/ext4/064\n@@ -0,0 +1,154 @@\n+#! /bin/bash\n+# SPDX-License-Identifier: GPL-2.0\n+#\n+# Copyright (c) 2026 The Lustre Collective. All Rights Reserved.\n+# Author: Artem Blagodarenko <ablagodarenko@thelustrecollective.com>\n+#\n+# FS QA Test ext4/064\n+#\n+# Test ext4 encryption + casefold feature combination WITHOUT dirdata.\n+# This test verifies that files created in directories with both\n+# encryption and case-insensitive (casefold) attributes work correctly.\n+# See ext4/065 for the same test WITH dirdata feature enabled.\n+#\n+. ./common/preamble\n+_begin_fstest auto quick encrypt casefold\n+\n+# get standard environment and checks\n+. ./common/filter\n+. ./common/encrypt\n+. ./common/casefold\n+. ./common/attr\n+\n+_exclude_fs ext2\n+_exclude_fs ext3\n+\n+_require_scratch_nocheck\n+_require_encrypted_casefold\n+_require_command \"$CHATTR_PROG\" chattr\n+_require_command \"$LSATTR_PROG\" lsattr\n+_require_xfs_io_command \"set_encpolicy\"\n+_require_xfs_io_command \"add_enckey\"\n+\n+# Helper to add a v2 encryption key and set policy on a directory\n+_setup_encrypted_casefold_dir()\n+{\n+\tlocal dir=$1\n+\tlocal raw_key=$(_generate_raw_encryption_key)\n+\tlocal keyspec=$(_add_enckey $SCRATCH_MNT \"$raw_key\" | awk '{print $NF}')\n+\t_set_encpolicy $dir $keyspec\n+\t_casefold_set_attr $dir\n+\techo $keyspec\n+}\n+\n+# Create a filesystem with both encrypt and casefold features\n+_scratch_mkfs -O encrypt,casefold &>>$seqres.full\n+_scratch_mount\n+\n+# Test 1: Create an encrypted + casefolded directory and verify lookups work\n+echo \"Test 1: Basic encrypted casefold lookup\"\n+mkdir $SCRATCH_MNT/test1\n+_setup_encrypted_casefold_dir $SCRATCH_MNT/test1 > /dev/null\n+\n+# Create file with lowercase, lookup with uppercase\n+echo \"hello\" > $SCRATCH_MNT/test1/testfile.txt\n+if [ -f \"$SCRATCH_MNT/test1/TESTFILE.TXT\" ]; then\n+\techo \"Case-insensitive lookup works in encrypted dir\"\n+else\n+\techo \"FAIL: Case-insensitive lookup failed in encrypted dir\"\n+fi\n+\n+# Verify the exact name on disk is preserved\n+if _casefold_check_exact_name \"$SCRATCH_MNT/test1\" \"testfile.txt\"; then\n+\techo \"Original filename preserved\"\n+else\n+\techo \"FAIL: Original filename not preserved\"\n+fi\n+\n+# Test 2: Create files with different case variations\n+echo \"Test 2: Conflicting names in encrypted casefold dir\"\n+mkdir $SCRATCH_MNT/test2\n+_setup_encrypted_casefold_dir $SCRATCH_MNT/test2 > /dev/null\n+\n+echo \"first\" > $SCRATCH_MNT/test2/MyFile.txt\n+# This should fail or overwrite since \"MYFILE.TXT\" is equivalent\n+echo \"second\" > $SCRATCH_MNT/test2/MYFILE.TXT 2>/dev/null\n+content=$(cat $SCRATCH_MNT/test2/myfile.txt)\n+echo \"Content after writes: $content\"\n+\n+# Test 3: Unicode normalization in encrypted casefold dir\n+echo \"Test 3: Unicode in encrypted casefold dir\"\n+mkdir $SCRATCH_MNT/test3\n+_setup_encrypted_casefold_dir $SCRATCH_MNT/test3 > /dev/null\n+\n+# Test with UTF-8 characters\n+fr_file1=$(echo -e \"cafe\\xcc\\x81.txt\")\n+fr_file2=$(echo -e \"caf\\xc3\\xa9.txt\")\n+echo \"french\" > \"$SCRATCH_MNT/test3/$fr_file1\"\n+if [ -f \"$SCRATCH_MNT/test3/$fr_file2\" ]; then\n+\techo \"Unicode normalization works in encrypted dir\"\n+else\n+\techo \"FAIL: Unicode normalization failed in encrypted dir\"\n+fi\n+\n+# Test 4: Directory operations in encrypted casefold dir\n+echo \"Test 4: Directory operations in encrypted casefold dir\"\n+mkdir $SCRATCH_MNT/test4\n+_setup_encrypted_casefold_dir $SCRATCH_MNT/test4 > /dev/null\n+\n+mkdir $SCRATCH_MNT/test4/SubDir\n+if [ -d \"$SCRATCH_MNT/test4/SUBDIR\" ]; then\n+\techo \"Directory case-insensitive lookup works\"\n+else\n+\techo \"FAIL: Directory case-insensitive lookup failed\"\n+fi\n+\n+# Test 5: Verify inheritance of casefold+encryption in subdirectories\n+echo \"Test 5: Inheritance of attributes\"\n+mkdir $SCRATCH_MNT/test5\n+_setup_encrypted_casefold_dir $SCRATCH_MNT/test5 > /dev/null\n+\n+mkdir $SCRATCH_MNT/test5/child\n+echo \"data\" > $SCRATCH_MNT/test5/child/file.txt\n+if [ -f \"$SCRATCH_MNT/test5/CHILD/FILE.TXT\" ]; then\n+\techo \"Attributes inherited correctly\"\n+else\n+\techo \"FAIL: Attributes not inherited\"\n+fi\n+\n+# Test 6: Remove and recreate with different case\n+echo \"Test 6: Remove and recreate with different case\"\n+mkdir $SCRATCH_MNT/test6\n+_setup_encrypted_casefold_dir $SCRATCH_MNT/test6 > /dev/null\n+\n+echo \"original\" > $SCRATCH_MNT/test6/RemoveMe.txt\n+rm $SCRATCH_MNT/test6/REMOVEME.TXT\n+echo \"recreated\" > $SCRATCH_MNT/test6/REMOVEME.TXT\n+if _casefold_check_exact_name \"$SCRATCH_MNT/test6\" \"REMOVEME.TXT\"; then\n+\techo \"Recreated file has new case\"\n+else\n+\techo \"FAIL: Recreated file case incorrect\"\n+fi\n+\n+# Test 7: Hard links in encrypted casefold dir\n+echo \"Test 7: Hard links in encrypted casefold dir\"\n+mkdir $SCRATCH_MNT/test7\n+_setup_encrypted_casefold_dir $SCRATCH_MNT/test7 > /dev/null\n+\n+echo \"linkdata\" > $SCRATCH_MNT/test7/original.txt\n+ln $SCRATCH_MNT/test7/original.txt $SCRATCH_MNT/test7/hardlink.txt\n+if [ -f \"$SCRATCH_MNT/test7/HARDLINK.TXT\" ]; then\n+\techo \"Hard link case-insensitive lookup works\"\n+else\n+\techo \"FAIL: Hard link case-insensitive lookup failed\"\n+fi\n+\n+# Cleanup and verify filesystem\n+_scratch_unmount\n+_check_scratch_fs\n+\n+echo \"Encrypted casefold tests completed\"\n+\n+# success, all done\n+status=0\n+exit\ndiff --git a/tests/ext4/064.out b/tests/ext4/064.out\nnew file mode 100644\nindex 00000000..0197e51e\n--- /dev/null\n+++ b/tests/ext4/064.out\n@@ -0,0 +1,17 @@\n+QA output created by 064\n+Test 1: Basic encrypted casefold lookup\n+Case-insensitive lookup works in encrypted dir\n+Original filename preserved\n+Test 2: Conflicting names in encrypted casefold dir\n+Content after writes: second\n+Test 3: Unicode in encrypted casefold dir\n+Unicode normalization works in encrypted dir\n+Test 4: Directory operations in encrypted casefold dir\n+Directory case-insensitive lookup works\n+Test 5: Inheritance of attributes\n+Attributes inherited correctly\n+Test 6: Remove and recreate with different case\n+Recreated file has new case\n+Test 7: Hard links in encrypted casefold dir\n+Hard link case-insensitive lookup works\n+Encrypted casefold tests completed\n", "prefixes": [ "1/2" ] }