Re: [RFC/PATCH 0/5] read/write on attribute w/o show/store shouldreturn -ENOSYS

From: Robert Love
Date: Thu Apr 28 2005 - 12:48:45 EST


On Thu, 2005-04-28 at 10:37 -0700, Chris Wright wrote:

> SuSv3 suggests EBADF, however we already do EINVAL at VFS for no write
> op. Although, returning 0 (i.e. wrote zero bytes) is still meaningful
> too.

I think EBADF implies that you opened the thing not for writing, and now
you are trying to write to it.

But my understanding of this problem is that the open is succeeding for
writes, but when the actual write is performed, the store fails (or does
not exist).

EIO makes sense for that. EACCESS less so, but still some.

Robert Love


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