On Wed, 2012-07-11 at 07:40 +0800, Tomasz Chmielewski wrote: > On 07/11/2012 03:15 AM, Myklebust, Trond wrote: > > (...) > > >> 2) it's not possible to use multiple directories with one > >> cachefilesd process, but it's perfectly OK to run multiple > >> instances of cachefilesd on one server > >> > >> > >> Which one is true? > > > > See Documentation/filesystems/caching/cachefiles.txt: ======== > > OVERVIEW ======== ... CacheFiles is currently limited to a single > > cache. > > And what about this answer by David Howells? > > http://www.redhat.com/archives/linux-cachefs/2011-July/msg00003.html > > > Would I have to run two instances of the cachefiles daemon in > > order to use both cache directories? > > You would have to have two config files and two daemons (one > per cache). Each cache needs to be managed separately. David also wrote the Documentation file that I quoted above, which (in the paragraph before the one I quoted) very explicitly states: CacheFiles creates a misc character device - "/dev/cachefiles" - that is used to communication with the daemon. Only one thing may have this open at once, and whilst it is open, a cache is at least partially in existence. The daemon opens this and sends commands down it to control the cache. So either the documentation is out of date (in which case David should update it) or you are misunderstanding his use of the conditional tense. -- Trond Myklebust Linux NFS client maintainer NetApp Trond.Myklebust@xxxxxxxxxx www.netapp.com ��.n��������+%������w��{.n�����{��w���jg��������ݢj����G�������j:+v���w�m������w�������h�����٥