Re: Swap file on btrfs fails (swapfile has holes)

2011-08-23 Thread Gour-Gadadhara Dasa
On Sun, 9 Jan 2011 19:19:44 +0100 Diego Calleja dieg...@gmail.com wrote: Hello, AFAIK swapfiles are not supported, at least for now. At the moment I use FreeBSD with zfs (two disks in mirror) and plan to return back to (Arch)linux. Considering that with zfs I've everything in one (z)pool -

Re: Swap file on btrfs fails (swapfile has holes)

2011-08-23 Thread David Nicol
it seems to me that the swap file interface doesn't make sense; to eliminate the middleman and provide a direct swap tree type would be the way to go, so a btrfs can hold swapped pages. Doing this would AIUI require: 1) direct interface to btrfs trees, not via file-system interface 2) modifying

Swap file on btrfs fails (swapfile has holes)

2011-01-09 Thread Paul Richards
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: