This is a slightly annoying problem; basically, since I've switched to an SSD I've relocated most areas of the system that are frequently written to such as caches etc., either into a RAM disk, or onto a separate drive, in an attempt to focus my SSD on read-spead improvements.
Anyway, one of the problem cases that has come up is Intego Virusbarrier, as it blatantly misuses its folder in /Library/Preferences by storing non-preference related data such as a "Buffer" file that it uses while scanning. Aside from the fact that this is another example of them doing something the wrong way (it should be in /Library/Caches, or not a file at all since it's never more than a few megabytes anyway), it's a file that's written to very heavily during scans, so I'd like to move it.
However, I don't really want to move the entire folder. The problem with this is that if I use a symbolic link to move only the problem file(s), then VirusBarrier simply overwrites the symbolic link and creates a new file in that location; a common enough problem with symbolic linking of single files.
So what I'm wondering is what is the best method to relocate a single file, is a hard-link the only option? I'd of course rather avoid a hard-link if at all possible, but I can't think of any alternative.
Anyway, one of the problem cases that has come up is Intego Virusbarrier, as it blatantly misuses its folder in /Library/Preferences by storing non-preference related data such as a "Buffer" file that it uses while scanning. Aside from the fact that this is another example of them doing something the wrong way (it should be in /Library/Caches, or not a file at all since it's never more than a few megabytes anyway), it's a file that's written to very heavily during scans, so I'd like to move it.
However, I don't really want to move the entire folder. The problem with this is that if I use a symbolic link to move only the problem file(s), then VirusBarrier simply overwrites the symbolic link and creates a new file in that location; a common enough problem with symbolic linking of single files.
So what I'm wondering is what is the best method to relocate a single file, is a hard-link the only option? I'd of course rather avoid a hard-link if at all possible, but I can't think of any alternative.