[298] in Info-AFS_Redistribution
pmax_ul4: Segmentation Fault during 'mount' command
daemon@ATHENA.MIT.EDU (Martin R. Calsyn)
Mon Aug 26 19:13:04 1991
To: afs-help@transarc.com, info-afs@transarc.com
Cc: pv-tech@iastate.edu
Date: Mon, 26 Aug 91 16:30:44 CDT
From: Martin R. Calsyn <martin@iastate.edu>
Issuing the commands `mount' or `mount -V' will result in a segmentation
fault under Ultrix v4 systems (perhaps earlier releases also) running
AFS 3.1
The following patches will fix the problem. You'll need an Ultrix source
kit to compile mount.c. You will have to alter this if you have chosen a
value other than 8 for GT_AFS.
These patches are designed for systems with AFS compiled into the kernel
and have not been tested with dkload.
A patched binary image is available as
'/afs/iastate.edu/public/martin/mount.pmax_ul4'.
vincent% diff fs_types.h.orig fs_types.h
52a53
> #define GT_AFS 0x08 /* TransArc AFS */
62c63
< "unknown", "ufs", "ods", "brfs", "msdos", "nfs", "dfs", "sysv", 0
---
> "unknown", "ufs", "ods", "brfs", "msdos", "nfs", "dfs", "sysv", "afs", 0
The above change will take care of the seg faults by providing a value
for gt_names[GT_AFS].
vincent% diff mount.c.orig mount.c
268c268,271
<
---
>
> if (type==GT_AFS)
> return;
>
This if statement will insure that no attempt is made to call the
non-existant program afs_mount for mount info.
--
Martin R. Calsyn martin@iastate.edu
Project Vincent Systems Support gg.mrc@isumvs.bitnet
Iowa State University Computation Center voice: (515) 294-9889
Ames, Iowa 50011 fax: (515) 294-1717