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

Fix upload not working when the agent cannot be deployed #22

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

save196
Copy link

@save196 save196 commented Mar 28, 2024

When the agent cannot be deployed the upload command fails as remote_block_size is not set. This commit sets remote_block_size to 1 by default.

save196 and others added 2 commits March 28, 2024 16:32
When the agent cannot be deployed the `upload` command fails as
`remote_block_size` is not set. This commit sets `remote_block_size` to
1 by default.
The current upload function calculates the available space in the remote system using `df` and by specifying the block size using the `--block-size` flag. That flag exists only in GNU version of `df` but it fails with BusyBox or Toybox version of `df`.
The `-k` flag, which sets the block size to 1024 bytes, is preferred as common among different implementations of `df`.
@save196
Copy link
Author

save196 commented Mar 28, 2024

Updated the df command used in file upload to use -k (sets the block size to 1024 bytes) instead of --block-size. This improve compatibility with other versions of df, like BusyBox and Toybox implementations that do not support --block-size.

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

Successfully merging this pull request may close these issues.

None yet

1 participant