cachefiles: Implement cache registration and withdrawal
authorDavid Howells <dhowells@redhat.com>
Fri, 26 Nov 2021 14:29:06 +0000 (14:29 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 7 Jan 2022 13:41:46 +0000 (13:41 +0000)
commitd1065b0a6fd9397edd3094c56b777d0d8ec1290d
treebd47a34375758f05e7305a8778301a42d47264f7
parent32759f7d7af5454c616574190c388e1a59184f92
cachefiles: Implement cache registration and withdrawal

Do the following:

 (1) Fill out cachefiles_daemon_add_cache() so that it sets up the cache
     directories and registers the cache with cachefiles.

 (2) Add a function to do the top-level part of cache withdrawal and
     unregistration.

 (3) Add a function to sync a cache.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
Link: https://lore.kernel.org/r/163819633175.215744.10857127598041268340.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/163906935445.143852.15545194974036410029.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/163967142904.1823006.244055483596047072.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/164021543872.640689.14370017789605073222.stgit@warthog.procyon.org.uk/
fs/cachefiles/Makefile
fs/cachefiles/cache.c
fs/cachefiles/daemon.c
fs/cachefiles/interface.c [new file with mode: 0644]
fs/cachefiles/internal.h