dokan-dev / dokany

User mode file system library for windows with FUSE Wrapper
http://dokan-dev.github.io
5.27k stars 665 forks source link

Mirror - Add optional param to personalize GetDiskFreeSpace #791

Open Liryna opened 5 years ago

Liryna commented 5 years ago

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.

houcheng commented 5 years ago

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~

Liryna commented 5 years ago

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 👍

DaniGTA commented 4 years ago

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 ?

graphixillusion commented 4 years ago

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

DaniGTA commented 4 years ago

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

Gabe notifications@github.com 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 .

Liryna commented 4 years ago

@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