[LTP] [PATCH 1/3] Fix releasing loop devices in shell API

Petr Vorel pvorel@suse.cz
Mon Feb 3 16:05:04 CET 2020


Hi Martin,

> tst_device helper program currently cannot release any loop devices because
> tst_release_device() checks whether any loop device was acquired by the same
> process. If not, it'll do nothing. And since loop devices for shell test
> scripts are always acquired by a different tst_device process, the check always
> fails.

> Call tst_detach_device() instead to bypass the check.

Indeed losetup --list shows increasing list of the devices.
Thanks for a fix, pushed.

Kind regards,
Petr


More information about the ltp mailing list