mà den 18.04.2005 Klokka 10:17 (-0700) skreiv Bryan Henderson: > >mount() is not a documented syscall. The binary formats for filesystems > >like NFS are only documented inside the kernels to which they apply. > > What _is_ a documented system call? Linux is famous for not having > documented interfaces (or, put another way, not distinguishing between an > interface you can read in an official document and one you discover by > reading kernel source code). But of all interfaces in Linux, the system > call interface is probably the most accepted as one a user of the kernel > can rely on. > > I don't think a filesystem driver designer should expect mount options to > be private to one particular user space program. Especially one that > isn't even packaged with the driver.
If people really do need a fully documented NFS mount interface, then the only one that makes sense is a string interface. Looking back at the manpages, the string mount options are the only thing that have remained constant over the last 10 years. We're already up to version 6 of the binary interfaces for v2/v3, and if you count NFSv4 too, then that makes 7. Choice of which binary interface to use is entirely dependent on the kernel revision. Good luck fitting all that (plus future revisions) into something like sash without doubling its size... Cheers, Trond -- Trond Myklebust <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
