Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Error handling vs. user friendliness.



Olaf Titz wrote:
Maybe, in multi card setup, instead of an emergency exit vdr could close
the non-working device and call an external script to reload the module
only for that card?
Would certainly be an improvement.  But I doubt that this is possible.
AFAIK, you can not remove a module while it is used.

If you close all FDs referring to that module it should be possible.


An other option would be to retry on a different card (when one is
available).

So let's approach that a bit more systematically.
We can distinguish at least the following situations:

1. the system has only one card
2. all cards are busy with recordings
3. one card does live-view and all others are busy with recordings
4. at least one card is free

Doing EPG scan should count as "free" in the above context, we should
probably kill that before doing any of the stuff below.

The theory is that we don't want to interrupt recordings which are not
affected by the broken card. So in all situations except (1) we should
not do the emergency exit if possible.

From this we could derive the following strategy:
1. -> emergency exit
2. -> if the broken recording is the lowest priority, simply kill it.
      Otherwise, kill the lowest priority timer and resume the broken one
      on the now free card.
3. -> Switch the broken recording to the live-view card.
4. -> Switch the broken recording to a free card.
2.-4.-> Close the broken card, try to unload and reload its driver
        (using an external helper).
2. -> Try to resume the killed recording on the restarted card.
3. -> Try to resume live-view on the restarted card. (?)
2.-4.-> If the error comes up again on the same card, permanently
         disable it.

Disclaimer: I have to idea how easily this could be done...

Olaf
This is way too complex for my taste and will most likely be a source
of never ending bugfixes and additional configuration options, because
every user will surely have different ideas about what to do in which
particular case.

Klaus




Home | Main Index | Thread Index