Re: [RFC/PATCH] revoke/frevoke system calls

From: roucaries bastien
Date: Thu Jul 20 2006 - 19:27:37 EST


On 7/20/06, Bodo Eggert <7eggert@xxxxxxxxxxxx> wrote:
Pekka J Enberg <penberg@xxxxxxxxxxxxxx> wrote:
> From: Pekka Enberg <penberg@xxxxxxxxxxxxxx>

> This patch implements the revoke(2) and frevoke(2) system calls for all
> types of files. We revoke files in two passes: first we scan all open
> files that refer to the inode and substitute the struct file pointer in fd
> table with NULL causing all subsequent operations on that fd to fail.
> After we have done that to all file descriptors, we close the files and
> take down mmaps.

RFC2: Make umount -f work on local fs using this feature.
RFC3: use preliminary work about umount -f in order to get revoke for free.
See for instance
http://developer.osdl.org/dev/fumount/kernel2/patches/2.6.12/1/forced-unmount-2.6.12-1.patch
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/