Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
130 user(s) are online (113 user(s) are browsing Forums)

Members: 0
Guests: 130

more...

Support us!

Headlines

 
  Register To Post  

(1) 2 »
XADFileSystem development thread
Just can't stay away
Just can't stay away


See User information
For the last few days, this is what I've been working on:
Resized Image

When finished XADFileSystem is going to be to file archives what diskimage.device is to disk images. As you can see from the screenshot (click on it to make it bigger) you can already use it to mount and browse archives.

Note: Since xadmaster.library only supports reading from archives this will of course be a read-only filesystem.

An alpha version of XADFS can be downloaded here:
http://a500.org/uploads/xad_fs.lha

To mount an archive with it one should do something like:
setenv XADFS_TEMP_DIR RAM:T
setenv XADFS_ARCHIVE Data:Downloads/xadmasterdev.lha
mount XAD0: FROM XADFS.Mountlist

In the finished version this will of course be made much simpler.

Currently I am looking into what the filesystem should do when it receives a path that contains "PROGDIR:". ATM it doesn't understand this at all and returns ERROR_INVALID_COMPONENT_NAME.


Edited by salass00 on 2010/9/4 9:42:04
Go to top
Re: XADFileSystem development thread:
Quite a regular
Quite a regular


See User information
@salass00

Very nice! & Very Useful!

First thing that comes to mind of course is an DirOpus module? As it stands now you can double click on archives and copy from it etc but you can't view pictures from within an archive etc...

I see intergration written all over this in some form or another

I mean of course you can have you GUI from WB etc... this is just a handy limited application we are talking about!

~Yes I am a Kiwi, No, I did not appear as an extra in 'Lord of the Rings'~
1x AmigaOne X5000 2.0GHz 2gM RadeonR9280X AOS4.x
3x AmigaOne X1000 1.8GHz 2gM RadeonHD7970 AOS4.x
Go to top
Re: XADFileSystem development thread:
Just can't stay away
Just can't stay away


See User information
Small update and new alpha version:

PROGDIR: is now working and protection bits should now be supported too.

http://a500.org/uploads/xad_fs.lha

Go to top
Re: XADFileSystem development thread:
Home away from home
Home away from home


See User information
@salass00

Checked last version. That what i do:

copy XADFileSystem to L:
copy XADFS.MountList to System:Devs/DosDrivers/XAD0

then:

Quote:

13/0.RAM Disk:> setenv XADFS_TEMP_DIR_RAM:T
13/0.RAM Disk:> setenv XADFS_ARCHIVE ram:xad_fs.lha
13/0.RAM Disk:> mount xad0:


And have mounted my xad_fs.lha archive as partitin, i can see my files, can do anything like it plain file and not inside the archive (cool). Only have few debug errors (dunno will it make sense or not):

When just go to partition:
Quote:

unknown packet: 3030
unknown packet: 3030
unknown packet: 3040
unknown packet: 1033
packet: 24 error: 232
packet: 1005 error: 205
packet: 1005 error: 205
packet: 1005 error: 205
packet: 1005 error: 205
packet: 1005 error: 205


When press on file (it spawn multiview and all works fine):

Quote:

unknown packet: 8001
unknown packet: 8001
unknown packet: 8001
unknown packet: 800420


But i think that because you support only 2 packet types for now ..

If we will add support to XADMaster.library, to allow not only read, but also pack archive back , then it will be pretty awesome with your work. Right now i tryed to make a little script for Filer , which will grab the current archive name, do right SetEnvs, and jump at it.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: XADFileSystem development thread:
Home away from home
Home away from home


See User information
@salas00
Btw, how can i "umount" current xad0: ? I remember that back in the times, i use command "umount" on aos3.9, but looks like my C: not have that by some reassons ..

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: XADFileSystem development thread:
Just popping in
Just popping in


See User information
@kas1e

Wherever you got that "umount" command from, it was for sure not part of AmigaOS but some 3rd party tool - especially on OS3. AmigaOS never had a "umount" command.

OS4 has C:Dismount for that purpose.

(Don't confuse this with the DISMOUNT switch of C:Assign.. that switch is NOT dismounting a filesystem... check "help dismount" and "help assign" for more info)

AmigaOS 4 core developer
www.os4welt.de - Die deutsche AmigaOS 4 Gemeinschaft

"In the beginning was CAOS.."
-- Andy Finkel, 1988 (ViewPort article, Oct. 1993)
Go to top
Re: XADFileSystem development thread:
Amigans Defender
Amigans Defender


See User information
@kas1e

ASSIGN XAD0: DISMOUNT

I never understood why this is part of ASSIGN.... btw, umount is Linux

edit, oh I'm wrong, dire warnings about ASSIGN DISMOUNT in the docs, don't recall having problems with it and didn't know there was a DISMOUNT command.

@salass00

Fab!

Chris

Go to top
Re: XADFileSystem development thread:
Just can't stay away
Just can't stay away


See User information
@kas1e

Just ignore the debug output. Most of it is harmless. The unknown packet stuff is mostly because of new OS4 packets that aren't yet supported. The dos.library is able to detect this and just falls back onto the old packet types in these cases.

As for unmount, as Chris said the command in AmigaOS is:
assign XAD0: dismount

I wouldn't recommend it though as XADFS still doesn't support the ACTION_SHUTDOWN packet so the filesystem will still be running and the volume will still be registered in the doslist (only the devicenode will be removed).

Go to top
Re: XADFileSystem development thread:
Just popping in
Just popping in


See User information
@salass00

Quote:

salass00 wrote:
As for unmount, as Chris said the command in AmigaOS is:
assign XAD0: dismount


Wrong!

"assign something: dismount" just removes the device entry from the system list, but does not shutdown any filesystem/handler nor free any ressources.

For that the dedicated C:Dismount command exists in OS4.

Check the provided documentation for those commands.

AmigaOS 4 core developer
www.os4welt.de - Die deutsche AmigaOS 4 Gemeinschaft

"In the beginning was CAOS.."
-- Andy Finkel, 1988 (ViewPort article, Oct. 1993)
Go to top
Re: XADFileSystem development thread:
Just can't stay away
Just can't stay away


See User information
Another update and new alpha:

ACTION_SHUTDOWN is now supported so that Dismount command can be used to unmount the filesystem.

http://www.a500.org/uploads/xad_fs.lha

Go to top
Re: XADFileSystem development thread:
Supreme Council
Supreme Council


See User information
@salass00

This is excellent work, a very well done from me.

Simon

Comments made in any post are personal opinion, and are in no-way representative of any commercial entity unless specifically stated as such.
----
http://codebench.co.uk
Go to top
Re: XADFileSystem development thread
Just can't stay away
Just can't stay away


See User information
@salass00

I don't know what I'm doing wrong but I can't mount XAD0:. It pops up a DOS requster to ask to assign XAD0: to some directory. ??? (I've downloaded only the latest xad_fs.lha. I copied XADFileSystem to L: and XADFS.MountList to devs:. Using your command lines from your first post.)

Rock lobster bit me - so I'm here forever
X1000 + AmigaOS 4.1 FE
"Anyone can build a fast CPU. The trick is to build a fast system." - Seymour Cray
Go to top
Re: XADFileSystem development thread
Home away from home
Home away from home


See User information
@TSK

It's only i am do mount XAD0:, because i copy XADFS.MountList to devs: XAD0 (i.e. rename a XADFS.MountList to XAD0 and put it to devs with new name). And because of it i can do mount xad0:

You should do:

mount XAD0: FROM XADFS.Mountlist

Anyway for now its not very usable for end users, we should wait a bit for more simply and easy-integrated way.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: XADFileSystem development thread
Just can't stay away
Just can't stay away


See User information
@kas1e

Quote:
mount XAD0: FROM XADFS.Mountlist

That's exactly what I did.

Quote:
we should wait a bit for more simply and easy-integrated way

I agree.

Rock lobster bit me - so I'm here forever
X1000 + AmigaOS 4.1 FE
"Anyone can build a fast CPU. The trick is to build a fast system." - Seymour Cray
Go to top
Re: XADFileSystem development thread
Home away from home
Home away from home


See User information
@salass00

Good work, and keep it up.

And i'll wait a bit before i try this software.

X5000
Go to top
Re: XADFileSystem development thread
Just can't stay away
Just can't stay away


See User information
Hi @salass00

Currently I am looking into what the filesystem should do when it receives a path that contains "PROGDIR:". ATM it doesn't understand this at all and returns ERROR_INVALID_COMPONENT_NAME.
Python does it like this:
import amiga
Progdir=Amiga.getcwd() #get current working directory

P.S.
I got 7zip working! Thanks for stack info.

Go to top
Re: XADFileSystem development thread:
Just can't stay away
Just can't stay away


See User information
@Rigo

Thanks

@Snuffy

I fixed that problem already. Also unless amiga.getcwd is completely different from getcwd in clib the return value of that function is the current directory and not PROGDIR. BTW the problem was that I needed the packet sender's PROGDIR and not the filesystem's.

Go to top
Re: XADFileSystem development thread:
Just can't stay away
Just can't stay away


See User information
XADFileSystem 52.1 is now available on OS4Depot.

This includes MountXAD command for easy mounting of archives.

Go to top
Re: XADFileSystem development thread:
Quite a regular
Quite a regular


See User information
@salass00

Ha! It works! (of course...) Very nice, thanks for this...

X1000|II/G4|440ep|2000/060|2000/040|1000
Go to top
Re: XADFileSystem development thread:
Home away from home
Home away from home


See User information
@salas00
That awesome should to say :) Right now i dowload new demo from Xeron (Called Taiwan) from os4depot (in upload query for now), then:

mountxad ram:taiwan_os4.lha

have new partition, go to it, then press on exe and have fun :)

Only what i noticed, that showing of icon of partition not so fast. I think it take about 3-4 seconds. But in shell i can check that it mounts already immediately. Maybe there is any way, to have possibility to mount archive without showing an icon ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top

  Register To Post
(1) 2 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project