Re: Swap partition vs swap file

Douglas McNaught
2005-06-29T11:49:36Z

Marat Buharov <marat.buharov@gmail.com> writes:

> Hmm, but what about tells mkswap(8) tells:
> "...Note that a swap file must not contain any holes (so, using cp
> (1) to create the file is not acceptable)..."?
>
> If swap file will be fragmented it will contain holes.

No, holes are actual missing blocks (which are read as zeros) while
fragmentation just means the blocks of the file are not contiguous on
disk.

-Doug