English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 07 October 2012, 06:56   #1
Vot
Registered User
 
Join Date: Aug 2012
Location: Australia
Posts: 651
Filesystem read redirection

Hi guys,

I was wondering how it would be possible to go about patching the system to redirect reads or writes to another folder.

I.e if a process requests read to sys:catalogs i could read that from another volume without the system or application knowing.

I know you can alias devices etc but i would like to redirect specific folders.

Does anyone know what you would have to patch? Exec etc. The aim would be to have any amigados or wb process to see the redirected folder transparently.

Dont worry im not asking for any virus like activity. Etc..

Cheers
Vot is offline  
Old 07 October 2012, 11:01   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,002
What happens with the files in SYS:catalogs? They could never be read again.

Actually most system files are accessed through assigns, not through absolute paths. For example shared libraries are accessed as libs:name.library not as sys:libs/name.library. With this in mind you can just change the assign in order to move the directory to annother volume.

For example

assign libs: work:system_files/libs

Or in the case of catalogs (which are in Locale:catalogs, not in Sys:catalogs).

assign locale: work:system_files/locale

You could even move SYS: to work:system_files.
thomas is offline  
Old 07 October 2012, 11:43   #3
Vot
Registered User
 
Join Date: Aug 2012
Location: Australia
Posts: 651
Catalogs was a bad example, it was actually for some other software that requests files using sys: what I was hoping to do was redirect these calls else where so I can have a cleaner system without having to have the files where the application wanted them.

your right aslong as the application is written properly and looks for things via a volume name you can just assign it elsewhere.

as for this... I guess you could just add a path to sys elsewhere.

i.e assign add sys: somewhere:else

I would still be interested in how you can patch it although.

Last edited by Vot; 08 October 2012 at 00:14.
Vot is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for CD filesystem. Thorham request.Apps 15 28 September 2009 01:05
Execute Command Redirection Help Ed Cruse Coders. General 2 30 September 2008 16:59
CD filesystem Rod_cl support.Apps 15 02 October 2007 02:07
Best Filesystem? Enverex Amiga scene 18 19 August 2003 21:55
Printer redirection Jherek Carnelia support.WinUAE 1 14 January 2002 17:57

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 14:22.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06457 seconds with 15 queries