lkml.org 
[lkml]   [2004]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [BUG ?] smbfs open always succeeds


On Tue, 30 Nov 2004 tvrtko.ursulin@sophos.com wrote:
>
> I investigated a bit and found a nfs_open function at
> linux-2.6.9/fs/nfs/inode.c line 906 which also always returns 0. So is
> this a network filesystem way of handling opens and not a bug after all? I
> am not sure though that both nfs and smbfs operate in the same way and am
> not claiming that.

Many networked filesystems end up doing most of the _real_ permissions
checking at IO time, not opens. That said, "open()" should return
definitive errors as early as possible, but sometimes you really have the
case that the real error only happens when you try to read or write
something.

Not saying that smbfs is right, just explaining that it _might_ be right.

Urban, did you see the thread?

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2009-11-18 23:46    [W:0.496 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site