Skip site navigation (1)Skip section navigation (2)
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

[-- Attachment #1 --]
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 rate.
> 
> 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. :)
 
> OK, sorry, too much crack this morning.  Seriously, this sort of thing would
> 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. 

At any rate, writing a single fstab doesn't seem safe for me.

A.

-- 
Un éducateur dans l'âme ne prend rien au sérieux que par rapport
à ses disciples -- soi-même non excepté.
                        - Nietzsche, "Par delà le bien et le mal"

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjzEP4sACgkQttcWHAnWiGcuTACeK25fQfCjTJHcwHyGgGRUzWrQ
P+EAnRS30n1PfLgmt04ylMB919A7d2K+
=61la
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020422165123.GI307>