Re: wait until swapoff is *actually* finished (it returns too early)?
Mike Castle dixit:
>Does cryptdisks have the ability to display what is in use at the
>moment? Maybe polling that before executing the stop?
That’s what I would like to ask and why I sent this eMail.
>I suspect that the race is that, when the the swapoff() syscall
>returns, the kernel has indeed moved all of the content off, so that
>part is fine... but it has not yet released whatever kind of resources
>is has on the backing store (akin to an open file handle).
My guess as well.
>You could then control the timeout by looping no more than N times,
>then failing a bit more gracefully than it is now.
That’d be a method of last resort, same category as the sleep,
except even worse. I’d like to find a way to prevent that.
Thanks,
//mirabilos
--
<cnuke> den AGP stecker anfeilen, damit er in den slot aufm 440BX board passt…
oder netzteile, an die man auch den monitor angeschlossen hat und die dann für
ein elektrisch aufgeladenes gehäuse gesorgt haben […] für lacher gut auf jeder
LAN party │ <nvb> damals, als der pizzateig noch auf dem monior "gegangen" ist
Reply to: