Make a few attempts to umount the libguestfs
mounts, in case other processes are accessing
the mounts (like udev etc.)
If we still can't umount after 5 attempts
(with average delay of about 1s between each),
then initiate a lazy umount so that the mounts
might be automatically cleaned up at some stage.
We wait a further 10s after initiating the lazy
umount, before raising an exception.
Reviewed: https:/ /review. openstack. org/9685 github. com/openstack/ nova/commit/ 5eea8879b6f3268 dcaba326193bef0 ed75470bb7
Committed: http://
Submitter: Jenkins
Branch: master
commit 5eea8879b6f3268 dcaba326193bef0 ed75470bb7
Author: Pádraig Brady <email address hidden>
Date: Wed Jul 11 23:45:28 2012 +0100
ensure libguestfs mounts are cleaned up
Make a few attempts to umount the libguestfs
mounts, in case other processes are accessing
the mounts (like udev etc.)
If we still can't umount after 5 attempts
(with average delay of about 1s between each),
then initiate a lazy umount so that the mounts
might be automatically cleaned up at some stage.
We wait a further 10s after initiating the lazy
umount, before raising an exception.
Addresses the original issue in bug 1013689
Change-Id: Ib5ede9f705c833 825a19308c140f9 9c5bf3a776f