http://bugzilla.novell.com/show_bug.cgi?id=616617 http://bugzilla.novell.com/show_bug.cgi?id=616617#c0 Summary: Cannot use swap file on BtrFS Classification: openSUSE Product: openSUSE 11.3 Version: RC 1 Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: silviu_marin-caea@otpbank.ro QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.4) Gecko/20100527 SUSE/3.6.4-2.2 Firefox/3.6.4 I know that I'm not supposed to report bugs for BtrFS, but I'm doing this for next openSUSE version. Just close with INVALID if this bugreport is not appropriate. The bug: Cannot use a swapfile on BtrFS, error is: Invalid argument. On the same computer and hard-disk, I can use a swap file created on a different ext4 partition. Reproducible: Always Steps to Reproduce: silviu:~ # cd /var/tmp silviu:/var/tmp # dd if=/dev/zero of=swapfile bs=1M count=1024 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB) copied, 18.633 s, 57.6 MB/s silviu:/var/tmp # mkswap swapfile mkswap: swapfile: warning: don't erase bootbits sectors on whole disk. Use -f to force. Setting up swapspace version 1, size = 1048572 KiB no label, UUID=c356f0ff-1524-4b99-88f9-94465d555161 silviu:/var/tmp # chmod 0600 swapfile silviu:/var/tmp # swapon -v swapfile swapon on swapfile swapon: /var/tmp/swapfile: found swap signature: version 1, page-size 4, same byte order swapon: /var/tmp/swapfile: pagesize=4096, swapsize=1073741824, devsize=1073741824 swapon: swapfile: swapon failed: Invalid argument Actual Results: Cannot use swap file Expected Results: Should be able to use the swap file -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.