Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought



fs_check_self_id(3K)           DG/UX R4.11MU05          fs_check_self_id(3K)


NAME
       fs_check_self_id - check the self-ID for a given set of blocks

SYNOPSIS
       #include "/usr/src/uts/aviion/ii/i_fs.h"

       boolean_type    fs_check_self_id (blocks_ptr, self_id_ptr, count_ptr)
       pointer_to_any_type     blocks_ptr;       /*READ ONLY*/
       df_self_id_ptr_type     self_id_ptr;      /*READ ONLY*/
       uint32_ptr_type         count_ptr;        /*READ/WRITE*/

   where:
       blocks_ptr  A pointer to the beginning of the first block to be
                   checked.
       self_id_ptr A pointer to the self-ID that the first block is expected
                   to have.
       count_ptr   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, count_ptr must be a
                   multiple of the block size, though this is not checked.

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
       Programming in the DG/UX Kernel Environment.


Licensed material--property of copyright holder(s)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026