From owner-freebsd-arch@FreeBSD.ORG Sun Oct 9 07:48:08 2005 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1125816A41F; Sun, 9 Oct 2005 07:48:08 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAEA143D46; Sun, 9 Oct 2005 07:48:07 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id BC8CBBC6D; Sun, 9 Oct 2005 07:48:05 +0000 (UTC) To: Pawel Jakub Dawidek From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 09 Oct 2005 09:33:44 +0200." <20051009073314.GA7463@garage.freebsd.pl> Date: Sun, 09 Oct 2005 09:48:05 +0200 Message-ID: <8254.1128844085@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Craig Rodrigues , freebsd-arch@freebsd.org Subject: Re: [RFC] Teaching mount(8) to use nmount() X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2005 07:48:08 -0000 In message <20051009073314.GA7463@garage.freebsd.pl>, Pawel Jakub Dawidek write s: >+> >- When it is called with '-t ' switch, we look for >+> > /lib/mount/mount_.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_ binaries at the moment? And where every binary have to >duplicate the same code? The mount_ binaries only use existing system calls. If you start creating mount_foo.so objects, you need to define which function entrypoints and support functions they provide and function entry points and data structures they can rely on in the main mount program. For something as trivial as mount_foo(8) programs that is just pointless complexity because it doesn't buy us any benefit at all, and have several downsides when it comes to reliability. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.