-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The old loop would run for exactly 300ms, and then use the uevents generated during that time. 300ms might not be long enough if it's on a physical network link (our tests are VM only). However, we also need to still support more than 1 LUN. I'm not sure how to find out how many LUNs there are going to be beforehand, so we don't know how many devices we are looking for. So for now, we do the following: we keep looping to find matches, until we're reasonably sure that no new ones are coming. We time out after 3 seconds, which any caller can change. Signed-off-by: Chris Koch <[email protected]>
- Loading branch information
Showing
1 changed file
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters