tech-kern archive

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

Re: ENOATTR vs ENODATA



Le 01/05/12 04:18, Emmanuel Dreyfus a écrit :
Jean-Yves Migeon<jeanyves.migeon%free.fr@localhost>  wrote:

The Linux API allows you to add arbitrary namespaces without a hitch.
You need to patch the kernel to do the same with the FreeBSD API.

Okay, but what API NetBSD will be using?

The Linux one. Nobody uses the FreeBSD API and it has drawbacks compared
to the Linux one. It has been decided to remove the FreeBSD API before
the 6.0 release, but someone needs to find time to do it.

In that case, I would suggest patching the kernel and let it return ENODATA. The API was never usable, no risk of making a mess of it. It would just need adjustements in documentation.

bt code that uses ENOATTR stays unharmed, and the extended att. API stays closer to the Linux one.

My 2 cents :)

--
Jean-Yves Migeon
jeanyves.migeon%free.fr@localhost


Home | Main Index | Thread Index | Old Index