[Lustre-devel] [wc-discuss] Important changes to libcfs primitives usage.

Zhuravlev, Alexey alexey.zhuravlev at intel.com
Sun Dec 16 23:04:36 PST 2012

On Dec 17, 2012, at 10:52 AM, "Liu, Xuezhao" <Xuezhao.Liu at emc.com> wrote:

> Hi,
> Current the libcfs cleanup is mainly done by replacing kinds of libcfs calls with direct kernel primitives, we can implement the portable layer on other OS with the same name as Linux.
> I think the real concern is that on other OS there is possible some kernel primitives have the same name a Linux kernel but with different behavior/parameters, that will cause either compiling broken or running crashing etc.
> I don't have the full list of the above intersecting case, but it should be very rare right? We can build a separate patch( which should be small) for those intersecting cases for other OS, and I guess that patch need to be maintained separately.

originally libcfs_ prefix was introduce to cope with name collisions in Solaris. I'm not sure how this can be solved with a separate small patch.

to me the both goals look hard to achieve, so I'm fine with any solution ;)

thanks, Alex

Closed Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park, 
17 Krylatskaya Str., Bldg 4, Moscow 121614, 
Russian Federation

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

More information about the lustre-devel mailing list