fs_check_self_id(3K) DG/UX 5.4R3.00 fs_check_self_id(3K)
NAME
fscheckselfid - check the self-ID for a given set of blocks
SYNOPSIS
#include "/usr/src/uts/aviion/ii/ifs.h"
booleantype fscheckselfid (blocksptr, selfidptr, countptr)
pointertoanytype blocksptr; /*READ ONLY*/
dfselfidptrtype selfidptr; /*READ ONLY*/
uint32ptrtype countptr; /*READ/WRITE*/
where:
blocksptr A pointer to the beginning of the first block to be
checked.
countptr On input, a pointer to the number of bytes to be checked.
On output, a pointer to the number of bytes that checked
out OK. On both input and output, countptr must be a
multiple of the block size, though this is not checked.
selfidptr A pointer to the self-ID that the first block is expected
to have.
DESCRIPTION
A self-ID is an identifying number used to identify different non-
data disk blocks used in disk administration (for example, header
blocks).
For each block, this routine checks its self-ID against the prototype
self-ID. If any block fails, FALSE is returned along with the number
of bytes that passed the check. If all blocks pass, TRUE is returned
along with the number of bytes that were checked.
DIAGNOSTICS
Return Value
TRUE All blocks were successfully checked.
FALSE At least one block failed a self-ID check.
Errors
None.
SEE ALSO
systemconfiguration(3K).
Programming in the DG/UX Kernel Environment.
Licensed material--property of copyright holder(s) 1