Report correct free space on large RDP redirected drives - #712
Open
benjefferies wants to merge 1 commit into
Open
Report correct free space on large RDP redirected drives#712benjefferies wants to merge 1 commit into
benjefferies wants to merge 1 commit into
Conversation
RDPDR FileFsSizeInformation writes allocation-unit counts as UINT64, but guac_rdp_fs_info stored them in a 32-bit int. Filesystems with more than 2^31 allocation units then overflow, which can make Windows report zero free space and refuse copies onto the redirected drive. Related: GUACAMOLE-268, GUACAMOLE-764. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Windows Explorer can report no free space on an RDP-redirected Guacamole drive when the backing filesystem is large, even though writes that skip Explorer's pre-copy check still succeed. Copies of new files then fail with an insufficient-space error.
guac_rdp_fs_infostoredblocks_availableandblocks_totalasint.guac_rdp_fs_get_info()copiesstatvfscounts into those fields, and RDPDR later writes them as UINT64 (FileFsSizeInformation/FileFsFullSizeInformation). On filesystems with more than 2^31 allocation units, the 32-bit value overflows — often to zero — so Windows believes the drive is full.What changed
uint64_t, matching the RDPDR reply already being sent.Notes
issues.apache.orgis closed, so I could not file a new ticket. Happy to retitle once a committer files one or points me at the right account-request path.Made with Cursor