v1.10.0 swapon: swapfile has holes - blocksize ?
Paul Fox
pgf at brightstareng.com
Wed Mar 26 11:01:11 PDT 2008
> I quickly downloaded and built BusyBox v1.10.0. But it still gave the same =
> "hole" problem. See below.
>
> Are there any debug flags I can turn on ? I'll start going through the docu
> mentation. I'm relatively new to BusyBox, and I'm wondering if I'm just mis
> sing something out required to create a swapfile.
your file probably doesn't have holes. busybox just thinks it does.
look in util-linux/swaponoff.c and find the "swap file has holes"
error message. add some printfs near there to check the values
being used in the test:
if (st.st_blocks * (off_t)512 < st.st_size)
check that they all look right.
paul
=---------------------
paul fox, pgf at brightstareng.com
More information about the busybox
mailing list