Re: should we propagate SMB error codes further?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 20 Nov 2013 00:13:34 -0800
Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:

> I'm seeing same interesting errors running against a server from a big
> NAS vendor that shall remain unnamed:
> 
> p224160.955651] CIFS VFS: Unexpected lookup error -5
> [224161.298853] CIFS VFS: Unexpected lookup error -5
> [224161.643559] CIFS VFS: Unexpected lookup error -5
> [224161.992309] CIFS VFS: Unexpected lookup error -5
> [224162.333310] CIFS VFS: Unexpected lookup error -5
> [224162.677982] CIFS VFS: Unexpected lookup error -5
> 
> Unfortunately it seems like a EIO is the catchall for unknown SMB
> errors, so trying to debug this seems a bit hard.  Should we maybe look
> into propagating the SMB error codes further up the chain inside the
> cifs driver instead of converting them at a fairly low level?
>

That makes a lot of sense. We could also get rid of some nasty NT
error->DOS error conversion code that way too.

That said, if that NAS vendor is the one I'm thinking of, then
it's probable that it's just sending malformed responses and not sending
actual error codes at all.

You may be interested in this samba bug which has some details about
some of these problems:

    https://bugzilla.samba.org/show_bug.cgi?id=8914

-- 
Jeff Layton <jlayton@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux