English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 27 November 2015, 23:49   #1
anchor
 
Posts: n/a
Floppy disk Strange Workbench path

Hello,

I working on a dos handler. Everything is working fine.
... until i renaming a file with workbench, i got a strange
path: ' ^WB^:folder2'
It has a special meaning? folder2 is a valid directory, but the
first part is unusual. i searched for this string in the rom files,
and it is actually exist from the 2.0 os.
the action is when this path appearing: ACTION_RENAME_OBJECT


Last edited by anchor; 27 November 2015 at 23:51. Reason: action name added
 
Old 28 November 2015, 18:08   #2
ReadOnlyCat
Code Kitten
 
Join Date: Aug 2015
Location: Montreal/Canadia
Age: 52
Posts: 1,178
Quote:
Originally Posted by anchor View Post
Hello,

I working on a dos handler. Everything is working fine.
... until i renaming a file with workbench, i got a strange
path: ' ^WB^:folder2'
It has a special meaning? folder2 is a valid directory, but the
first part is unusual. i searched for this string in the rom files,
and it is actually exist from the 2.0 os.
the action is when this path appearing: ACTION_RENAME_OBJECT

The first thing which comes to mind is that the memory which holds the device name got overwritten by something else. If that is the case, some other data might have been overwritten too and you could expect instability issues.

Is it your handler which provides the device name?
If so, you could try to reserve some memory for it, pad it with markers left and right and see if these markers are trashed when you notice the weird string appearing for the first time.
ReadOnlyCat is offline  
Old 28 November 2015, 18:37   #3
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,574
Perhaps it is just a dummy place holder or to force it to be root-relative absolute path instead of relative? Perhaps relative to current directory which may not be same as source directory used in rename operation.

Does it only happen when renaming file in root directory?

It seems WB directly creates ACTION_RENAME packet because dos/Rename() should strip the ":" part out before creating the packet.

Anyway, it should not cause problems, handlers should skip possible <something>: path prefix anyway.
Toni Wilen is offline  
Old 29 November 2015, 13:29   #4
anchor
 
Posts: n/a
yes, i cutting down the part before : sign, it is fine. this prefix comes only with wb rename. im just simply dont know its purpose.
one more interesting thing: i have a worker thread which is doing file logging too. after this wb rename action, the logfile open() doesn't returns, and the thread become deadlocked.
if i renaming from cli, dopus, or filemaster, everything works fine. if i logging only to console or to serial port, also no problem experienced, i can use all function without any problem. strange
 
Old 29 November 2015, 16:23   #5
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,574
Quote:
Originally Posted by anchor View Post
yes, i cutting down the part before : sign, it is fine. this prefix comes only with wb rename. im just simply dont know its purpose.
one more interesting thing: i have a worker thread which is doing file logging too. after this wb rename action, the logfile open() doesn't returns, and the thread become deadlocked.
if i renaming from cli, dopus, or filemaster, everything works fine. if i logging only to console or to serial port, also no problem experienced, i can use all function without any problem. strange
Perhaps WB has DOS list locked?
Toni Wilen is offline  
Old 29 November 2015, 17:28   #6
anchor
 
Posts: n/a
hmm... something like this
if i turning off the file logging from workbench rename() to the end of the next unlock(), then no deadlock happened. i suspect this strange workbench path has some meaning.
maybe it means a dos list lock as Toni mentioned. and it is valid until the next unlock().
good to know

btw, i working on a google-drive (and later dropbox) handler for every amiga like os.
 
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Install path ras2a support.FS-UAE 7 14 June 2015 17:42
Strange side effect on screen in Workbench Snake79 support.WinUAE 3 13 April 2015 19:46
2.2 default path changes sun68 support.WinUAE 4 19 July 2010 21:31
Unsual Case of Dr. Strange / Return of Doctor Strange killergorilla HOL contributions 1 12 July 2007 16:08
Golden Path coach support.Games 3 16 December 2002 22: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 08:24.

Top

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