In computer file systems, a block allocation map (BAM) is a data structure used to track the allocated or freed disk blocks.