home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
compress
/
epu10.lha
/
epu.doc
< prev
next >
Wrap
Text File
|
1989-10-17
|
10KB
|
260 lines
==================
| EPU v1.0. |
==================
Stacker or XPK like(but different) system for Amiga.
Using lh.library is possible.
EPU is a packing system which allows user and the applications to access
compressed data from amiga dos devices without knowing that they are
compressed and of course if a new data are created (save)
they are automaticaly compressed.
EPU consists of this files:
EPU1.handler \
EPU2.handler > put them into your l: directory
EPU3.handler /
EPU0.library \
EPU1.library > put them into your libs: directory
lh.library /
EPU its a CLI command,so you can put it in c: directory
First thing,you have to do is assign EPU system to device you want to
work to. Let's say you want to work with your rad: disk.
You will simply type in cli:
EPU device rad (do not type ':' after device name)
Now when some task will write to rad: the file will be compressed,
when another task will read this file then will receive the file decompressed.
Now you can do any I/O operation with files in rad: (read/write/seek/close/
open/examine even an unlimitet number of task can read/write into one
file(in epu compress format) in the same time!!! ) and after decompressing
it the file will be the same like you have never been using EPU,but you
saved a lot of disk space.
It also mean that you can simply join file to compressed file by >> shell
redirection.
The file size is not limited by memory because only a small part of file
is in memory when working with it( The theoretic maximum size is 1.2GB).
The EPU command syntax:
EPU DEVICE name [SAVE/NOSAVE] [LOAD/NOLOAD] [EXAMINE/NOEXAMINE]
[NoExNext/ExNext] [LMODE/HMODE] [BLOCK number] [TABLE Number] [LIBRARY name]
[INFO/CHNG/KILL]
DEV is the synonym of DEVICE
LIB is the synonym of LIBRARY
options:
NoSave - when creating new file under epu, it will not be
compresed (simply packet ACTION_FINDOUTPUT is ignored);
[file will not be compressed,when saving]
Save - default option : file will be compresed every time.
NoLoad - when accessing file compressed by EPU system, it will not be
decompressed(simply packet ACTION_FINDINPUT is ignored);
Usefull when EPU is still instaled and you want to copy some
EPU file( epu file is file which is in epu compress format)
to another place without decompressing.
Load - default option : Epu file will be decompressed every time.
Examine - Default option : when examining EPU file(for example
list c:dir) you will get its virtual file size( that mean the
size what you get after decompressing).
NoExamine - when examining EPU file you will get its real size on
the disk( simply packet ACTION_EXAMINE is ignored);
ExNext - Default option : when examining directory contents ( f.e. list c:)
you will get virtual file sizes of files in this directory.
NoExNext - when examining directory contents
you will get real file sizes of files in this directory
(simply packet ACTION_EXNEXT is ignored);
Hmode - Default option: when file is saved (opened by opt MODE_NEWFILE) EPU
system will look whether the first compressed part is bigger than
before compressing and if so EPU will not create standart EPU
file but will save it as normal file.
That mean when saving once compressed file it will not be compressed
again.
Lmode- when saving file, it will allways be created in standart EPU format.
parameters:
BLOCK - sets block size for file which can be between 2 - 60 Kb.
Default size is 10.
When a small size is choosen you will need less memory,but
speed and compression ratio can be worse.
When you set BLOCK 20 you will need 2*20Kb for opened file.
TABLE - sets maximum of blocks for one opened file.
Default size is 1000 (can be betwee 500 - 20000 ).
So when block size is 20 and table is 1000 the file size
can be maximal 20 MB large ( 20*1000*1000 Bytes)
LIBRARY - default epu0: Here can be specified which compression/decompression
library will be used to pack the file. (the name of library
must be without the .library extension.) Now are available
two libs: epu0.library and epu1.library.
The values of TABLE,LIBRARY and BLOCK are only used when creating new
EPU file, when opening old epu file, the values in its header are used.
comms:
Info - gives current epu setings for given device(if assigned by EPU)
when for example will be typed: EPU device rad info
it will print something like this:
STATUS:
LOAD / SAVE / EXAM / EXNEXT / HMODE
BLOCK: 10
TABLE: 1000
LIBRARY: epu0
Chng - current setings of epu can be changed.
for ex. EPU dev rad NoSave Load Block 20 chng
will change block size to 20 and sets options to NoSave,Load;
the other setings will be unchanged.
Kill - Removes EPU from device.
for ex. EPU dev rad kill
will remove EPU system from rad device.
When some files are opened under EPU when killing it,
the epu will wait till all this files will be closed and then
will kill itself(in this waiting time can't be epu installed
again).
When no command is given epu will try to install to given device.
---------------------------
There can appear 2 new I/O error messages when working under epu:
1) ERROR_BAD_FILE - its number is 3020 .
This error mean that the epu file is not valid(damaged etc.).
2) ERROR_OPEN_UNPOSSIBLE -its number is 3021 .
This error mean that file can't be opened because of there is no mem
to allocate buffers or epu can't open compress library which the file
requires.
Notices:
EPU cli command can be loaded resident.
The EPU handlers are loaded resident to memory after first using of EPU command.
Instead of the name of device you can type name of volume, then the epu
will be installed to the device in which the volume is inserted.
It's usefull when epu command is used in startup sequence and
we do not know which drive will be used to boot.
Epu do not change any library vector(so others programs which access
device directly ,without using dos.library, are also handled)
When the file is compressed(decompressed) the device is not blocked
and can be used by anothers programs.
Example how compress your Workbench disk to save about 300Kb space(size of
saved space depends on library you have used to compress files).
You must first compress all files(Icons/libraries/progs. etc.) to blank
disk. You can't only compress files that are used before executing startup
sequence(that is system-configuration and startup-sequence) they must be
uncompressed. The last step is to change the startup-sequence.
At the first line you must write: EPU dev volume-name
And now you can boot from this disk.
Of course you can compress any others disks or hard disk by this way.
I used this method to compress Workbench 1.3.(epu1.library used).
After compressing all files and installing epu about 300KB remained
free on the disk.That mean I was able to store about 400 KB large files
from Extras disk on Workbench disk !!!!!!!!
epu0.library - this library is based on LZSS algor.. That mean the
compression is slow,but decompression is fast enought.The compression
ratio is also nothing special.
epu1.library - it is the interface between epu and lh.library.
the compression ratio is very good(better than PowerPacker) ,the speed too.
[lh.library is the product of O. Barthel & P. Krekel , you can find it on
Fish disk with documentation]
Testing:
EPU works with 1.3 and 2.0. filesystem,fastfilesystem,rad and other standart
devices.
EPU does not currently work with 2.0. ram: device.
Do not also install epu to devices which do not support Seek and Lock
packets(PIPE,NULL).
WARNING:
You are using this program on your own risk.
POSTING:
You can send bugs,new ideas,opinions to this internet e-mail address
jara@adelard.dcs.muni.cs
jara@lion.ics.muni.cs
or you can write to:
J. Mechacek
Mutenicka 7
628 00 Brno
Czech Republic
Europe
What the 2.0. version will include:
Intuition Interface(instead of EPU cli command) to allow fast handling with
epu tasks.
New libs.
The possibility to have the different options(SAVE,NOSAVE ...) for
each directory or volume.
I apologize for grammar mistakes that may be in this text,because
I don't speak English very much and this text was writen in very short time.
EPU 1.0. distribution
======================
EPU is SHAREWARE program and can be distributed only for non-commercial use
and the epu.doc must be included:
No file is allowed to be changed.
How to register:
Send US $15 when you are using EPU .
You will receive free EPU 2.0.
Where to send the money:
1)
Account Name: Jaroslav Mechacek,Mutenicka 7
Account Number: 34278-314558-621
Bank address:
Commercial Bank
Brno-mesto
nam. Svobody 21
631 31 Brno
Czech Republic
Europe
If you have e-mail address don't forget to mail me it.
2) Send the money in insured registered letter to this address:
J. Mechacek
Mutenicka 7
628 00 Brno
Czech Republic
Europe
DO NOT USE ANY OTHER WAY