[RFC] Teaching mount(8) to use nmount()

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Oct 9 00:34:00 PDT 2005


On Sun, Oct 09, 2005 at 09:07:01AM +0200, Poul-Henning Kamp wrote:
+> In message <20051009064053.GA7261 at garage.freebsd.pl>, Pawel Jakub Dawidek write
+> s:
+> 
+> >My suggestion (which I discusses with Craig on IRC a bit already) is as
+> >follows:
+> >
+> >- We create one mount(8) program.
+> >
+> >- When it is called with '-t <fs>' switch, we look for
+> >  /lib/mount/mount_<fs>.so and try to dlopen() it.
+> 
+> No way.
+> 
+> Doing that would take much more code than having separate mount
+> binaries because it would add yet another ABI which has to be
+> versioned and managed etc etc.

So you think there will be more ABI changes to maintain than we have
mount_<fs> binaries at the moment? And where every binary have to
duplicate the same code?

I also don't know how passing arguments to .so is different than passing
them to external binary. At least here we can verify ABI and we can
eventually verify other things (like which options are supported, etc.).
The .so have to parse arguments, use build_iovec() and return.
In my opinion it'll save a lot of code duplication.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20051009/17fc55d0/attachment.bin


More information about the freebsd-arch mailing list