E pur si muove

cifs why don't you follow unix conventions?

Monday, August 03, 2009

Often it's nice to just have conventions and gentleman's agreements. But then sometimes someone doesn't and the harm is done, it's too hard to reverse.

NFS has introduced the de-facto standard of using "<host>:<path>" for the defice of a remote mount. Yes this break because you can have ":" in a filename, but in practice it works.


But somehow cifs (formerly smbfs), decided that adhering to the windows syntax was more important then adhering to the unix standard, never mind that it's a filesystem implementation for unix-like systems. So the remote mountpoint for a cifs filesystem is "//<host>/<path>". Yes, this breaks too, you could start any path with "//". But it's just plain annoying when trying to figure out if a filesystem is remote or not.


Monday, August 03, 2009 |


Anonymous said...

SMB/CIFS predates NFS (first specced in 1982) so the question is why NFS did not follow the existing conventions :-)

Lucian said...

host/path is the standard everywhere (look at http).

//host/path is weird, it should be cifs:host/path or smbfs:host/path

New comments are not allowed.

Subscribe to: Post Comments (Atom)