AminetAminet
Search:
84479 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/cli/cdiskstate.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Check if disk is valid and such
Author:megacz at usa.com
Uploader:megacz usa com
Type:util/cli
Version:0.2
Replaces:util/cli/cdiskstate.lha
Requires:see notes
Architecture:generic; m68k-amigaos
Date:2008-05-17
Download:http://aminet.net/util/cli/cdiskstate.lha - View contents
Readme:http://aminet.net/util/cli/cdiskstate.readme
Downloads:915

cdiskstate-0.2
---------------

---

This is 'cdiskstate', a tool that can tell if device is okay or not. Its
main purpose is to check if 'FastFileSystem' affected partition is vaild,
but it can tell even more.

---

NOTES:

Requires 68000+, OS 2.04+, 512 bytes of free memory

Proggy can be made resident.

---

NEWS:
     [14-May-2008]   0.2   Added possibility to print the return code,
                           so proggy can be used silently, even if it
                           does not exists.

---

USAGE:
  
         template:
                     cdiskstate dev:/a std/s
  
   rc explanation:
                   300 - unable to open dos v37
                   200 - error parsing args
                   100 - cannot allocate memory

                     6 - not a filesystem
                     5 - unable to lock media
                     4 - info not available
                     3 - structure is trashed 
                     2 - disk is being validated
                     1 - disk is write protected
                     0 - disk is fine(read/write)
  
        example a:
                     cdiskstate sys:
                     if $rc not eq 0
                     echo "there is something wrong with the disk!"
                     quit
                     endif
  
        example b:
                     cdiskstate sys:
                     if $rc eq 2
                     echo "disk is not valid!"
                     quit
                     endif

        example c:
                     failat 201
                     set executevar "`cdiskstate sys: std`"
                     if "$executevar" eq 2 val
                     echo "disk is not valid!"
                     quit
                     endif
                     unset executevar

---
megacz at usa.com



Contents of util/cli/cdiskstate.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  356     404  88.1% -lh5- bcad May 14 13:32 cdiskstate/cdiskstate
[generic]                 1203    3525  34.1% -lh5- 1bf9 May 14 13:31 cdiskstate/cdiskstate.c
[generic]                  175     278  62.9% -lh5- 9f72 May 13 23:11 cdiskstate/Makefile
[generic]                  650    1801  36.1% -lh5- 5112 May 14 13:31 cdiskstate/README.amiga
[generic]                  125     228  54.8% -lh5- b5f0 May 13 23:02 cdiskstate/SCOPTIONS
[generic]                  115     182  63.2% -lh5- 4f56 May 13 22:54 cdiskstate/SMakefile
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         6 files    2624    6418  40.9%            May 17 06:53

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>