From mboxrd@z Thu Jan 1 00:00:00 1970 From: "roucaries bastien" Subject: Re: [RFC/PATCH] revoke/frevoke system calls Date: Thu, 20 Jul 2006 23:01:34 +0000 Message-ID: <195c7a900607201601m58d078pee808089b8e6b47d@mail.gmail.com> References: <6AFvY-7ZK-15@gated-at.bofh.it> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Pekka J Enberg" , alan@lxorguk.ukuu.org.uk, tytso@mit.edu, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Return-path: Received: from nf-out-0910.google.com ([64.233.182.191]:55081 "EHLO nf-out-0910.google.com") by vger.kernel.org with ESMTP id S1030415AbWGTX33 (ORCPT ); Thu, 20 Jul 2006 19:29:29 -0400 Received: by nf-out-0910.google.com with SMTP id o25so688771nfa for ; Thu, 20 Jul 2006 16:29:27 -0700 (PDT) To: 7eggert@gmx.de In-Reply-To: Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On 7/20/06, Bodo Eggert <7eggert@elstempel.de> wrote: > Pekka J Enberg wrote: > > From: Pekka Enberg > > > 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