Date: Mon, 22 Apr 2002 12:51:23 -0400 From: The Anarcat <anarcat@anarcat.dyndns.org> To: Jordan Hubbard <jkh@winston.freebsd.org> Cc: libh@FreeBSD.ORG Subject: Re: hfstab and extending getfsent(3) Message-ID: <20020422165123.GI307@lenny.anarcat.dyndns.org> In-Reply-To: <10095.1019493391@winston.freebsd.org> References: <20020422065534.GE326@lenny.anarcat.dyndns.org> <10095.1019493391@winston.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020422165123.GI307>