AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080118121106.3c8a4218@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<chris.vandever@onstor.com>,<rendell.fong@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	BB375AF679D4A34E9CA8DFA650E2B04E03E9A554@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Fri, 18 Jan 2008 12:11:21 -0800
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Chris Vandever" <chris.vandever@onstor.com>
Cc: Rendell Fong <rendell.fong@onstor.com>
Subject: Re: cluster DB file names
Message-ID: <20080118121121.2ae39583@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E03E9A554@onstor-exch02.onstor.net>
References: <20080118113237.1aed5610@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E03E9A554@onstor-exch02.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Fri, 18 Jan 2008 11:54:32 -0800 "Chris Vandever"
<chris.vandever@onstor.com> wrote:

> If the names are used outside of clustering then the definitions
> should just be moved to a file in Includes, like nfx-defs.h, and the
> code should use the defines rather than hard coded values.
> 
> ChrisV

Yeah, well we currently have stuff like this:

/* List of system configuration files */
char *sys_config_files = "etc/hosts etc/hosts.user etc/mygate etc/hostname.sc1 etc/hostname.sc2 etc/master.passwd etc/passwd etc/pwd.db etc/spwd.db etc/myname onstor/conf/cluster.conf onstor/conf/cluster.db.DB0 onstor/conf/cluster.db.DBSYS1 etc/resolv.conf etc/ssh/ssh_host_dsa_key.pub etc/ssh/ssh_host_dsa_key etc/ssh/ssh_host_key.pub etc/ssh/ssh_host_key etc/ssh/ssh_host_rsa_key etc/ssh/ssh_host_rsa_key.pub /etc/localtime etc/syslog.conf etc/ntp.conf etc/ntp/step-tickers onstor/etc/elog.conf onstor/etc/syslog.conf onstor/etc/snmpd.conf";


When I first saw this, like, a year ago, I immediately wondered about
the clusterdb names.  Like, are they still called that?  Are they
always called that in all instances and configurations?  And similar
questions crossed my mind.

The thing is, these lists of files are also needed in shell scripts.
Rendell was doing some work trying to globalize some of these lists,
and I had a suggestion for how we might be able to have one
authoritative file used by both C and shell code, so maybe the three of
us can discuss some ideas on this.  Now might be a perfect time for
changes like this.

Cheers,

a

