Hacker News new | ask | show | jobs
by kazinator 1128 days ago
I journal by having my filesystem record what it's about to do (if it's something destructive) into a dedicated area first (the journal), and then carry it out. If the system dies partway through this, the journal can help it make sense of what was going on and put the filesystem into a good state. There is less of a chance of me having to recover a corrupt drive.