From owner-freebsd-libh Mon Apr 22 13:46:12 2002 Delivered-To: freebsd-libh@freebsd.org Received: from toq6-srv.bellnexxia.net (toq6.bellnexxia.net [209.226.175.62]) by hub.freebsd.org (Postfix) with ESMTP id 1812437B489 for ; Mon, 22 Apr 2002 13:44:56 -0700 (PDT) Received: from shall.anarcat.dyndns.org ([65.94.187.200]) by tomts14-srv.bellnexxia.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20020422165231.YPPV15110.tomts14-srv.bellnexxia.net@shall.anarcat.dyndns.org>; Mon, 22 Apr 2002 12:52:31 -0400 Received: from lenny.anarcat.dyndns.org (lenny.anarcat.dyndns.org [192.168.0.4]) by shall.anarcat.dyndns.org (Postfix) with SMTP id 459D356; Mon, 22 Apr 2002 12:51:35 -0400 (EDT) Received: by lenny.anarcat.dyndns.org (sSMTP sendmail emulation); Mon, 22 Apr 2002 12:51:23 -0400 Date: Mon, 22 Apr 2002 12:51:23 -0400 From: The Anarcat To: Jordan Hubbard Cc: libh@FreeBSD.ORG Subject: Re: hfstab and extending getfsent(3) Message-ID: <20020422165123.GI307@lenny.anarcat.dyndns.org> References: <20020422065534.GE326@lenny.anarcat.dyndns.org> <10095.1019493391@winston.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q59ABw34pTSIagmi" Content-Disposition: inline In-Reply-To: <10095.1019493391@winston.freebsd.org> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --Q59ABw34pTSIagmi Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon Apr 22, 2002 at 09:36:31AM -0700, Jordan Hubbard wrote: > > It would be interesting to extend getfsent(3) into functions that > > would write to fstab too. I don't know if it would be appropriate to > > write those functions in C and backport them to the base, but I think > > it's worth a shot. sysinstallNG needs to write to /etc/fstab at any rat= e. >=20 > If those FreeBSD losers would just adopt Netinfo for all this kind of > information, there would already be a central datastore and an API for > writing to it! :-) I'm going to hit you. :) =20 > OK, sorry, too much crack this morning. Seriously, this sort of thing wo= uld > be good - the lack of a programmatic interface for writing fstab entries > has been commented on and complained about before. My problem with writing a C interface is that there is no structure to represent the /etc/fstab in itself, only its lines. We need a linked list of struct fstab. Otherwise we can make the putfsent() function take a null-terminated array of fstabs.=20 At any rate, writing a single fstab doesn't seem safe for me. A. --=20 Un =E9ducateur dans l'=E2me ne prend rien au s=E9rieux que par rapport =E0 ses disciples -- soi-m=EAme non except=E9. - Nietzsche, "Par del=E0 le bien et le mal" --Q59ABw34pTSIagmi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjzEP4sACgkQttcWHAnWiGcuTACeK25fQfCjTJHcwHyGgGRUzWrQ P+EAnRS30n1PfLgmt04ylMB919A7d2K+ =61la -----END PGP SIGNATURE----- --Q59ABw34pTSIagmi-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message