News for hackers. Stuff that matters.
Re:Cloud desktops aren't as good as you'd think by jasode on Thursday October 06, 2022 @07:05AM (#33106779)
>What we need is not [...] cloud storage. We need [...] a decent distributed filesystem,

Distributed files to where exactly? You need to be more concrete about the remote location of non-local data that normal people can use. Ok, so you want "distributed filesystem" to not mean "cloud storage" ... So is it p2p? Something else?

In other words, we want Windows, macOS, Linux, iPhone, Android, etc operating systems... to have a file system that all points to the same "distributed filesystem" and see the same files -- and for other collaborators to see those files.

But we don't want those os configurations to point to DropBox / MS OneDrive / Google Drive / Backblaze, etc. So, we need to be concrete on the alternative common remote location that those file system APIs would point to. What would the topology of that solution look like?

Re:Cloud desktops aren't as good as you'd think by jagged-chisel on Thursday October 06, 2022 @07:26AM (#33106894)
> Distributed files to where exactly?

My desktop computer, my laptop computer, my tablet computer, my pocket computer. Whether that’s cloud or p2p doesn’t matter to me, the user. I should be able to start working on a spreadsheet or presentation on one and, without the ceremony of “save to a shared location, close the app, switch devices, open the app … now where’s that file again?” switch to another and continue editing.

First we need to specify a distributed fs. THEN we can decide the “to where” bit.

Re:Cloud desktops aren't as good as you'd think by resizeitplz on Thursday October 06, 2022 @08:30AM (#33107408)
Funny you use a spreadsheet as an example. That's been the default for Excel for years. Save to SharePoint/Teams/OneDrive (whatever MS is calling it these days, it's all the same backend) is the default option - and multi-user live editing (or one user in multiple sessions) just works.
Re:Cloud desktops aren't as good as you'd think by franga2000 on Thursday October 06, 2022 @07:48AM (#33107015)
The "to where" bit is really important when specifying the fs. If it includes at least one high-bandwidth high-storage high-uptime device (like a server), the requirements and capabilities change drastically compared to if it's composed of a bunch of battery-powered portable devices on limited data plans.
Re:Cloud desktops aren't as good as you'd think by generalizations on Thursday October 06, 2022 @07:33AM (#33106933)
That sounds like syncthing. Dunno about phones and tablets, but I have that functionality among my computers.
Re:Cloud desktops aren't as good as you'd think by pluijzer on Thursday October 06, 2022 @07:46AM (#33107004)
I have no affiliation but want to second this.

If you want to keep your filesystem in sync across many devices Syncthing fully enables this.

It is a use case where you would expect a payed service would be easier or more reliable but with Syncthing it is the exact opposite. Just install it on your devices and select the folders you want to keep in sync ... done.

I had never had any problems with it something I cannot say about Dropbox which can be terribly slow, hogs my PC and resulted in lost files on some occasion.

Re:Cloud desktops aren't as good as you'd think by Rygian on Thursday October 06, 2022 @08:22AM (#33107326)
My filesystem consists of [checks du -h . | tail -1] 189 GB.

I don't think Syncthing (which I love) can cram 189 GB on my 64 GB phone.

Yet I expect to have access to my filesystem from my phone.

Synthing is a nice "pump-hose system" between reservoirs of data. What I was arguing above is to stop having separate reservoirs of data to begin with.

Re:Cloud desktops aren't as good as you'd think by jcelerier on Thursday October 06, 2022 @08:44AM (#33107526)
I use seafile (similar to syncthing) and it allows to browse your data libraries without requiring a local copy for these cases
Re:Cloud desktops aren't as good as you'd think by Rygian on Friday October 07, 2022 @04:11AM (#33118609)
The issue is not so much "can I browse a virtual file system" but more "why should I depend on one local file system sitting on a remote server, probably owned by a third party, as being the single source of truth for my own files."
Re:Cloud desktops aren't as good as you'd think by jcelerier on Saturday October 08, 2022 @01:57AM (#33130144)
? With seafile the data is only on computers I physically own
Re:Cloud desktops aren't as good as you'd think by solarkraft on Thursday October 06, 2022 @08:29AM (#33107396)
I just wish Syncthing would allow for deferred sync, i.e. you see the file, but it only gets fetched once you access it.

That's, imo, the only way to sync large folders. I don't need all my Documents/Photos/Movies/Whatever on my phone at all times, but I do wish I could access them when I need them.

Re:Cloud desktops aren't as good as you'd think by rcarmo on Thursday October 06, 2022 @02:50PM (#33112357)
OneDrive does that on Windows and Mac.
Re:Cloud desktops aren't as good as you'd think by navane on Thursday October 06, 2022 @08:23AM (#33107335)
i have it running on an ancient android (4.4) phone, perfectly
Re:Cloud desktops aren't as good as you'd think by josteink on Thursday October 06, 2022 @07:39AM (#33106967)
I use syncthing. It's awesome for computers. Coming from Dropbox, then Nextcloud, I find it solves all my needs much, much better, at least on well-supported platforms.

I love how I can decide what to sync where, and even create my own topology of sync-devices if I like. That may sound like crazy complex stuff and over-engineering and what not, but it was a solution I landed on organically, just through normal use.

That said, it's not entirely smooth on iOS and you sometimes needs to manually launch the (third party) app to force a sync after changing some files.

Re:Cloud desktops aren't as good as you'd think by 0xCMP on Thursday October 06, 2022 @07:15PM (#33115404)
Syncthing doesn't solve the problem OP is talking about. It's amazing software that works as long as you don't have to sync the same file edited on two machines before they have a chance to sync. There is no logic, besides something using CRDTs, that can reliably resolve the conflicts in every situation when you just have two sets of bytes and nothing else.

Even if you maintain "last synced" copies + the current latest version and use those to compare against the server there are still simple situations where the conflict resolution doesn't work and/or requires user input. Anything that requires user-input like that can't properly sync binary files without resorting to making a new "File (Conflicted 1).sqlite" which you now manually need to compare.

It just isn't the same thing

Re:Cloud desktops aren't as good as you'd think by generalizations on Friday October 07, 2022 @07:33AM (#33119876)
But that's pretty much a fundamental issue - you can't create information about the system that just isn't there.

I think the only way around that limitation is to have a node that's always on - make sure it's always known what order the changes were made in.

Re:Cloud desktops aren't as good as you'd think by lupire on Thursday October 06, 2022 @08:59AM (#33107657)
Re:Cloud desktops aren't as good as you'd think by Rygian on Thursday October 06, 2022 @08:02AM (#33107128)
To where exactly: my devices. And if I don't want to buy my own devices, then to a cloud service that offers opaque storage of binary blobs with an API that my filesystem can abstract for me.

So the topology is a mesh network of my devices, and perhaps optionally a few defined remote endpoints that the opaque blob storage service provides me, and that I enter as part of the config of my filesystem.

Re:Cloud desktops aren't as good as you'd think by lupire on Thursday October 06, 2022 @09:01AM (#33107673)
That sounds like Cloud Storage to me (Dropbox, Google Drive Backup/Restore/Sync/whatever it's called this year).
Re:Cloud desktops aren't as good as you'd think by Rygian on Friday October 07, 2022 @01:39AM (#33117810)
Cloud storage is the opposite of distributed.

With cloud storage, you must have one single fixed central location (often a third party) that contains the real data, many satellite locations with a partial replica of the data, and hit-or-miss mechanisms to notice changes in replicas and propagate them to the central location. If the central location is down there is no more synchronization. If the central location is not yours, they can shut you down anytime.

A distributed filesystem does away with the need for a fixed central storage by storing data across all locations with a configurable level of replication. A strong, consistent cascading of changes (eg a crdt semantic) brings all replicas in sync whenever connectivity allows. No third parties need to be involved, no single device is a point of failure.

Re:Cloud desktops aren't as good as you'd think by oriolid on Thursday October 06, 2022 @07:22AM (#33106875)
This is the problem that needs to be solved. Cloud storage and p2p are solutions looking for a problem, but it would be nice to let them distract us too much.