English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 24 November 2014, 17:30   #1
selco
Registered User
 
Join Date: Aug 2013
Location: Germany
Posts: 81
Disadvantages of "Add Directory" - Harddrives?

The possibility to use a Windows directory is really great and very handy.
So what are the disadvantages of "Add Directory" - Harddrives?

-Is it possible to use Amiga-Softlinks?
-Is it possible to use Amiga-Hardlinks?
- Any other things?

regards selco

Last edited by selco; 24 November 2014 at 18:05. Reason: fixed typos
selco is offline  
Old 24 November 2014, 20:24   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,545
Softlinks are sort of implemented (using Windows-side .lnk files. These are supported by nearly all Windows applications so it makes sense)
Hardlinks are not supported.

Amiga links are too weird compared to "normal" non-Amiga system soft/hard links. (Would need separate database file or something to store them)

Does some Amiga program really need hardlinks?

Amiga specific filesystem flags, comments and Windows illegal filenames are supported (and stored to file/dir's alternate data stream)

Everything else should be implemented and supported. Technically it is more or less same as real hardware network file system, it does not run on top of Amiga block device, direct mapping between file size and used/free space is not possible and so on.

It also uses very little Amiga-side memory compared to "normal" Amiga filesystems. (=Always use matching HD controller and filesystem if you want to match real hardware)
Toni Wilen is offline  
Old 25 November 2014, 09:14   #3
selco
Registered User
 
Join Date: Aug 2013
Location: Germany
Posts: 81
Ok, thanks for clarification.
Background was as follows:
I wanted to do full backup of an old Amiga, first Harddrives to PFS3-formatted CF-Card, then CF-Card to external PC harddisk. "Add directory-drive" would have been most handy because of easy access to stored files.

On the Amiga I found softlinks and hardlinks. I don't know where both kinds of links came from originally. Most links are in a Geek Gadgets partition.

Copying the CF-card to a PFS3 formatted hardfile seems to work fine.

To be honest I still dit not fully understand the way links work. On Linux the are transparent to an application, on the Amiga I read the application has actively to support them? Would an enhanced DOS-library solve that problem? Or what should I as an a programmer do dow deal with links correctly?

regards selco
selco is offline  
Old 25 November 2014, 21:03   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,545
Yes, program needs to support softlinks, when program tries to access (any filesystem operation that takes a path string) soft link, it gets back ERROR_IS_SOFT_LINK and it is program's job to read softlink target (with ACTION_READ_LINK or ReadLink() dos.library function) and construct final path, path which may not be existing path, or even valid path.

Hardlinks don't need any extra support.
Toni Wilen 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
"Reminder "Lincs Amiga User Group aka "LAG" Meet Sat 5th of January 2013" rockape News 4 30 January 2013 00:06
Why does "add harddrive" still need admin rights? thomas support.WinUAE 5 16 May 2011 08:52
WinUAE x64 2.2 & 2.3 closing when "Add HardDrive" button is pressed Thom87 support.WinUAE 4 26 September 2010 16:37
"The Directory" Magazine not in AMR DDNI AMR contributions 5 17 September 2007 14:24
"Add Harddisk" feature problem.... mrpijey support.WinUAE 8 28 November 2002 21: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 03:00.

Top

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