[OpenAFS-devel] Patch: Support for AIX 5.3
Niklas Edmundsson
Niklas.Edmundsson@hpc2n.umu.se
Wed, 20 Apr 2005 15:18:43 +0200 (MEST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---559023410-1144747756-1114003123=:3480
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Tue, 19 Apr 2005, Derrick J Brashear wrote:
>> The attached patch adds support for AIX 5.3 to openafs 1.3.81. The only
>> changes are to add a sysname and make the auto*-stuff aware of it.
>>
>> It seems to work for me on AIX 5.3 Maintenance level 1 using vac.C 6.x.
>>
>> Caveat: Using JFS2 for the cache most certainly does NOT work, so use
>> either good old JFS or memcache. I suspect that this statement is valid on
>> AIX 5.2 too, so this patch doesn't make the situation worse.
>
> You should be able to provide similar bitching to what exists in afsd to warn
> people of this, yes?
Something like this? I had to do some additional changes in afsd.c to
make it care about the return values, but I suppose that's OK.
/Nikke
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se | nikke@hpc2n.umu.se
---------------------------------------------------------------------------
With a calendar your days are numbered!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
---559023410-1144747756-1114003123=:3480
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=openafs-1.3.81-aix53-2.patch
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.GSO.4.62.0504201518430.3480@khan.acc.umu.se>
Content-Description:
Content-Disposition: attachment; filename=openafs-1.3.81-aix53-2.patch
ZGlmZiAteCBhZnNjb25maWcuaC5pbiAteCBjb25maWd1cmUtbGliYWZzIC14
IGNvbmZpZ3VyZSAteCBhY2xvY2FsLm00IC14ICcqLm8nIC13cnUgLi4vb3Bl
bmFmcy0xLjMuODEub3JpZy9hY2luY2x1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