tech-kern archive

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

Re: Use consistent errno for read(2) failure on directories

In article <>,
Nicolas Joly  <> wrote:
>According to the online OpenGroup specification for read(2) available
>at [1], read(2) on directories is implementation dependant. If
>unsupported, it shall fail with EISDIR.
>Not all our file systems comply, and return random errno values in
>this case (mostly EINVAL or ENOTSUP).
>The attached patch fix some of them (the ones i have access to),
>adjust the man page accordingly and add a small testcase to exercize
>Is it ok to apply ?

Looks good to me.


Home | Main Index | Thread Index | Old Index