Fuse and swap

View: New views
2 Messages — Rating Filter:   Alert me  

Fuse and swap

by Rastislav Szabo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
why is not possible to use fuse for swap files?
I have tried it but swapon exited with error:

swapon: /home/rasto/fuse/home/rasto/100Mb.swap: invalid argument

mkswap works properly..

Regards,
--
Rastislav Szabo

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
fuse-devel mailing list
fuse-devel@...
https://lists.sourceforge.net/lists/listinfo/fuse-devel

Re: Fuse and swap

by Goswin von Brederlow-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Rastislav Szabo <rastiks@...> writes:

> Hi,
> why is not possible to use fuse for swap files?
> I have tried it but swapon exited with error:
>
> swapon: /home/rasto/fuse/home/rasto/100Mb.swap: invalid argument
>
> mkswap works properly..
>
> Regards,

You would have to write your fuse filesystem to work completly without
allocating memory at runtime. And that includes the write syscalls to
the actual devices. I don't think fuse can be made to not allocate any
ram and then you get deadlocks where it can't allocate ram and can't
swap because it waits for the allocation.

MfG
        Goswin

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
fuse-devel mailing list
fuse-devel@...
https://lists.sourceforge.net/lists/listinfo/fuse-devel