Re: [vserver] Kernel compile warnings

From: Ghislain Adnet <gadnet_at_aqueos.com>
Date: Fri 05 Jan 2018 - 16:29:30 GMT
Message-ID: <817b4e91-f701-156b-24db-1014e7ec31cb@aqueos.com>

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.
Received on Fri Jan 5 16:27:28 2018

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 05 Jan 2018 - 16:27:28 GMT by hypermail 2.1.8