Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ flchk(1) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fldisp(1)

flinit(1)

flchk(1)                                                           flchk(1)

NAME
     flchk - check floppy disk label area (floppy check)

SYNOPSIS
     /usr/sbin/flchk [-o owner] [-v version] [-i]

DESCRIPTION
     flchk is used to check the label area of the floppy disk currently in
     the drive. This label area, which is in the first few tracks of the
     floppy disk, is compared with the arguments that you specify in the
     command line. The format of a floppy disk is discussed in the
     flinit(1) command description.

     The following can be recorded in the label area:

     -  the owner of the floppy disk

     -  the volume serial number.

     flchk resides in the directory /usr/sbin.

     The flinit(1) command can be used to make an entry in the label area
     of a floppy disk; the fldisp(1) command displays this entry.

OPTIONS
     -o owner
          flchk compares the given owner with the corresponding entry on
          the floppy disk. If the owners are different, flchk asks if the
          difference should be ignored. If you answer "n", flchk issues the
          message:

          incorrect floppy inserted

          and terminates with exit status 1.

     -v version
          flchk compares the given volume serial number version with the
          entry on the floppy disk. If the numbers are different, flchk
          asks if the difference should be ignored. If you answer "n",
          flchk issues the message:

          incorrect floppy inserted

          and terminates with exit status 1.

     -i   Modifies how the command behaves with options -v and/or -o as
          follows:

          If the specified volume serial number or owner does not match the
          corresponding entry on the floppy disk, flchk issues an error
          message and terminates immediately with exit status 1 without
          requesting confirmation.



Page 1                       Reliant UNIX 5.44                Printed 11/98

flchk(1)                                                           flchk(1)

   Use of the flchk command

     flchk is typically used by the menu system when processing floppy
     disks. The entry in the label area enables a program to identify a
     floppy disk. Furthermore, in the menu system, only the owner recorded
     in the label area can access a floppy disk. Data is thus protected
     against access by unauthorized users, provided the access attempt is
     made in the menu system.

EXIT STATUS
     0  The entries in the label area of the floppy disk in the drive match
        the command-line arguments.

     1  One entry/both entries in the label area of the floppy disk in the
        drive is/are inconsistent with the command-line arguments.

LOCALE
     The LCMESSAGES environment variable governs the language in which
     message texts are displayed.

     Answers to yes/no queries must be given in the language appropriate to
     the current locale.

     LCCTYPE governs character classes and character conversion (shift-
     ing).

     If LCMESSAGES or LCCTYPE is undefined or is defined as the null
     string, it defaults to the value of LANG. If LANG is likewise unde-
     fined or null, the system acts as if it were not internationalized.

     If any of the locale variables has an invalid value, the system acts
     as if none of the variables were set.

EXAMPLES
     You wish to check whether the correct floppy disk is in the drive. The
     correct owner is john; the volume serial number is 1.

     $ flchk -v 1 -o john
     requested: VSN  000001  owner john
     existing:  VSN  000003  owner eric
     Should the difference be ignored? (y/n) > n
     flchk: Incorrect floppy inserted!

     or

     $ flchk -v 1 -o john -i
     requested: VSN  000001  owner john
     existing:  VSN  000003  owner eric
     flchk: Incorrect floppy inserted!

SEE ALSO
     fldisp(1), flinit(1).


Page 2                       Reliant UNIX 5.44                Printed 11/98

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