Skip to content
Commit 662d24f7 authored by Vishesh Handa's avatar Vishesh Handa
Browse files

FileWatch: Remove any existing dirIterator when removing the watches

When issuing a command to remove the watches, watches could be being
added at that point. In that case one should remove those iterators so
that watches are not added after it is unmounted. Also, the dirIterators
seem to prevent the medium from being unmounted.

Also make sure _k_addWatches is invoked if the dir iterater list is not
empty. There can be a case when there is only 1 dir iterator, and it
fails to add a watch. In that case _k_addWatches is not called again,
and that iterator is never removed. This happened to me for a
'lost+found' directory.

BUG: 304943
FIXED-IN: 4.10
parent af3e9833
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment