A system and method for detecting buffer leaks in a files system utilizing
consistency points is provided. Upon receipt of a write operation, a
buffer check control structure is written to a raw data buffer. The
buffer check control structure comprises a set of magic numbers and a
consistency point counter identifying the current CP. At write allocation
time, the buffer check control structure is examined to determine that
the buffer is being committed to disk during the correct CP.