[Linux-cachefs] cachefiled: cache bind failed

Wilhelm Meier wilhelm.meier at fh-kl.de
Thu Jan 11 08:36:49 UTC 2007


Hi,

I try to use fscache/cachefilesd on 2.6.19-gentoo-r3. I used the kernel 
patches nfs+fscache-19 and cachefilesd-0.8. If I try to start cachefilesd the 
I get:
# cachefilesd -s
About to bind cache
CacheFiles bind failed: errno 17 (File exists)

and in the log:

EXT3 FS on hda1, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
[cachef] <== cachefiles_daemon_debug() = 0
[cachef] <== cachefiles_daemon_write() = 7
[cachef] ==> cachefiles_daemon_write(,,8,)
[cachef] ==> cachefiles_daemon_brun(,10%)
[cachef] <== cachefiles_daemon_write() = 8
[cachef] ==> cachefiles_daemon_write(,,8,)
[cachef] ==> cachefiles_daemon_bcull(,7%)
[cachef] <== cachefiles_daemon_write() = 8
[cachef] ==> cachefiles_daemon_write(,,8,)
[cachef] ==> cachefiles_daemon_bstop(,3%)
[cachef] <== cachefiles_daemon_write() = 8
[cachef] ==> cachefiles_daemon_write(,,8,)
[cachef] ==> cachefiles_daemon_frun(,10%)
[cachef] <== cachefiles_daemon_write() = 8
[cachef] ==> cachefiles_daemon_write(,,8,)
[cachef] ==> cachefiles_daemon_fcull(,7%)
[cachef] <== cachefiles_daemon_write() = 8
[cachef] ==> cachefiles_daemon_write(,,8,)
[cachef] ==> cachefiles_daemon_fstop(,3%)
[cachef] <== cachefiles_daemon_write() = 8
[cachef] ==> cachefiles_daemon_write(,,4,)
[cachef] ==> cachefiles_daemon_bind({10,7,3,10,7,3},)
[cachef] ==> cachefiles_daemon_add_cache()
[cachef] - fsdef c73ece80
[cachef] blksize 1024 (shift 2)
[cachef] size 473084, avail 440416
[cachef] limits {12240,8568,3672} files
[cachef] limits {11820,8274,3546} blocks
[cachef] ==> cachefiles_get_directory(,,cache)
[cachef] subdir -> c73ef090 positive
[cachef] <== cachefiles_get_directory() = [36721]
[cachef] ==> cachefiles_check_object_type(c73ece80{C3})
[cachef] <== cachefiles_check_object_type() = 0
[cachef] ==> cachefiles_get_directory(,,graveyard)
[cachef] subdir -> c73ef7c8 positive
[cachef] <== cachefiles_get_directory() = [46921]
FS-Cache: cache tag 'xcache' already in use
CacheFiles: Failed to register: -17
[cachef] <== cachefiles_daemon_write() = 4294967279
[cachef] ==> cachefiles_daemon_release()
[cachef] ==> cachefiles_daemon_unbind()
[cachef] <== cachefiles_daemon_unbind()
[cachef] <== cachefiles_daemon_release()

This is the mount-output: 

192.168.39.10:/tftproot/gentoo_A on / type nfs (ro)
none on /mnt/unionfs/etc type tmpfs (rw)
none on /etc type aufs 
(rw,xino=/mnt/unionfs/etc/.aufs.xino,br:/mnt/unionfs/etc=rw:/etc=ro)
none on /mnt/unionfs/var type tmpfs (rw)
none on /var type aufs 
(rw,xino=/mnt/unionfs/var/.aufs.xino,br:/mnt/unionfs/var=rw:/var=ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
/dev/hda1 on /local/fscache type ext3 (rw,user_xattr)

And heres cachefilesd.conf


#dir /var/fscache
dir /local/fscache
tag xcache
debug 7
brun 10%
bcull 7%
bstop 3%
frun 10%
fcull 7%
fstop 3%


Any hints?
-- 
Wilhelm Meier
email: wilhelm.meier at fh-kl.de




More information about the Linux-cachefs mailing list