btrfs icon indicating copy to clipboard operation
btrfs copied to clipboard

Support for the Windows 10 Cloud Files API

Open jdunn0 opened this issue 4 years ago • 3 comments

There is a Cloud Files API in Windows 10 that allows a Cloud Sync Client to store placeholder files on the File System so one can see all the contents of a Cloud Storage Provider but the actual files aren't downloaded until a program accesses them.

This feature is used by the OneDrive client and OwnCloud/NextCloud client when the use "Virtual File Support" option is turned on.

The clients do not let you use this feature on a BTRFS dirve (The OneDrive client goes further and doesn't allow syncing at all unless the folder is on an NTFS drive).

While support for other FIle Systems for OneDrive is likely not going to happen, if WinBTRFS did work with the Cloud Files API, I'm sure it would be possible to have OwnCloud/NextCloud client be updated to support BTRFS as a File System when using the Virtual File Support option.

I have no idea though if WinBTRFS can support the Cloud Files API or not as for all I know the API could be hard coded to require NTFS but figured I would ask about it and see what others thought.

jdunn0 avatar Sep 08 '21 21:09 jdunn0

It depends how it works - I'll have a look when I get the chance. I do remember investigating something similar which turned out to rely on a filter driver hardcoded to NTFS, so unfortunately there's a good chance it might be the same here.

maharmstone avatar Sep 08 '21 22:09 maharmstone

Hm, for me I am able to sync OneDrive on the btrfs partition (with Files on Demand turned off). Of course there is the error, but if you press Learn more instead of close, OneDrive doesn't shutdown weirdly enough. From there, right click OneDrive in the tool tray, get into settings and turn off File on Demand. Afterwards, OneDrive works as expected.

Interpause avatar Dec 28 '21 15:12 Interpause

On win11, I tried using my personal onedrive account. There is no longer the option to turn off Files on Demand in setting. There are only "Free up disk space" and "Download all files" there instead, neither of which works for me like previously. The group policy to turn off file on-demand also disappeared. I also tried adding the registry key FilesOnDemandEnabled, but that didn't work either.

alexfanqi avatar Oct 26 '23 03:10 alexfanqi