From owner-freebsd-libh Mon Apr 22 0:11:51 2002 Delivered-To: freebsd-libh@freebsd.org Received: from toq4-srv.bellnexxia.net (toq4.bellnexxia.net [209.226.175.24]) by hub.freebsd.org (Postfix) with ESMTP id C980737B41C for ; Mon, 22 Apr 2002 00:11:30 -0700 (PDT) Received: from shall.anarcat.dyndns.org ([65.94.187.200]) by tomts6-srv.bellnexxia.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20020422065639.MXUH17844.tomts6-srv.bellnexxia.net@shall.anarcat.dyndns.org> for ; Mon, 22 Apr 2002 02:56:39 -0400 Received: from lenny.anarcat.dyndns.org (lenny.anarcat.dyndns.org [192.168.0.4]) by shall.anarcat.dyndns.org (Postfix) with SMTP id CF4BFDE for ; Mon, 22 Apr 2002 02:55:42 -0400 (EDT) Received: by lenny.anarcat.dyndns.org (sSMTP sendmail emulation); Mon, 22 Apr 2002 02:55:34 -0400 Date: Mon, 22 Apr 2002 02:55:34 -0400 From: The Anarcat To: libh@freebsd.org Subject: hfstab and extending getfsent(3) Message-ID: <20020422065534.GE326@lenny.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VUDLurXRWRKrGuMn" Content-Disposition: inline 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 --VUDLurXRWRKrGuMn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi. I just committed a very simple piece of code demonstrating a bit where I want to go to with the installer. Some basic functionalities are missing, and one of those is a mount(2) interface. I intend to provide that functionality with a class representing a /etc/fstab file. The class will be able to read and write to this file, mount(2) and possibly newfs(8) the filesystems listed in there. There are probably major design errors in there, and I think the code is not that good right now, but it works, and that's all that counts right now. I needed a prototype to see where I was going and to show it around. 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. Comments? A. --=20 =46rom the age of uniformity, from the age of solitude, from the age of Big Brother, from the age of doublethink - greetings! --VUDLurXRWRKrGuMn 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 iEYEARECAAYFAjzDs+UACgkQttcWHAnWiGcM4gCeN4JONmGoHxyUk+X5pWEfbcJ8 Yk0AnAznY16XsTpdXcr3ww4uNV6eO6fp =iOLh -----END PGP SIGNATURE----- --VUDLurXRWRKrGuMn-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message