Welcome, Guest. Please login or register.

Author Topic: Amiga multi-tasking....Can't do anything else when copying files...  (Read 4098 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline kolla

Quote

alexh wrote:
As has already been said it's totally normal. File operations are blocking in AmigaOS.


That's slightly inaccurate, they are not blocking in AmigaOS, only in (old) Workbench.

Quote

I remember first seeing non blocking file I/O (on the Amiga) for WB alternative "Scalos" and thinking, way cool!


And in DirectoryOpus5 you can even copy from multiple sources to multiple destinations simultaniously.

Quote
If you do not have a DMA capable SCSI card then it probably isn't worth looking into as the CPU will be performing the File I/O?


Ofcourse it's still worth it, you can set the CPU priority used for the copy operation and do other operations in Workbench as normal.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline kolla

Re: Amiga multi-tasking....Can't do anything else when copying files...
« Reply #1 on: December 25, 2008, 12:40:19 AM »
Quote

ncafferkey wrote:
Quote

Piru wrote:
BTW. Is 3.9 AsyncWB really stable? I remember talk of some nasty bugs in it.


Yes, I remember having problems with it, but I can't remember the details. One quirky bug that I made a note of at the time was that if you tried to copy a hard link to another volume, it attempted to create a hard link spanning the volumes. But I think there might have been worse bugs too.


Speaking of hard links - how do I know that a file is a hard link in the first place? Neither workbench nor c:List is able to tell them apart. Not softlinks either for that matter.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline kolla

Re: Amiga multi-tasking....Can't do anything else when copying files...
« Reply #2 on: December 25, 2008, 01:44:36 PM »
Quote

Piru wrote:
@kolla
Quote
how do I know that a file is a hard link in the first place?

AmigaOS API is a bit screwed here.

The only dos.library level solution is to ExNext/ExAll the parent directory.

For softlinks you can also ACTION_LOCATE_OBJECT the specific name. If you get an error and Result2 is ERROR_IS_SOFT_LINK then it is a softlink. If the packet succeeds you must free the lock with ACTION_FREE_LOCK.

As for the dir and list commands, they just don't support links.


Exactly, it seems very "half done".

The only thing I ever use linking for is a "makelink ram:Disk.info envarc:ram_disk.info soft" in s:user-startup, so that I can snapshot icon etc. as normal :-)
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS