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

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

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux