BSD Magazine for September

BSD Magazine’s September issue is out.  This time, I have an article in it about data recovery with Hammer:

We’ve all experienced instant regret. That’s the feeling that comes within a second of executing a command like “rm -rf * .txt” (note the space) or of cutting the wrong cluster of wires at the end of a long conduit. Not that I am quoting from experience, or anything like that, no…

More readable assertions

Assertions, in DragonFly, are places in the code where the programmer lists a condition, and tells the system to panic if the condition doesn’t exist.  It’s a good way to guard against weird situations, when something ends up with a strange value.  Do you actually use them while programming?  Then Adam Hoka’s patch to print file name and line number when the assertion hits will be useful to you.