Hey, Ryusuke-san:

Thank you for the quick reply.

Maybe my understanding on swap is not correct. 
I wonder is it possible to have some logical-to-physical mapping like IO so
as to implement the copy-on-write for swap file on NILFS? 
I am sorry if it looks naïve.

Many thanks.

Best regards,
Yongkun Wang

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of
Ryusuke Konishi
Sent: Thursday, April 09, 2009 2:21 AM
To: [email protected]; [email protected]
Subject: Re: [NILFS users] [SPAM] NILFS2 does not support swap file

Hi!
On Wed, 8 Apr 2009 22:28:45 +0900, "Yongkun Wang" wrote:
> Hey guys,
>
> I am using NILFS2, the best log-structured file system I've ever used.
> 
> But currently the NILFS2 cannot support the swap file.
> 
> I formatted the partition with nilfs2, then I create a swap file on it,
then
> mkswap swapfile, then swapon swapfile, it doesn't work.
> 
> It works well for ext2 file system.

Yes, it is not a bug but an unavoidable restriction since
supporting swapfile requires direct overwrites for the file.

Usually it is incompatible with copy-on-write based file system, and
NILFS is just such a FS.

We have to break COW nature partially if we support swapfile on the
filesystem.

OK, maybe we should describe this restriction in our FAQ page or so.

Thanks for pointed out.

Regards,
Ryusuke Konishi
_______________________________________________
users mailing list
[email protected]
https://www.nilfs.org/mailman/listinfo/users

_______________________________________________
users mailing list
[email protected]
https://www.nilfs.org/mailman/listinfo/users

Reply via email to