David Howells 9dc8d9bfe4 CacheFiles: Implement invalidation
Implement invalidation for CacheFiles.  This is in two parts:

 (1) Provide an invalidation method (which just truncates the backing file).

 (2) Abort attempts to copy anything read from the backing file whilst
     invalidation is in progress.

Question: CacheFiles uses truncation in a couple of places.  It has been using
notify_change() rather than sys_truncate() or something similar.  This means
it bypasses a bunch of checks and suchlike that it possibly should be making
(security, file locking, lease breaking, vfsmount write).  Should it be using
vfs_truncate() as added by a preceding patch or should it use notify_write()
and assume that anyone poking around in the cache files on disk gets
everything they deserve?

Signed-off-by: David Howells <dhowells@redhat.com>
2012-12-20 22:06:08 +00:00
..
2012-11-16 11:20:42 -06:00
2012-10-09 23:33:38 -04:00
2012-10-17 09:18:38 -05:00
2012-12-18 09:36:34 -08:00
2012-10-09 18:35:22 -04:00
2012-10-06 03:05:31 +09:00
2012-07-14 16:34:47 +04:00
2012-10-09 23:33:39 -04:00
2012-12-17 17:15:26 -08:00
2012-10-09 23:33:39 -04:00
2012-10-22 08:50:37 +03:00
2012-10-29 09:00:57 -07:00
2012-10-09 15:52:31 +09:00
2012-11-28 21:49:02 -05:00
2012-12-10 16:30:43 -05:00
2012-10-09 18:35:22 -04:00
2012-11-29 22:17:21 -05:00
2012-09-26 21:08:52 -04:00
2012-12-17 17:15:27 -08:00
2012-10-09 23:33:39 -04:00