]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
cachefiles: Register a miscdev and parse commands over it
authorDavid Howells <dhowells@redhat.com>
Fri, 26 Nov 2021 15:12:07 +0000 (15:12 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 26 Nov 2021 21:23:44 +0000 (21:23 +0000)
commita570acf2a183425adbfedfeea9755c92164dcbaf
treee8d634672fc12701076760b2ecf25a0047b97b56
parentf72b394e41dfce21f7baf9610a7f8526dc41479f
cachefiles: Register a miscdev and parse commands over it

Register a misc device with which to talk to the daemon.  The misc device
holds a cache set up through it around and closing the device kills the
cache.

cachefilesd communicates with the kernel by passing it single-line text
commands.  Parse these and use them to parameterise the cache state.  This
does not implement the command to actually bring a cache online.  That's
left for later.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/cachefiles/Makefile
fs/cachefiles/daemon.c [new file with mode: 0644]
fs/cachefiles/internal.h
fs/cachefiles/main.c