I need to create (lots of) files whose sole purpose is to signify a boolean condition by their mere existence. These files have no content, and their access/mod time or ownership doesn't matter. Only their existence matters.
I figured the cheapest and fastest way is to create a hard link to some fixed target in the file system.
There is the minor inconvenience of hardlink max count (= 64000 on ext4, I think), but I can work around that by writing a loop to use a variable target.
Is there a simpler way, perhaps using something other than hard links, to do what I want?
Thanks.