Re: Swap partition vs swap file

From: Douglas McNaught
Date: Wed Jun 29 2005 - 06:50:38 EST


Marat Buharov <marat.buharov@xxxxxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/