From owner-freebsd-fs@FreeBSD.ORG Sat Feb 27 21:11:59 2010 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF16A106566B for ; Sat, 27 Feb 2010 21:11:59 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello089077043238.chello.pl [89.77.43.238]) by mx1.freebsd.org (Postfix) with ESMTP id EDCBB8FC0A for ; Sat, 27 Feb 2010 21:11:58 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id F0C4D45CDC; Sat, 27 Feb 2010 21:44:18 +0100 (CET) Received: from localhost (shell.garage.wheel.pl [10.0.4.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 1BD6F45C9C; Sat, 27 Feb 2010 21:44:13 +0100 (CET) Date: Sat, 27 Feb 2010 21:44:10 +0100 From: Pawel Jakub Dawidek To: Freddie Cash Message-ID: <20100227204410.GB2586@garage.freebsd.pl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f5QefDQHtn8hx44O" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=4.5 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: fs@freebsd.org Subject: Re: HAST: file name consistency X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2010 21:11:59 -0000 --f5QefDQHtn8hx44O Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 25, 2010 at 10:02:23AM -0800, Freddie Cash wrote: > Just curious: why is the config file called hast.conf, but all the RC va= rs > and scripts use hastd? Shouldn't it all be "hastd" or all "hast"? >=20 > For example, if the rc script is hastd, the rcvar is hastd_enable, should= n't > the config file be called hastd.conf, and the control program called > hastdctl? >=20 > Or, if the config file is hast.conf and the control program is hastctl, > shouldn't the rcvar and script be just hast/hast_enable? >=20 > Just seems strange to have some things called "hast" and other things cal= led > "hastd" when it's all the same program/setup. >=20 > Perhaps I'm being too pedantic? Nope, I also did some thinking about this while I was working on it. Actually the configuration file name was hastd.conf for some time, but I changed it to hast.conf at the end. The reason for hast.conf is that it is not only used by hastd(8) daemon, but also by hastctl(8) control utility, so bascially by entire HAST software. That's why hastd.conf was in my opinion confusing, as it suggested that it was only used by the hastd(8) daemon. The rc.d/hastd script is there to start hastd(8) daemon. That's the only thing it does. It doesn't even configure resources role on start using hastctl(8) (it only stops resources on shutdown). That's why script and variables are named 'hastd*' and not 'hast*'. Now hastctl name. HAST is the software (project) name. hastctl means HAST-_c_on_t_ro_l_ just like hastd means HAST-_d_aemon. hastctl doesn't only control hastd, but can do other things too, eg. initialize metadata (create subcommand) and dump metadata (dump subcommand) without communicating with hastd. Does that make sense for you? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --f5QefDQHtn8hx44O Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkuJhBoACgkQForvXbEpPzRpLwCguLgi//a2PBQLxwrzO6k8cr4H 5tgAniW3OvepALrXhww99DTWC00LEno7 =qHEe -----END PGP SIGNATURE----- --f5QefDQHtn8hx44O--