On 03/21/2014 02:44 PM, Stanislav Kholmanskikh wrote:

>
> I think that according to the patch the described behaviour is
> absolutely expected. Therefore It would be better to leave "ls -lR" in
> the test or insert a 'sleep' instead. In this case we would use no more
> than 2 loop devices per iteration.
>

I suppose it would be a better solution (and without any waitings):

loop_dev=$(losetup --show -f isofs.iso)
# do mount and other stuff
# do umount
while /bin/true; do
     out=$(losetup -d "$loop_dev" 2>&1)

     if echo "$out" | grep -q -i "No such device"; then
          break
     fi
done

This way we doesn't depend on asynchrony in the loop-driver code.

> Guys, what do you think?
>

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to