From nobody Mon Apr 10 13:38:12 2023 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Pw95x0MRkz44GXq; Mon, 10 Apr 2023 13:38:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Pw95w1rdVz4Pgd; Mon, 10 Apr 2023 13:38:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681133892; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Bd6U2aQOxx/NRMZ5kL8yXYcmSeZW3/Wuh/Q/Yzhd4IQ=; b=CnEZQYybyozgZkJQj9kow27U/IPPvrtJsl+ySjOMFC10iTZK1mn8Vxmy5w0rW+UTNvWob9 TvxF6Hiy8A+NFlIIsTRvyvcOF401h57GufI0Y5cb1RGS7fisQSnJ5VPa6LHzTtWr2xAtil ny1s1ehUWEtdjC6i8/4NEVfErekOrqusD5ZPsJtoXipFJcYXKrs6E31Nn6rNmdZ+kXsZJb 0UZGH4rqq42z8D382ZzOmBZhoW08YvXpbwnz8cYMfC7aS/KKDOPxDdz4qlj65WoUv/p03c ZFeucYYjP2dw/aLtkcvcpC/QSUP0ULPSFONgYhvluBFyf4Snl6mzgyjMw9t/Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681133892; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Bd6U2aQOxx/NRMZ5kL8yXYcmSeZW3/Wuh/Q/Yzhd4IQ=; b=xjdunUPPYSV4t8avbL8QEaHbsK+TVHs4UCNhTn8axc8l0zVCc/bvX81fAzWCE6UACoYSKc 7u42JjsRb+H6t1v29CqoOqaF4F61aafP+Mpn8mYjCsa5UKQJCOdjk4kVGwRPMPxysVbtc2 YB5RN3CUL/yzi/9Lx2c7VYXazC4+O5AljQpcaEK/iMr+6QOx8eCynoQyFY8KJncQO+p6XM +lpvFY75rAEaUgd+b1Q5U2n1wTf2O/Kn+Ia3Rk9f6OK9oW+ggYO0XF9GX8Vg3KEJZo6Ln5 mOjcUazjepysK9rRWZV6cFU9HuhkaGmHQTDOxGThNRsAWr1z5SG8+HQpx/Fwbw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681133892; a=rsa-sha256; cv=none; b=OdG5ISlgf7mfknWXZ5dzbzuu1FXlfKfeaHkjwcMQbOWf4UVOsZlBaEmJN5m6Dvm4sEkaGy f/4xSzQoQEfonn2VOTCYDd7oFL+F/xq3XIAs9Iy2IHdk+UyliAQGCWfodY6iiFrcsDCKWK PHMhmwrZc2xc+BSKwNq1q3sTGyUOQTLoKW2gAkWNF3Wvt1IgrLZJZrlezH0l0tjcEIx0Dy cQAUIVwBtl1DaiRZ7FZeQd5xTNUUmX33CMFw3+n+/pCTqCZYNPqSw5dsZKd30FbFGK0Wq9 UyFgrY2nI63OE9EMGOf1LP0y/YjaQzEcAJqup8bDkMSJ2WHhxBhqFbRN9xUI/Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Pw95w0kHXzsGV; Mon, 10 Apr 2023 13:38:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33ADcCC0062858; Mon, 10 Apr 2023 13:38:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33ADcC4v062857; Mon, 10 Apr 2023 13:38:12 GMT (envelope-from git) Date: Mon, 10 Apr 2023 13:38:12 GMT Message-Id: <202304101338.33ADcC4v062857@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 3a52cc4445ba - stable/13 - makefs: emit NM records for all directory entries List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 3a52cc4445ba3e5cbee7b802822be6a1e122ad13 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=3a52cc4445ba3e5cbee7b802822be6a1e122ad13 commit 3a52cc4445ba3e5cbee7b802822be6a1e122ad13 Author: Ed Maste AuthorDate: 2023-03-24 17:53:59 +0000 Commit: Ed Maste CommitDate: 2023-04-10 13:37:40 +0000 makefs: emit NM records for all directory entries We previously attempted to emit Rock Ridge NM records only when the name represented by the Rock Ridge extensions would actually differ. We would omit the record for an all-upper-case directory name, however Linux (and perhaps other operating systems) map names with no NM record to lowercase. This affected only directories, as file names have an implicit ";1" version number appended and thus always differ. To solve, just emit NM records for all entries other than DOT and DOTDOT . We could continue to omit the NM record for directories that would avoid mapping (for example, one named 1234.567) but this does not seem worth the complexity. PR: 203531 Reported by: Thomas Schmitt TEST, - * no NM. test -> TEST, need a NM - * - * The rr_moved_dir needs to be assigned a NM record as well. - */ if (node == diskStructure->rr_moved_dir) { cd9660_rrip_add_NM(node, RRIP_DEFAULT_MOVE_DIR_NAME); - } - else if ((node->node != NULL) && - ((strlen(node->node->name) != - (uint8_t)node->isoDirRecord->name_len[0]) || - (memcmp(node->node->name,node->isoDirRecord->name, - (uint8_t)node->isoDirRecord->name_len[0]) != 0))) { + } else if (node->node != NULL) { cd9660_rrip_NM(node); } - - /* Rock ridge directory relocation code here. */ /* First handle the CL for the placeholder file. */