From owner-freebsd-current@FreeBSD.ORG Tue Aug 9 17:52:24 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4284F16A41F for ; Tue, 9 Aug 2005 17:52:24 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 177E643D48 for ; Tue, 9 Aug 2005 17:52:22 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 09 Aug 2005 17:52:21 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) [62.245.232.135] by mail.gmx.net (mp006) with SMTP; 09 Aug 2005 19:52:21 +0200 X-Authenticated: #301138 From: Emanuel Strobl To: Pawel Jakub Dawidek Date: Tue, 9 Aug 2005 19:52:10 +0200 User-Agent: KMail/1.8.1 X-Birthday: Oct. 6th 1972 X-CelPhone: +49 (0) 173 9967781 X-Tel: +49 (0) 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1249550.pZqPak2aeT"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200508091952.19669@harrymail> X-Y-GMX-Trusted: 0 Cc: freebsd-current@freebsd.org Subject: ggtab, the counterpart to fstab for ggatec (like gg.exports to exports) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2005 17:52:24 -0000 --nextPart1249550.pZqPak2aeT Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Dear Pawel, currently I'm trying to make some rcNG compatible startup scripts to=20 include ggated and ggatec in the boot process. My idea was to extend rc.conf with these variables: =2D-- /etc/defaults/rc.conf Tue Jul 19 03:01:17 2005 +++ rc.conf.new Tue Aug 9 19:42:52 2005 @@ -223,6 +223,12 @@ keyserv_enable=3D"NO" # Run the SecureRPC keyserver (or NO). keyserv_flags=3D"" # Flags to keyserv (if enabled). +### Network Devices (ggate) +ggated_enable=3D"NO" # Provide raw devices via network accordi= ng=20 to /etc/gg.exports +ggated_flags=3D"" # Example: -S 4194304 -R 4194304 +ggatec_enable=3D"NO" # Create ggate devices at startup accorin= g=20 to /etc/ggtab +ggatec_flags=3D"" # Example: -S 4194304 -R 4194304 + ### Network Time Services options: ### timed_enable=3D"NO" # Run the time daemon (or NO). timed_flags=3D"" # Flags to timed (if enabled). Now I, the big non-coder, have to write a parser for ggtab, which would be= =20 a shell script inside /etc/rc.d/ggateclient. Now I'd like to ask you if you plan to implement something like fstab=20 (ggtab) for ggatec, like ggated has with gg.exports. If so, it's nonsense=20 that I do the same with a shell script. Here's the skeleton I planed for /etc/rc.d/ggateclient # # PROVIDE: ggateclient # REQUIRE: NETWORKING root mountcritlocal cleanvar ggatedaemon # KEYWORD: nojail =2E /etc/rc.subr name=3D"ggateclient" stop_cmd=3D":" start_cmd=3D"ggateclient_start" ggateclient_start() { # Create ggate devices # echo -n 'Creating GEOM_GATE devices:' ggatec create ${ggate_flags} ${gg.addr} ${gg.dev} echo '. Any hints for implementing ggtab the way I perhaps can do are welcome;=20 Actually what's a sensible way to read /etc/ggtab and check/assign values=20 for gg.addr and gg.dev? Best regards, =2DHarry --nextPart1249550.pZqPak2aeT Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBC+O1TBylq0S4AzzwRAqPIAJ4mSBF7TYK0h/yNBrQxEOvseOn6tQCgiN8W ajxI0HkmsfMBD/0JTNAukY8= =+Vnv -----END PGP SIGNATURE----- --nextPart1249550.pZqPak2aeT--