4 ms·
I'm leaning to some sort of automounter and a secure protocol. What that protocol is ... kind of doesn't matter. If you look at, say, Plan 9 OS, it's got a ra
by dredmorbius 10y ago
I'm leaning to some sort of automounter and a secure protocol. What that protocol is ... kind of doesn't matter.
If you look at, say, Plan 9 OS, it's got a rather interesting 9P protocol which implements a webfs and ftpfs for local fileshares.
What SMB did was, as with much of Windows stuff, conflate a few things:
* The filesharing protocol was mixed in with the transport protocol. That's not all bad, as you have that on the Unix world as well (NFS, AFS). But it means you can't change one without dealing with the other (the usual argument against monolithic design).
* The mounting and share-discovery mechanism was also baked in. This is where things start bordering on lunacy. In the Unix world, you'd deal with this though an independent mount or automount / autofs system. Which is its own brand of lunacy as well, but....
* Licensing. SMB / CIFS shares carry CALS obligations which I've never been able to comprehend.
There are other bits. Like that if you were to access a CIFS share from, say, a Linux box or Cygwin session, each individual process-based access counts as a share (see CALS above, also the per-host session limit of, generally, 10 sessions).
Other options: FTP (though it's probably rightfully dying), HTTP, HTTPS (now we're looking at something remotely sensible), SSH.
There are FUSE filesystems which will work with each of these, though you've got to specify the hosts. You can automate some of that through autofs (on the Linux / Mac side). WebDAV in theory offers a read/write file-based access over HTTP(S), though in practice it's proved difficult.
Generally, this is a space that's oddly lacking in reasonable and good alternatives.
I'd argue more generally that documents-based filesystems are also exceptionally poor at what they ought really be capable of doing.