Subject: Re: [vserver] Kernel compile warnings
From: Ghislain Adnet <gadnet@aqueos.com>
Date: Fri, 5 Jan 2018 17:29:30 +0100

Le 05/01/2018 à 13:56, Ghislain Adnet a écrit :
> well this fail as a find /proc/virtual lead to a loop og the find process.. :(
> 
> Ghislain.
> 

reverting the logic from


-               if (!dir_emit(ctx, ".", 1, ino, DT_DIR) < 0)
+               if (dir_emit(ctx, ".", 1, ino, DT_DIR))


-               if (!dir_emit(ctx, "..", 2, ino, DT_DIR) < 0)
+               if (dir_emit(ctx, "..", 2, ino, DT_DIR))

to

if (!dir_emit(ctx, ".", 1, ino, DT_DIR))
if (!dir_emit(ctx, "..", 2, ino, DT_DIR))

and the tests works and find /proc works too

still dont know if the logic of the functions are preserved but at least it didn't find
an issue and seems to have the
same behavior as before in the serveur but not in the logic as if dir_emit is false
the behavior will chnage.

regards,
Ghislain.