Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot-mover.sh - single digit destination are incorrectly assumed to be in use. #1

Open
johnbiggs opened this issue Nov 30, 2023 · 0 comments

Comments

@johnbiggs
Copy link

johnbiggs commented Nov 30, 2023

If user has destination named drive-1, drive-2, ... drive-19, drive-20 then drive-1 is rarely used because the mover assumes drive-1 is in use if a current move is in progress for drive-10-19. Same can be true for drive-2 on large destinations.

Fix appears to work.
- if lsof -w -p "$pid" | grep "$drive" > /dev/null
+ if lsof -w -p "$pid" | grep -e "$drive/" > /dev/null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant