Re: [PATCH] trans/mtab: avoid firmlink loops

2014-11-20 Thread Samuel Thibault
Justus Winter, le Sun 05 Oct 2014 13:26:42 +0200, a écrit : > * trans/mtab.c (struct mtab): Add a hash table to keep track of seen > ports. > (mtab_mark_as_seen): New function that records the identity port of a > given node in the hash table and reports whether it has been there > before. > (mtab_

[PATCH] trans/mtab: avoid firmlink loops

2014-10-05 Thread Justus Winter
* trans/mtab.c (struct mtab): Add a hash table to keep track of seen ports. (mtab_mark_as_seen): New function that records the identity port of a given node in the hash table and reports whether it has been there before. (mtab_populate): Use the new function to avoid running in circles. (main, open