Negative dentries, 20 years later
Negative dentries, 20 years later
Posted Apr 11, 2022 20:35 UTC (Mon) by cesarb (subscriber, #6266)Parent article: Negative dentries, 20 years later
But there is a limit to the number of _ranges_ of nonexistent files: they are limited by the number of files that actually exist plus one. So a solution could be to, instead of storing the name of the nonexistent file, storing the name of the existent files preceding and following the existent file. There is precedent in the NSEC family of DNS entry types (NSEC and NSEC3), which prove the absence of a record on a DNS zone by signing a record containing both the preceding and following names.
(You could also make the ranges circular to remove the "plus one" and avoid a couple of special cases.)