Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Aug 2005 19:52:10 +0200
From:      Emanuel Strobl <Emanuel.strobl@gmx.net>
To:        Pawel Jakub Dawidek <pjd@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   ggtab, the counterpart to fstab for ggatec (like gg.exports to exports)
Message-ID:  <200508091952.19669@harrymail>

next in thread | raw e-mail | index | archive | help
--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--



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