DiskXtender and find
Jan. 15th, 2008 09:34 pmToday, I continued my occasional series of DiskXtender hacks with a mod which adds a purged file type to GNU
It wasn't a particularly difficult job, once I'd managed to wrap my protesting brain around the fantastically complicated option parser and worked out that I could set a custom bit in the file type field. This made it possible to add a trap to the file checking procedure, quickly check the purge status of the file and return truth or false as required. It's not a perfect solution — I have a nagging doubt that by messing with the file type bits, I run the risk of breaking something elsewhere — but it does the job and keeps the users from noticing what a generally crappy service they're getting from the rest of the system...
find — something doubtless familiar to DMF users on the Cray.It wasn't a particularly difficult job, once I'd managed to wrap my protesting brain around the fantastically complicated option parser and worked out that I could set a custom bit in the file type field. This made it possible to add a trap to the file checking procedure, quickly check the purge status of the file and return truth or false as required. It's not a perfect solution — I have a nagging doubt that by messing with the file type bits, I run the risk of breaking something elsewhere — but it does the job and keeps the users from noticing what a generally crappy service they're getting from the rest of the system...