About
Docs
Files
Support
Index

Essentials
AutoDocs
Library functions
Cooperate
Process mastering
Debug
Own debugging kit
FGE
Smart modeid pick
Loader
Shared lib. loader
Macros
Helper macros
Structs
All the structures
Logs
Library changelogs
Tools
Progs baked inside

Tools
amiscreen0.3
ansifilter0.1
auto2guide0.1
ccfilter0.1
chipset0.1
cputype0.1
device640.1
dupfilter0.1
expandlogs0.1
findsm0.2
fmpp0.1
fsmount0.1
genanim0.3
gensymtab0.1
hashlab0.4
ktm0.6
linkpoint0.1
logo2ilbm0.1
lpradio0.1
lzwpack0.1
minism0.2
mkheader0.1
modeidctrl0.1
mss0.6
multisum0.3
newterm0.2
numconv0.1
palhack1.1
patmat0.1
pfr0.2
playamitape0.1
qdbflags0.1
qfill0.1
resmodinit0.2
sadctrl0.2
saveassign0.1
setanim0.2
systime0.1
tokendump0.1
uassign0.1
viewlogo0.1
waitback0.4
wrapmount0.1



D
E
V
I
C
E
6
4

device64-0.1
-------------

---

With  'device64'  it is very easy to  examine block devices and tell wheter
they support 64bit commands or not.

---

NOTES:

[*]
Requires  68020(no FPU)+,  OS2.04(theoretically)+, 4+ kilos of free memory.

[*]
Program does not output anything! The only indication is the '$RC' variable
which may be set to 0 - All OK, 5 - Device does not support 64bit commands,
10 - Error accessing device, 20 - Program failure(lack of args, bad OS ver,
etc).

---

HELP:

   > device64 ?

     PAR=DEV/A,U=UNIT/N,T=TD64/S,N=NSD64/S,A=AND/S



   PAR=DEV/A  -  Partition  or assign name or full  device driver name. For
                 instance: DH2:, SYS:, scsi.device, ...

   U=UNIT/N   -  Unit  number when  going to  examine  device  directly. By
                 default unit 0 will be used.

   T=TD64/S   -  Check if device supports TrackDisk64 commands.

   N=NSD64/S  -  Check if device supports NewStyleDevice64 commands.

   A=AND/S    -  This  switch implies that  when examining the device, both
                 commandsets must be supported. By default it is the  OR so
                 if T=TD64  and  N=NSD64  are specified and one of these is
                 found then the device is 64bit compliant.

---

USAGE:

   ; Check if device is accessible at all
   failat 11
   device64 scsi.device 1
   if error
     echo "No device was found on unit number 1!"
   endif

   ; Check if SYS: partition is 64bit compliant
   failat 11
   device64 SYS: t n
   if warn
     echo "Your SYS: partition may be in danger!"
   endif

   ; Check if 'FRAP' did patch the 'scsi.device'
   failat 21
   FRAP >NIL:
   device64 scsi.device t n
   if not warn
     mount <partition>
   endif
   
---
megacz
    



























No more fear cus pure HTML is here!
Copyright (C) 2013-2014 by Burnt Chip Dominators