Re: patch for fs/dcache race

H. Peter Anvin (hpa@transmeta.com)
15 Aug 1997 09:19:20 GMT


Followup to: <19970815080010Z971832-20975+5394@vger.rutgers.edu>
By author: ig25@rz.uni-karlsruhe.de
In newsgroup: linux.dev.kernel
>
> Linus wrote:
>
> >HOWEVER, in the end I decided that this doesn't make any difference. The
> >"(deleted)" at the end is more human-readable, and as the name is really
> >only for readability anyway.
>
> What about putting a null byte between the real name and the "(deleted)"?
> This does not mess up terminals, is unique (since there must'n be a '\0'
> in a file name), and very easy to parse from C.
>

... and will make the "(deleted)" invisible on 99.9% of all versions
of ls(1). In fact, just about every program out there is going to
tack on a \0 at the end of readlink() anyway and then treat it as a
normal C string, completely missing out the (deleted).

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
Always looking for a few good BOsFH.  **  Linux - the OS of global cooperation
        I am Baha'i -- ask me about it or see http://www.bahai.org/