PROBLEM:	(Patch ID: OSF350-066)		(HPAQ917D5)
********
The system can panic when a disk is in a RAID set and is mislabelled.

The system will panic with a stack trace similar to:
>  0 boot
   1 panic
   2 advfs_sad
   3 bs_cow_pg
   4 bs_cow

The error log will contain messages similar to:
        advfs I/O error: setId 0x2fc0af89.00086de0.2.8051
                         tag 0x0000137d.8006u page 336
            vd 1  blk 4110448  blkCnt 32
            write error = 28

The disk being complained about is in a RAID set, and is disklabeled as a rz 
disk and not an re disk.

The thing to note about the message is that the block number (4110448 in the
example) is very close to the end of the disk.

This panic is caused by the RAID controller appropriating some blocks at the
end of the disk for its own use.  Advfs, however, thinks it can write the
entire disk because of the incorrect disklabel.  The panic happens because
the RAID controller returns EIO when Advfs tries to write in the reserved
area.

This is a user error caused by incorrect labelling of the disk.  This patch
causes mount_advfs fail to mount the domain read-write and issue an error
message rather than have the system panic later.


FILE(s):

/sbin/mount_advfs		subset OSFADVFS350
CHECKSUM: 63721    216	   RCS: 1.1.17.2 (mount_advfs.c)
