dokany icon indicating copy to clipboard operation
dokany copied to clipboard

Mirror - Add optional param to personalize GetDiskFreeSpace

Open Liryna opened this issue 7 years ago • 6 comments

MirrorDokanGetDiskFreeSpace is currently commented. Using/Chaning it requires to rebuild the mirror. https://github.com/dokan-dev/dokany/blob/master/samples/dokan_mirror/mirror.c#L1370

We should be able to set the FS Size with optional param.

Liryna avatar Mar 25 '19 13:03 Liryna

Hi, I updated the MirrorDokanGetDiskFreeSpace() for getting the real disk space, though may not exactly the same as this issue requested, but it can fix the size too small problem.

The PR is https://github.com/dokan-dev/dokany/pull/801 Thank you~

houcheng avatar May 27 '19 17:05 houcheng

Thank to @houcheng the mirror size has been improved but I will keep this open for any contributors who would like to make a PR for adding this options 👍

Liryna avatar Sep 12 '19 16:09 Liryna

Not working on network drives, it has 0 bytes free.

mirror.exe /r \1.1.1.1\C /l b

How can i set the disk size with a param ?

DaniGTA avatar Nov 13 '19 12:11 DaniGTA

@DaniGTA Can you access that share? If so you can try to map the share before and then mirror it with the tool.

graphixillusion avatar Nov 13 '19 20:11 graphixillusion

No problem at accessing. It just says 0bytes but all operations works fine, some programs says that there no space free.

Gabe [email protected] schrieb am Mi., 13. Nov. 2019, 21:06:

@DaniGTA https://github.com/DaniGTA Can you access that share? If so you can try to map the share before and then mirror it with the tool.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dokan-dev/dokany/issues/791?email_source=notifications&email_token=AE4KTMDKKS5XNWTM2PE3HSLQTRM6FA5CNFSM4HA3LMB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOED7PF2A#issuecomment-553579240, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4KTMEYNSZ2M5WYZ3WJCQTQTRM6FANCNFSM4HA3LMBQ .

DaniGTA avatar Nov 14 '19 11:11 DaniGTA

@DaniGTA You right UNC as Root directory was not supported The commit https://github.com/dokan-dev/dokany/commit/53c33e3dd05a551132565e23699508f2d9c624f9 add it 👍 thank you for your report

Liryna avatar Nov 17 '19 11:11 Liryna