Jump to content

[Armbian build PR] - Improve loop devices management by allocating random free device


RSS Bot

Recommended Posts

Description

losetup -f always return 1st free loop device and in parallel build it often happens that same is found which results in: failed to set up loop device: Device or resource busy

If we seek random way, chances of allocating the same device are significantly smaller.

Jira reference number AR-1582

How Has This Been Tested?

  • [x] Few manual runs

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] My changes generate no new warnings
  • [x] Any dependent changes have been merged and published in downstream modules

View the full article

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines