Why not just not support hard links?
Posted Sep 2, 2004 12:52 UTC (Thu) by maniax
In reply to: Why not just not support hard links?
Parent article: More notes on reiser4
Using hardlinks for chroot jails is a bad idea. Firstly, you don't have a good way to protect the file, and if you do some modifications on the chroot environment's structure, you'll have to update all it's users (or, if the tool that update software in it uses unlink() and then open(), you'll have to update the users of the env. on every update).
Just use bind mounts, which will save more space, and make it possible to have the evironment mounted somewhere read-write for updates, and somewhere read-only, for use.
to post comments)