27 November 2015, 23:49 | #1 |
Posts: n/a
|
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 |
28 November 2015, 18:08 | #2 | |
Code Kitten
Join Date: Aug 2015
Location: Montreal/Canadia
Age: 52
Posts: 1,178
|
Quote:
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. |
|
28 November 2015, 18:37 | #3 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,575
|
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. |
29 November 2015, 13:29 | #4 |
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 |
29 November 2015, 16:23 | #5 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,575
|
Quote:
|
|
29 November 2015, 17:28 | #6 |
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 |
|
|