]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
makefs: emit NM records for all directory entries
authorEd Maste <emaste@FreeBSD.org>
Fri, 24 Mar 2023 17:53:59 +0000 (13:53 -0400)
committerEd Maste <emaste@FreeBSD.org>
Sat, 25 Mar 2023 13:25:18 +0000 (09:25 -0400)
commit978013a0945d4c6b7ab3ee798dc13c74e913762a
tree059cf44840310b3a76a01dc6a09c8afff28b05ba
parent1f0c8bfd650422a30aa6fcf01da860b8d43628a8
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 <scdbackup@gmx.net
Reviewed by: kevans
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39258
usr.sbin/makefs/cd9660/iso9660_rrip.c