Skip to content

How to obtain or simulate the remaining space of drive redirection #3246

Answered by matt335672
tsz8899 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tsz8899

As always from you, this is an interesting and though-provoking observation.

I don't think there's anything in the protocol to support this kind of direct query. I tested that with a couple of Windows 10 VMs, with the reasoning that if Microsoft supports it we should be able to.

I ran mstsc.exe and asked to pass through just the C drive. Here is what I get:-

The redirected drive does not display its free space, nor could I find a way to make it.

So I think the only way to proceed would be to supply a dummy value which chansrv could pass back to the statfs system call. It wouldn't be just the value though - If I understand it correctly we'd have to link an additional method into

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by tsz8899
Comment options

You must be logged in to vote
1 reply
@matt335672
Comment options

Comment options

You must be logged in to vote
1 reply
@matt335672
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants