Squid internals The Storage Manager (src/store*.c) SquidFS API - storedir state Each storedir is responsible for checking whether the storedir can store the object SD->checkobj() the placement and retrieval of the object in its storedir squidfs calls from last slide creation of a clean storedir (squid -z) SD->newfs() checking the integrity of the storedir (squid -S) SD->dblcheck() returning statistics of storedir use SD->statfs() implementing a removal policy (internal or one of the repl objects) SD->repl handling object replacement SD->maintainfs() handling any pending IO callbacks (async disk IO) SD->callback() syncing pending operations to disk SD->sync() flushing to/restoring from disk the storedir state SD->log. ..