[Linux-cachefs] cachefs in a tmpfs or other ramfs?

Дмитрий Ильин idv1985 at gmail.com
Sat Oct 22 21:41:24 UTC 2011


07.10.2011, в 11:25, Ricardo F написал(а):

> 
> Hello,
>   I try to mount a cachefs in a linux Debian6 server, but when I try to start it, i show:
> # /etc/init.d/cachefilesd startStarting FilesCache daemon : cachefilesd failed!
> dmesg said:CacheFiles: Failed to register: -95
> /var/log/syslog said:CacheFiles: Failed to register: -95
> /etc/fstab said:none                                 /mnt/tmpfs                     tmpfs   size=500M,nr_inodes=10k
> /etc/cachefilesd.conf said:dir /mnt/tmpfstag mycachebrun 10%bcull 7%bstop 3%frun 10%fcull 7%fstop 3%
> As can you see, i mount a tmpfs in /mnt, but i think that is the option "user_xattr" which that file system doesn't have, almost in http://en.gentoo-wiki.com/wiki/CacheFS said it.
> Anybody know an option to mount a ramfs and inside it the cachefs?
> 
> Thanks! 		 	   		   		 	   		  
> --
> Linux-cachefs mailing list
> Linux-cachefs at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cachefs

You cannot use tmpfs because it doesn't support xattr needed for fscahe.
(How about make option not to use xattr, David Howells?)

But you can make file in tmpfs, make it loop device, format it as ext3 and mount with xattr.
It will work, but you should not be using fscache anyway, its's unstable for production environment and causes kerne panics.




More information about the Linux-cachefs mailing list