linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Swap file on btrfs fails ("swapfile has holes")
@ 2011-01-09 17:21 Paul Richards
  2011-01-09 18:19 ` Diego Calleja
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Richards @ 2011-01-09 17:21 UTC (permalink / raw)
  To: linux-btrfs

Hi,
I have just recently installed Debian squeeze with a root filesystem
on btrfs [1].  I have noticed however that I cannot set up a swap file
stored on the btrfs volume:

dd if=/dev/zero of=/var/swap bs=16M count=4
mkswap /var/swap
chmod 0 /var/swap
swapon /var/swap

[ 01751.879759] swapon: swapfile has holes
swapon: /var/swap: swapon failed: Invalid argument

For now I've set up a swap file under /boot (ext4), but is swap on
btrfs expected to work?  I'm using the stock Debian linux kernel
2.6.32-5-amd64.


1: This took a little bit of work -
http://lists.debian.org/debian-user/2011/01/msg00217.html


-- 
Paul Richards
@pauldoo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-23 15:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-09 17:21 Swap file on btrfs fails ("swapfile has holes") Paul Richards
2011-01-09 18:19 ` Diego Calleja
2011-08-23 15:29   ` Gour-Gadadhara Dasa
2011-08-23 15:58     ` David Nicol

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).