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

util/cli/cdiskstate.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric icon
No screenshot available
Short:Check if disk is valid and such
Author: megacz at usa.com
Type:util/cli
Version:0.2
Architecture:m68k-amigaos,generic
Date:2008-05-17
Requires:see notes
Replaces:util/cli/cdiskstate.lha
Download:util/cli/cdiskstate.lha - View contents
Readme:util/cli/cdiskstate.readme
Downloads:945

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@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
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>