James Cammarata wrote:
You could just use hardlinks (os.link), an unlink will only remove the file if it's the last one.
--Michael
Can't hardlink a directory, nor can you hardlink across partitions, so that would be an issue for people (ie. sane admins) that have /var on a different partition than /tftpboot. True, you could move tftpboot to var and symlink to the root directory, but I'm trying to be as non-invasive by default as possible. Bind mounts are well recognized and documented, so to me it is the way to go on this one.
I was thinking of just put the content on /var/www and try hardlinking the files, but it's true I have no idea how big the files you are talking about are, or how many there are.
If it's just a few mtab entries or something that's not too bad.
--Michael