English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 16 January 2018, 19:23   #21
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,615
I once made a program which makes a real disk.info in RAM and maintains a copy of it on harddisk: http://aminet.net/util/misc/snapvol.lha

With this you don't have an object which is listed as a dicrectory and it also works on RAM disks below 3.9.
thomas is offline  
AdSense AdSense  
Old 16 January 2018, 20:58   #22
AMIGASYSTEM
Registered User
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italia)
Posts: 2,705
Thomas Thank you, your application works perfectly on my AFA OS (see video attached)

The link you have attached does not work, this of your site works instead: http://thomas-rapp.homepage.t-online...ds/snapvol.lha

Last edited by AMIGASYSTEM; 23 January 2018 at 00:01.
AMIGASYSTEM is offline  
Old 16 January 2018, 22:26   #23
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,615
The link does work. But indeed it is not the one I intended to post. I hate it if people post direct download links. This is the link to the description: http://aminet.net/package/util/misc/snapvol
thomas is offline  
Old 16 January 2018, 23:18   #24
honx
Registered User

honx's Avatar
 
Join Date: Oct 2014
Location: Klagenfurt / Austria
Posts: 947
giving snapvol a try as all other suggestions were a bit too complicated for me.
replaced makelink line in startup-sequence with snapvol (#1) looks much better (#2)!

readme states that on os3.9 systems >bb2 it would be better using makelink instead.
but this "solution" produced that bug/error, so snapvol is also best choice for >bb2!
Attached Thumbnails
Click image for larger version

Name:	ramdisk_ss.PNG
Views:	27
Size:	2.2 KB
ID:	56243   Click image for larger version

Name:	ramdisk_dir.PNG
Views:	26
Size:	19.4 KB
ID:	56244  

Last edited by honx; 16 January 2018 at 23:26.
honx is offline  
Old 17 January 2018, 01:02   #25
AMIGASYSTEM
Registered User
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italia)
Posts: 2,705
Quote:
Originally Posted by thomas View Post
I hate it if people post direct download links.
I'm sorry, i post direct download links for problems aesthetics to improve the reading of the post
AMIGASYSTEM is offline  
Old 17 January 2018, 02:07   #26
James
Registered User

 
Join Date: Mar 2010
Location: Beckenham/England
Posts: 479
Quote:
Originally Posted by mark_k View Post
Soft links are a bit weird in AmigaDOS. Some programs which weren't designed to handle them think they are directories. I guess that includes Cir!
Exactly, this proves there is a problem with dir and list, not makelink. When I first got a graphics card OS3.1 screenmode prefs totally messed up the number of colours reported. Based on the logic in this thread I would have binned the graphics card.
We should be looking to replace the inadequate software instead.
Newdir has no problem recognising the softlink:

Click image for larger version

Name:	AmigaShell_000.png
Views:	40
Size:	11.5 KB
ID:	56246

I've been using the makelink method for almost 20 years, and would require evidence of much more serious problems than this to convince me to stop using it.
James is offline  
Old 17 January 2018, 02:23   #27
honx
Registered User

honx's Avatar
 
Join Date: Oct 2014
Location: Klagenfurt / Austria
Posts: 947
how do i get such a colourful shell like shown in your attachment?
honx is offline  
Old 17 January 2018, 03:30   #28
James
Registered User

 
Join Date: Mar 2010
Location: Beckenham/England
Posts: 479
Quote:
Originally Posted by honx View Post
how do i get such a colourful shell like shown in your attachment?
It doesn't look that colourful most of the time, my default look is white text on a black background. Some commands use their own colour hi-lighting. The fact that the text has stayed red after the newdir command was run proves that newdir also has it's problems.

The list command that comes with PFS doesn't report softlinks, but doesn't misreport them as directories either:

Click image for larger version

Name:	AmigaShell_001.png
Views:	58
Size:	13.2 KB
ID:	56249

Here is my VNC prefs:

VNCPrefs.lha

S:Shell-Startup can also affect how your shell looks.
James is offline  
Old 17 January 2018, 06:18   #29
PeterK
Registered User
 
Join Date: Apr 2005
Location: Hangover
Posts: 1,910
Quote:
Originally Posted by James View Post
Exactly, this proves there is a problem with dir and list, not makelink. ... Newdir has no problem recognising the softlink:
Sorry, I have to apologize for suspecting MakeLink to be the culprit. But after looking into the autodocs of dos.library of OS 2.04 I just wonder why CBM did never update the dir and list instructions ??
Code:
dos.library/MakeLink
    NAME
 MakeLink -- Creates a filesystem link (V36)
    SYNOPSIS
 success = MakeLink( name, dest, soft )
 D0       D1    D2    D3
  BOOL MakeLink( STRPTR, LONG, LONG )
    FUNCTION
 Create a filesystem link from 'name' to dest.  For "soft-links",
 dest is a pointer to a null-terminated path string.  For "hard-
 links", dest is a lock (BPTR).  'soft' is FALSE for hard-links,
 non-zero otherwise.
  Soft-links are resolved at access time by a combination of the
 filesystem (by returning ERROR_IS_SOFT_LINK to dos), and by
 Dos (using ReadLink() to resolve any links that are hit).
...
   BUGS
 In V36, soft-links didn't work in the ROM filesystem.  This was
 fixed for V37.
Hmm ... OS 3.1 Dos.h:
Quote:
/* Values for MakeLink() */
#define LINK_HARD 0
#define LINK_SOFT 1 /* softlinks are not fully supported yet */
dosextens.h:
Quote:
/* Types for fib_DirEntryType. NOTE that both USERDIR and ROOT are */
/* directories, and that directory/file checks should use <0 and >=0. */
/* This is not necessarily exhaustive! Some handlers may use other */
/* values as needed, though <0 and >=0 should remain as supported as */
/* possible. */
#define ST_ROOT 1
#define ST_USERDIR 2
#define ST_SOFTLINK 3 /* looks like dir, but may point to a file! */
#define ST_LINKDIR 4 /* hard link to dir */
#define ST_FILE -3 /* must be negative for FIB! */
#define ST_LINKFILE -4 /* hard link to file */
#define ST_PIPEFILE -5 /* for pipes that support ExamineFH */
support.asm OS 3.1:
Code:
_MakeLink:
	move.l	#ACTION_MAKE_LINK,d0	; works by luck - common saves d2/d3!!
	bra.s	obj_common

Last edited by PeterK; 17 January 2018 at 07:02.
PeterK is offline  
Old 17 January 2018, 15:04   #30
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 1,906
Filesystems also need to support links. SFS docs say it doesn't support hardlinks, only softlinks. PFS comes with his own Makelink command because it says the WB Makelink has problems with softlinks. It seems it all depends on (luck).
daxb is offline  
Old 17 January 2018, 19:22   #31
AMIGASYSTEM
Registered User
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italia)
Posts: 2,705
Quote:
Originally Posted by James View Post
James what utility did you use to get the 2 tags (Help and Setting) on the window AmigaShell, thank you !
AMIGASYSTEM is offline  
Old 18 January 2018, 02:20   #32
PeterK
Registered User
 
Join Date: Apr 2005
Location: Hangover
Posts: 1,910
Quote:
Originally Posted by thomas View Post
What happens if the user drags the icon somewhere or resizes the window and tries to snapshot it? Does your library save the changes to the def icon?
Just thought about your question again, and I couldn't find a good reason why my icon.library should stay compatible to v45.1 in case of Ram Disk or trashcan icons. Both exist only once on Workbench (unlike disk, drawer, project or tool), so why deleting their position and not writing the window settings back to their def icons in ENVARC:Sys ? I will try that soon ...
PeterK is offline  
Old 18 January 2018, 16:53   #33
James
Registered User

 
Join Date: Mar 2010
Location: Beckenham/England
Posts: 479
Quote:
Originally Posted by daxb View Post
Filesystems also need to support links. SFS docs say it doesn't support hardlinks, only softlinks.
Well this is a softlink, so good enough...

Quote:
Originally Posted by daxb View Post
PFS comes with his own Makelink command because it says the WB Makelink has problems with softlinks.
I owned PFS before OS3.9 was released, so was aware of this claim when I updated to OS3.9, but decided to try using the OS version many years ago.
Still not seen any real problems in this one use case (have not used makelink for anything else).

Quote:
Originally Posted by AMIGASYSTEM View Post
James what utility did you use to get the 2 tags (Help and Setting) on the window AmigaShell, thank you !
That is a feature of VNC, it will not appear if SHELL is not set in tooltypes:

Click image for larger version

Name:	Workbench_System_Shell_VNC_000.png
Views:	19
Size:	47.4 KB
ID:	56291

Quote:
Originally Posted by PeterK View Post
Just thought about your question again, and I couldn't find a good reason why my icon.library should stay compatible to v45.1 in case of Ram Disk or trashcan icons. Both exist only once on Workbench (unlike disk, drawer, project or tool), so why deleting their position and not writing the window settings back to their def icons in ENVARC:Sys ? I will try that soon ...
What about changing the icon image?
James is offline  
Old 18 January 2018, 17:13   #34
PeterK
Registered User
 
Join Date: Apr 2005
Location: Hangover
Posts: 1,910
Quote:
Originally Posted by James View Post
Well this is a softlink, so good enough...
But not good enough for amber-ram-handler...
Quote:
What about changing the icon image?
Writing a fake icon to RAM:disk.info should be redirected completely, including the images, to ENVARC:Sys/def_RAM.info instead of creating a real icon for RAM: And ghosting could also be disabled. The same exception for the trashcan. Is that a good idea?
PeterK is offline  
Old 18 January 2018, 19:12   #35
AMIGASYSTEM
Registered User
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italia)
Posts: 2,705
Quote:
Originally Posted by James View Post

That is a feature of VNC, it will not appear if SHELL is not set in tooltypes:
Thank you
AMIGASYSTEM is offline  
Old 20 January 2018, 23:17   #36
PeterK
Registered User
 
Join Date: Apr 2005
Location: Hangover
Posts: 1,910
Quote:
Originally Posted by PeterK View Post
Writing a fake icon to RAM:disk.info should be redirected completely, including the images, to ENVARC:Sys/def_RAM.info instead of creating a real icon for RAM: And ghosting could also be disabled.
Ok, done. But it works on OS 3.5/3.9 only. And I didn't make any changes for the trashcan. Never use it and not sure if there are any problems with the trashcan, too?
PeterK is offline  
Old 20 January 2018, 23:24   #37
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,871
There is more than one trashcan icon (one on each drive/partition) so it wouldn't be appropriate to link all drives' trashcan icons to the same file.
mark_k is offline  
Old 20 January 2018, 23:35   #38
PeterK
Registered User
 
Join Date: Apr 2005
Location: Hangover
Posts: 1,910
Yes, that's one reason why I didn't change anything for trashcans. And usually they have real icons anyway.
PeterK is offline  
Old 21 January 2018, 00:06   #39
AMIGASYSTEM
Registered User
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italia)
Posts: 2,705
Furthermore Peter "GlobalTrash" use two Icons "def_Trashcan.info and def_TrashcanFull.info"

[ Show youtube player ]
AMIGASYSTEM is offline  
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
why cannot I boot hard drive directory or hard disk image jotd support.WinUAE 2 31 October 2017 18:00
Sensi Disk Directory bloodline Coders. Asm / Hardware 7 09 March 2017 11:48
Disable RAM: disk? Sinphaltimus support.Other 11 18 September 2016 16:18
Changing .info to different types (Project, Tool, Disk etc) Bloodwych support.Apps 1 12 January 2012 20:05
Ram Disk. whiteb support.Hardware 3 19 April 2006 04:09

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 06:40.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Page generated in 0.29740 seconds with 15 queries