Suggestions for POSIX error code mapping for OBJECTID_NOT_FOUND
ronnie sahlberg
ronniesahlberg at gmail.com
Sun Mar 17 08:56:14 UTC 2019
ENOENT / ENOTSUPP / EINVAL?
ENOENT feels appropriate since this is not a permanent condition.
Someone could create the object buffer after which it will exist and
there will no longer be an errror when asking for it.
I guess for a long time smbinfo.c will be the only consumer for this
on the non-windows side so whatever we decide will be what will be
how things are and others will follow.
On Sun, Mar 17, 2019 at 6:40 PM Steve French <smfrench at gmail.com> wrote:
>
> Any thoughts as to the best POSIX error code to map status code
> "0xC00002F0 STATUS_OBJECTID_NOT_FOUND" to?
>
> It means an object ID was not found for the file, which is a
> reasonably common situation over the network even to Windows servers.
>
> I was mapping it to EIO for cases where tools asks for the object id
> of the file (or volume).
>
> --
> Thanks,
>
> Steve
More information about the samba-technical
mailing list