lkml.org 
[lkml]   [1996]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: unlink system call on directories - Bug + fix

Kenneth Albanowski <kjahds@kjahds.com> wrote:
> On Fri, 15 Nov 1996, Andrew M. Bishop wrote:
>
> > Even worse for NFS, the unlink() call will succeed on directories.
> > The inode will disapear, only to be found in lost+found on the
> > file server next time it is fsck'd.
>
> This can't be right. If this does occur, it is the server's fault, not the
> client.

The same filesystem, exported from SunOS 4.1.1, mounted on SunOS 4.1.4
does not allow directories to be unlinked. So I conclude that the
server is not wrong. The Linux kernel should know that the file is a
directory and not even try to unlink it since it knows it is not
allowed.

--
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop amb@gedanken.demon.co.uk
http://www.gedanken.demon.co.uk/

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.694 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site