A method and apparatus for different embodiments of incremental garbage
collection of data in a secondary storage. In one embodiment, a method
comprises locating blocks of data in a log that are referenced and within
a range at a tail of the log. The method also includes copying the blocks
of data that are referenced and within the range to an unallocated
segment of the log.