diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-06-29 20:59:41 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-06-29 21:00:15 +0200 |
commit | 18affff4633752370895e39e23a2c7e0f30bfc02 (patch) | |
tree | 7ff1ad515ab1d6280107eaaa46885ef1e9b3ed46 /utils/pids.h | |
parent | 7f52121e6510a8ca3424089b53844776a2ae01d7 (diff) |
sutils: fix file_name_lookup_carefully
file_name_lookup_carefully is like file_name_lookup but tries hard to
avoid starting any passive translators while doing the lookup. The
callback contains code to get a new handle to the root if it
encounters a translator, but this code was not being executed if the
node had no record of an passive translator, just an active one.
Fix the callback by dropping the test for a passive translator. AIUI
the current check for a passive translator makes no sense, as the code
is supposed to fail on encountering a passive translator.
This fixes lookups inside translators that have no passive
translator. For example if /run is a tmpfs started only as active
translator, touch /run/lock && mount tmpfs -t tmpfs /run/lock -o
size=5M would fail.
* sutils/clookup.c (lookup): Drop the test for an passive translator.
Diffstat (limited to 'utils/pids.h')
0 files changed, 0 insertions, 0 deletions