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

Evaluation of disk space will fail when device has already unmounted due to Hyper Backup Task #12

Closed
luddinho opened this issue Jan 10, 2024 · 2 comments

Comments

@luddinho
Copy link
Contributor

luddinho commented Jan 10, 2024

AutoPilot v1.1-100

There is a configuration option in Hyper Backup for USB devices to eject the disk after task has successfully finished.

image

If this is checked, it could happen that the evaluation of the disk space will fail and report wrong information in the log.

e.g. In this case the expected report should be:

Speicherplatznutzung: 8.3 TB von 11 TB frei.

when device has been removed already from Hyper Backup the result is:

Speicherplatznutzung: 586 MB von 2.3 GB frei.

If the disk has been already unmounted the command $(df -h "${mountpoint}") will fetch the informatin of the mountpoint without active mount on this.

The idea is to determine the disk space only if the mount point still exists after script execution.
Proposal is available on local branch and PR for this issue will follow soon.

@luddinho
Copy link
Contributor Author

luddinho commented Jan 10, 2024

Please refer to PR #14

@toafez
Copy link
Owner

toafez commented Jan 10, 2024

I would like to thank you once again for your really great bug fixes and system improvements. I have already accepted your PRs and if it continues like this, another release of AutoPilot will be coming soon.

toafez

@toafez toafez closed this as completed Jan 10, 2024
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

2 participants