[OpenAFS-devel] Patch to the Buserver of openafs-1.2.10
Chunlan Zhang
lyzhang@umich.edu
Wed, 18 Feb 2004 13:36:23 -0500 (EST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---559023410-1804928587-1076618284=:5479
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.SOL.4.58.0402181330342.21509@hypatia.lsait.lsa.umich.edu>
Hello,
We have to change our DB server's IP addresses. During the changing IP
process, We'd like to force some of the DB servers to be clone only.
We put the [] in the /usr/afs/etc/CellServDB. The ptserver and vlserver
work as expected. The one with the lower IP address thinks itself is a
clone only for the ptserver and vlserver, but the buserver does not pay
attention to the [] inside the /usr/afs/etc/CellServDB, the one with the
lower ip address still thinks itself is the sync site.
After studying the source code, we changed the source code to make the
buserver to honor the square brakets in the /usr/afs/etc/CellServDB.
Would you please take a look at the attachment and let us know if this is
OK ? We did some test on this, it looks OK to us now.
Thanks in advance!
*=======================================*
* Lynn Zhang *
* LS&A System Services Team *
* lyzhang@umich.edu *
*=======================================*
---559023410-1804928587-1076618284=:5479
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=diff
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SOL.4.58.0402121538040.5479@oafs1.lsait.lsa.umich.edu>
Content-Description:
Content-Disposition: ATTACHMENT; FILENAME=diff
ZGlmZiAtdXIgb25lL29wZW5hZnMtMS4yLjEwL3NyYy9idWRiL3NlcnZlci5j
IHR3by9vcGVuYWZzLTEuMi4xMC9zcmMvYnVkYi9zZXJ2ZXIuYw0KLS0tIG9u
ZS9vcGVuYWZzLTEuMi4xMC9zcmMvYnVkYi9zZXJ2ZXIuYwlTdW4gQXByIDIx
IDAwOjE0OjUzIDIwMDINCisrKyB0d28vb3BlbmFmcy0xLjIuMTAvc3JjL2J1
ZGIvc2VydmVyLmMJVGh1IEZlYiAxMiAxMzoyMzo1NCAyMDA0DQpAQC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