Fwd: swapon and swapoff testcases on busybox
Bernhard Fischer
rep.dot.nop at gmail.com
Mon Mar 12 06:22:43 PDT 2007
On Mon, Mar 12, 2007 at 01:50:55PM +0100, Bernhard Fischer wrote:
>On Mon, Mar 12, 2007 at 04:37:04PM +0530, Riaz Rahaman wrote:
>>In case this might be related to swapon functionality of busybox
>
>swapon/off works for me. mkswap is foobared, though:
scratch that, mkswap from svn works fine in contrast to the old, stale
version i had lying around.
What version are you using, what compiler, libc, arch?
Make sure to run mkswap before trying to swapon.
$ ./busybox dd if=/dev/zero bs=1 seek=500000 count=1 of=swapfile01
$ ./busybox mkswap swapfile01 Setting up
swapspace version 1, size = 495906 bytes
# ./busybox swapon ./swapfile01
# ./busybox swapoff ./swapfile01
thanks,
Bernhard
>>---------- Forwarded message ----------
>>From: Riaz Rahaman <rahaman.riaz at gmail.com>
>>Date: Mar 12, 2007 4:36 PM
>>Subject: swapon and swapoff testcases on busybox
>>To: ltp-list at lists.sourceforge.net
>>
>>Hi,
>>
>>I am trying to run swapon and swapoff function on busybox....
>>
>>I get this error
>>
>>swapon: swapfile01 has holes
>>swapon: ./swapfile01: Invalid argument
>>
>>when trying to enable swap file, did anyone face similar problem?
>>
>>I ever tried by creating a swapfile on a different machine and got it to
>>this machine and ran the testcase....but got the same error...not sure if
>>there is a problem with the swapon function of the busybox or something
>>passed wrongly in the testcase.
>>
>>
>>--
>>Regards,
>>Riaz Ur Rahaman
>>
>>--
>>Regards,
>>Riaz Ur Rahaman
>
>>_______________________________________________
>>busybox mailing list
>>busybox at busybox.net
>>http://busybox.net/cgi-bin/mailman/listinfo/busybox
>_______________________________________________
>busybox mailing list
>busybox at busybox.net
>http://busybox.net/cgi-bin/mailman/listinfo/busybox
>
More information about the busybox
mailing list