From Ralf Kiefer@21:1/5 to All on Tue Nov 23 15:52:46 2021
Hi,
I'm playing with the library function "_os_makdir()" and also with the Microware command "makdir". My system is a MVME177 (68060) running
v3.0.3 (Kernel Ed.375, rbf Ed.100, ioman Ed.35). When testing my user
account is "0.0" (super user).
That's what I did: ------------------------------------------------------------------------
Goofy pks04 sd/AA:makdir A1
Goofy pks04 sd/AA:dir-e
Directory of . 15:19:41
Owner Last modified Attributes Sector Bytecount Name
------- ------------- ---------- ------ --------- ----
0.0 21/11/23 1519 d-ewrewr 800 64 A1
Goofy pks04 sd/AA:attr a1 -nenrnwnpenprnpw
d------- a1
Goofy pks04 sd/AA:makdir A1/C1
makdir: can't make "A1/C1".
Error #000:214 (E$FNA) File not accessible.
An attempt to open a file failed. The file was found, but is
inaccessible
in the requested mode. Check the file's owner ID and access
attributes.
Goofy pks04 sd/AA:attr a1 -r
d------r a1
Goofy pks04 sd/AA:makdir A1/C1
Goofy pks04 sd/AA:dir-er
Directory of . 15:21:14
Owner Last modified Attributes Sector Bytecount Name
------- ------------- ---------- ------ --------- ----
0.0 21/11/23 1519 d------r 800 96 A1
Directory of A1 15:21:14
Owner Last modified Attributes Sector Bytecount Name
------- ------------- ---------- ------ --------- ----
0.0 21/11/23 1521 d-ewrewr 12B0 64 C1
Directory of A1/C1 15:21:14
Owner Last modified Attributes Sector Bytecount Name
------- ------------- ---------- ------ --------- ----
Goofy pks04 sd/AA: ------------------------------------------------------------------------
Seems strange: no write permission but created a new directory, means
has _written_ to this write-protected directory.
But it's a bit more confusing:
When I don't use the "makdir" from Microware but my own tool which
includes a "_os_makdir()" call this will work. My tool writes to a
directory which has: ------------------------------------------------------------------------
Goofy pks04 sd/AA:dir-e
Directory of . 15:39:42
Owner Last modified Attributes Sector Bytecount Name
------- ------------- ---------- ------ --------- ----
0.0 21/11/23 1519 d------- 800 160 A1 ------------------------------------------------------------------------
This behavior is independant of the diskcache. I tested with my hard
disk (diskcache enabled) and the RAM disk (diskcache disabled).