At the moment, deletion of the bitmap file is done using file tdelete
which results in trm being executed.
This seems a bit ridiculous, as a standard rm command would appear to be perfectly adequate for small files such as this.
As a test, I've substituted this.
Poking further at trm, I see that it's actually quite needlessly resource expensive:
stat64("test.hmt", {st_mode=S_IFREG|0644, st_size=2072, ...}) = 0
open("test.hmt", O_RDWR|O_LARGEFILE) = 3
close(3) = 0
unlink("test.hmt") = 0
There is no point in opening the file if you're not going to do any operation on it (which only happens with 'large' files). It would seem there is definitely an optimisation to be made with this, regardless of what my test may or may not show up.