Partition Manager feedback

General development discussion not covered by a specific forum
User avatar
IanJeffray
Posts: 162
Joined: Mon Jan 18, 2021 1:51 pm

Re: Partition Manager feedback

Post by IanJeffray »

JonAbbott wrote: Fri Jul 07, 2023 3:04 pm have you changed the attached devices?
Actually, I don't think the drive maps were configured before I ran the latest version, but I've still been unable to replicate the issue with the latest version no matter what I try. Odd.
JonAbbott
Posts: 2957
Joined: Thu Apr 11, 2013 12:13 pm
Location: Essex
Contact:

Re: Partition Manager feedback

Post by JonAbbott »

IanJeffray wrote: Fri Jul 07, 2023 8:39 pm
JonAbbott wrote: Fri Jul 07, 2023 3:04 pm have you changed the attached devices?
Actually, I don't think the drive maps were configured before I ran the latest version, but I've still been unable to replicate the issue with the latest version no matter what I try. Odd.
We'll have to keep a eye on that then. I can't think why SCSI_Initialise 2/3 would hard-lock a machine, perhaps it was a particular SOE such as software run before running PM or a background task accessing a SCSI disc at the same time?

The other possibility is if the timeout period was set to zero by another utility and not set back - that would give the appearance of a hard-lock. I don't think I'm implicitly setting the timeout around the disc scan, so I'll add that just in case.
User avatar
IanJeffray
Posts: 162
Joined: Mon Jan 18, 2021 1:51 pm

Re: Partition Manager feedback

Post by IanJeffray »

1.00 on an A4000 that has a Wizzo ROM and 4GB CF card with 8 partitions - which Wizzo moans "extra partitions ignored" on startup (because Wizzo does only support 4 partitions) only shows as 4 partitions in PM, but 8 show up as expected in IDEFormat. PM also shows the extra space as "Unusable" which seems odd.

debug.txt:

Code: Select all

PartMgr v1.00 23/07/23 DEBUG
OS Version=311
FileCore Version=241
FileSwitch Version=208
ADFS found
IDEFS found, detected as Wizzo v3.15
BASIC END=49194

read_drives
===========

IDEFS
-----
Potentially 2 physical drives

Trying DiscOp 3 against IDEFS:0
IDEFS discop_ICS(0,3,&0,&0,..,&0)
IDEFS_DiscOp+&3F,,3,&0,..,&0,,0
DiscOp 3 response: DiscRec
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................


DiscOp 3/IDENTIFY response:
Word   :    0    1    2    3    4    5    6    7    8    9
000000 : 044A 1F1C 0000 0010 7E00 0200 003F 007A 7E40 0000 J...........?.z.@...
000010 : 3037 4435 3037 3943 3131 3132 3030 3030 3332 3838 705D70C9112100002388
000020 : 0002 0002 0004 5665 7232 2E33 3520 4346 2043 6172 ......eV2r3. 5FCC ra
000030 : 6420 2020 2020 2020 2020 2020 2020 2020 2020 2020  d                  
000040 : 2020 2020 2020 2020 2020 2020 2020 0001 0000 0B00               ......
000050 : 0000 0200 0000 0007 1F1C 0010 003F 7E40 007A 0101 ............?.@.z...
000060 : 7E40 007A 0000 0407 0003 0078 0078 0078 0078 0000 @.z.......x.x.x.x...
000070 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 ....................
000080 : 0000 0000 7003 5004 4000 7000 1004 4000 003F 001E .....p.P.@.p...@?...
000090 : 001E 0000 FFFE 0000 0000 0000 0000 0000 0000 0000 ....................
000100 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 ....................
000110 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 ....................
000120 : 0000 0000 0000 0000 0000 0000 0000 0000 0021 0000 ................!...
000130 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 ....................
000140 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 ....................
000150 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 ....................
000160 : 1000 0000 0000 0092 0000 0000 0000 0000 0000 0000 ....................
000170 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 ....................
000180 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 ....................
000190 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 ....................
000200 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 ....................
000210 : 0000 0000 0000 0000 0000 0000 0000 0001 0000 0000 ....................
000220 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 ....................
000230 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 ....................
000240 : 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 ....................
000250 : 0000 0000 0000 0000 0000 48A5                     ..........H.

Magnetic media drive
Geometry in words 54-58 are reported as valid
  Cylinders=7964 Heads=16 Sectors=63
Drive supports 28-bit LBA addressing
Physical drive is IDEFS 0
Model      =CF Card
LBA Size   =512
Size in LBA=&0007A7E40
Removable  =0

add_partitions_IDEFS 0
======================
IDEFS discop_ICS(0,1,&0,&0,..,&400)
ICS DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 00 00 00 00 00 00 00 00 00 00 00 00   .?..............
&000010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

IDEFS_DiscOp+&3F,,1,&0,..,&400,,0
Partition table master
Address :        0        4        8        C
&000000 : 00000000 000F9800 000F9800 000F9800 ................
&000010 : 001F3000 000F9800 002EC800 000F9800 .0..............
&000020 : 003E6000 000F9800 004DF800 000F9800 .`>.......M.....
&000030 : 005D9000 000F9800 006D2800 000D5640 ..]......(m.@V..
&000040 : 00000000 00000000 00000000 00000000 ................
&000050 : 00000000 00000000 00000000 00000000 ................
&000060 : 00000000 00000000 00000000 00000000 ................
&000070 : 00000000 00000000 00000000 00000000 ................
&000080 : 00000000 00000000 00000000 00000000 ................
&000090 : 00000000 00000000 00000000 00000000 ................
&0000A0 : 00000000 00000000 00000000 00000000 ................
&0000B0 : 00000000 00000000 00000000 00000000 ................
&0000C0 : 00000000 00000000 00000000 00000000 ................
&0000D0 : 00000000 00000000 00000000 00000000 ................
&0000E0 : 00000000 00000000 00000000 00000000 ................
&0000F0 : 00000000 00000000 00000000 00000000 ................
&000100 : 00000000 00000000 00000000 00000000 ................
&000110 : 00000000 00000000 00000000 00000000 ................
&000120 : 00000000 00000000 00000000 00000000 ................
&000130 : 00000000 00000000 00000000 00000000 ................
&000140 : 00000000 00000000 00000000 00000000 ................
&000150 : 00000000 00000000 00000000 00000000 ................
&000160 : 00000000 00000000 00000000 00000000 ................
&000170 : 00000000 00000000 00000000 00000000 ................
&000180 : 00000000 00000000 00000000 00000000 ................
&000190 : 00000000 00000000 00000000 00000000 ................
&0001A0 : 00000000 00000000 00000000 00000000 ................
&0001B0 : 00000000 00000000 00000000 00000000 ................
&0001C0 : 00000000 00000000 00000000 00000000 ................
&0001D0 : 00000000 00000000 00000000 00000000 ................
&0001E0 : 00000000 00000000 00000000 00000000 ................
&0001F0 : 00000000 00000000 007A7E40 50617E31 ........@.z.1.aP

Partition table backup
Address :        0        4        8        C
&000000 : 00000000 00000000 00000000 00000000 ................
&000010 : 00000000 00000000 00000000 00000000 ................
&000020 : 00000000 00000000 00000000 00000000 ................
&000030 : 00000000 00000000 00000000 00000000 ................
&000040 : 00000000 00000000 00000000 00000000 ................
&000050 : 00000000 00000000 00000000 00000000 ................
&000060 : 00000000 00000000 00000000 00000000 ................
&000070 : 00000000 00000000 00000000 00000000 ................
&000080 : 00000000 00000000 00000000 00000000 ................
&000090 : 00000000 00000000 00000000 00000000 ................
&0000A0 : 00000000 00000000 00000000 00000000 ................
&0000B0 : 00000000 00000000 00000000 00000000 ................
&0000C0 : 00000000 00000000 00000000 00000000 ................
&0000D0 : 00000000 00000000 00000000 00000000 ................
&0000E0 : 00000000 00000000 00000000 00000000 ................
&0000F0 : 00000000 00000000 00000000 00000000 ................
&000100 : 00000000 00000000 00000000 00000000 ................
&000110 : 00000000 00000000 00000000 00000000 ................
&000120 : 00000000 00000000 00000000 00000000 ................
&000130 : 00000000 00000000 00000000 00000000 ................
&000140 : 00000000 00000000 00000000 00000000 ................
&000150 : 00000000 00000000 00000000 00000000 ................
&000160 : 00000000 00000000 00000000 00000000 ................
&000170 : 00000000 00000000 00000000 00000000 ................
&000180 : 00000000 00000000 00000000 00000000 ................
&000190 : 00000000 00000000 00000000 00000000 ................
&0001A0 : 00000000 00000000 00000000 00000000 ................
&0001B0 : 00000000 00000000 00000000 00000000 ................
&0001C0 : 00000000 00000000 00000000 00000000 ................
&0001D0 : 00000000 00000000 00000000 00000000 ................
&0001E0 : 00000000 00000000 00000000 00000000 ................
&0001F0 : 00000000 00000000 00000000 00000000 ................

CRC1=50617E31 CRC2=50617274
IDEFS ICS Backup Partition table doesn't match master copy
IDEFS ICS Master Partition table valid
Max supported partitions: 4
Partition 0 valid
Start LBA     =&000000000
Size in LBA   =&0000F9800
IDEFS discop_ICS(0,1,&6,&0,..,&200)
ICS DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 00 00 00 00 00 00 00 00 00 00 00 00   .?..............
&000010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

IDEFS_DiscOp+&3F,,1,&6,..,&200,,0

Boot DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 0F 0B 00 00 01 3F 20 00 7F 02 00 00   .?.......? .....
&000010 : 00 00 30 1F 00 00 00 00 00 00 00 00 00 00 00 00   ..0.............
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05   ................

RISC iX is supported on this filesystem (type=0)
Full DiscRec is in Zone 31 at LBA &7A900
LBA size in bits=4096 Log2=9
Zone spare bits=32
DiscRec size in bits=480
Log2 bytes per map bit=11

IDEFS discop_ICS(0,1,&7A900,&0,..,&200)
ICS DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 00 00 00 00 00 00 00 00 00 00 00 00   .?..............
&000010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

IDEFS_DiscOp+&3F,,1,&7A900,..,&200,,0

Full DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 8A 08 82 03 09 3F 10 00 0F 0B 00 02 01 3F 20 00   .....?.......? .
&000010 : 7F 02 00 00 00 00 30 1F 3B 1B 41 34 4B 5F 34 20   ......0.;.A4K_4 
&000020 : 20 20 20 20 00 00 04 00 00 00 00 00 00 00 00 00       ............
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

Searching for mounted drive IDEFS::A4K_4
Matching FileCore disc found as IDEFS::4
OS_FSControl 55 failed, trying 49
Free=&0000B9594
OS Size in LBA=&0000F9800

Partition 1 valid
Start LBA     =&0000F9800
Size in LBA   =&0000F9800
IDEFS discop_ICS(0,1,&F9806,&0,..,&200)
ICS DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 00 00 00 00 00 00 00 00 00 00 00 00   .?..............
&000010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

IDEFS_DiscOp+&3F,,1,&F9806,..,&200,,0

Boot DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 0F 0B 00 00 01 3F 20 00 7F 02 00 00   .?.......? .....
&000010 : 00 00 30 1F 00 00 00 00 00 00 00 00 00 00 00 00   ..0.............
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05   ................

RISC iX is supported on this filesystem (type=0)
Full DiscRec is in Zone 31 at LBA &7A900
LBA size in bits=4096 Log2=9
Zone spare bits=32
DiscRec size in bits=480
Log2 bytes per map bit=11

IDEFS discop_ICS(0,1,&174100,&0,..,&200)
ICS DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 00 00 00 00 00 00 00 00 00 00 00 00   .?..............
&000010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

IDEFS_DiscOp+&3F,,1,&174100,..,&200,,0

Full DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 93 08 82 00 09 3F 10 00 0F 0B 00 00 01 3F 20 00   .....?.......? .
&000010 : 7F 02 00 00 00 00 30 1F 96 D1 41 34 4B 5F 35 20   ......0...A4K_5 
&000020 : 20 20 20 20 00 00 05 00 00 00 00 00 00 00 00 00       ............
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

Searching for mounted drive IDEFS::A4K_5
Matching FileCore disc found as IDEFS::5
OS_FSControl 55 failed, trying 49
Free=&0000F8320
OS Size in LBA=&0000F9800

Partition 2 valid
Start LBA     =&0001F3000
Size in LBA   =&0000F9800
IDEFS discop_ICS(0,1,&1F3006,&0,..,&200)
ICS DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 00 00 00 00 00 00 00 00 00 00 00 00   .?..............
&000010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

IDEFS_DiscOp+&3F,,1,&1F3006,..,&200,,0

Boot DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 0F 0B 00 00 01 3F 20 00 7F 02 00 00   .?.......? .....
&000010 : 00 00 30 1F 00 00 00 00 00 00 00 00 00 00 00 00   ..0.............
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05   ................

RISC iX is supported on this filesystem (type=0)
Full DiscRec is in Zone 31 at LBA &7A900
LBA size in bits=4096 Log2=9
Zone spare bits=32
DiscRec size in bits=480
Log2 bytes per map bit=11

IDEFS discop_ICS(0,1,&26D900,&0,..,&200)
ICS DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 00 00 00 00 00 00 00 00 00 00 00 00   .?..............
&000010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

IDEFS_DiscOp+&3F,,1,&26D900,..,&200,,0

Full DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : BF 08 82 FF 09 3F 10 00 0F 0B 00 00 01 3F 20 00   .....?.......? .
&000010 : 7F 02 00 00 00 00 30 1F 3F D5 41 34 4B 5F 36 20   ......0.?.A4K_6 
&000020 : 20 20 20 20 00 00 06 00 00 00 00 00 00 00 00 00       ............
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

Searching for mounted drive IDEFS::A4K_6
Matching FileCore disc found as IDEFS::6
OS_FSControl 55 failed, trying 49
Free=&0000F973C
OS Size in LBA=&0000F9800

Partition 3 valid
Start LBA     =&0002EC800
Size in LBA   =&0000F9800
IDEFS discop_ICS(0,1,&2EC806,&0,..,&200)
ICS DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 00 00 00 00 00 00 00 00 00 00 00 00   .?..............
&000010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

IDEFS_DiscOp+&3F,,1,&2EC806,..,&200,,0

Boot DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 0F 0B 00 00 01 3F 20 00 7F 02 00 00   .?.......? .....
&000010 : 00 00 30 1F 00 00 00 00 00 00 00 00 00 00 00 00   ..0.............
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05   ................

RISC iX is supported on this filesystem (type=0)
Full DiscRec is in Zone 31 at LBA &7A900
LBA size in bits=4096 Log2=9
Zone spare bits=32
DiscRec size in bits=480
Log2 bytes per map bit=11

IDEFS discop_ICS(0,1,&367100,&0,..,&200)
ICS DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 09 3F 10 00 00 00 00 00 00 00 00 00 00 00 00 00   .?..............
&000010 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000020 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

IDEFS_DiscOp+&3F,,1,&367100,..,&200,,0

Full DiscRec:
Address :  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
&000000 : 61 08 82 FF 09 3F 10 00 0F 0B 00 00 01 3F 20 00   a....?.......? .
&000010 : 7F 02 00 00 00 00 30 1F AE B2 41 34 4B 5F 37 20   ......0...A4K_7 
&000020 : 20 20 20 20 00 00 07 00 00 00 00 00 00 00 00 00       ............
&000030 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................

Searching for mounted drive IDEFS::A4K_7
Matching FileCore disc found as IDEFS::7
OS_FSControl 55 failed, trying 49
Free=&0000F973C
OS Size in LBA=&0000F9800


Adding unallocated space
 Start of area=0003E6000
    Drive size=0007A7E40
Max accessible=100000000
Unusable area=0003E6000 size 0003C1E40

Unallocated block
-----------------
  Start LBA = &03E6000
Size in LBA = &03C1E40

BASIC END=4A4A4
JonAbbott
Posts: 2957
Joined: Thu Apr 11, 2013 12:13 pm
Location: Essex
Contact:

Re: Partition Manager feedback

Post by JonAbbott »

IanJeffray wrote: Mon Jul 24, 2023 12:28 am 1.00 on an A4000 that has a Wizzo ROM and 4GB CF card with 8 partitions - which Wizzo moans "extra partitions ignored" on startup (because Wizzo does only support 4 partitions) only shows as 4 partitions in PM, but 8 show up as expected in IDEFormat. PM also shows the extra space as "Unusable" which seems odd.
There's no right answer here.

As you say, Wizzo supports 4 partitions making the rest of the drive unusable...so what PM is showing you is "technically" correct according to the underlying filesystem.

I did look at supporting cross-filesystem drives for IDEFS (ie displaying a drive from another IDEFS to the one that's hosting it), but with the amount of variation in partition structures and SWI's, it became too complicated.

For IDEFS, I opted to apply strict filesystem limits. PM should show what the underlying filesystem supports.

As Wizzo is a derivative of Baildon/ICS which supports 8 partitions I could allow up to 8 partitions on Wizzo - but then I'd have to add conditional checks to all filesystem to warn the user if they're about to do something that ends up with an unusable drive.

On the flip-side, if someone moves a drive from Baildon/ICS IDEFS to Wizzo and wasn't aware there are more than 4 partitions - they might inadvertently modify the fourth partition and lose the later partitions. The only correct answer here is to make the whole drive read-only if the drive exceeds the filesystem limits.

What do you think PM should do, considering it needs to cover both reading and writing partitions?
User avatar
IanJeffray
Posts: 162
Joined: Mon Jan 18, 2021 1:51 pm

Re: Partition Manager feedback

Post by IanJeffray »

JonAbbott wrote: Mon Jul 24, 2023 9:34 am What do you think PM should do, considering it needs to cover both reading and writing partitions?
I think PM should do what IDEFormat does, which is support partitioning of up to 8 partitions.
Wizzo "knows" there are more partitions - per its startup message - so that's also why I think it's weird for PM not to show them.
I'm not sure there's even any point in warning the user they're creating more partitions than the FS can handle. I'll double-down on that because I'm also still hoping I/someone might eventually tweak Wizzo (and/or ZIDEFS) to support 8 partitions at some point, so PM having pre-determined expectations of what an FS can support would fall foul of that.
/tuppence.
JonAbbott
Posts: 2957
Joined: Thu Apr 11, 2013 12:13 pm
Location: Essex
Contact:

Re: Partition Manager feedback

Post by JonAbbott »

IanJeffray wrote: Mon Jul 24, 2023 10:51 am I think PM should do what IDEFormat does, which is support partitioning of up to 8 partitions.
Edit FS.IDEFS and change PROCadd_drives_IDEFS_Baildon(4) to 8 and see if it works how you expect it too.
JonAbbott
Posts: 2957
Joined: Thu Apr 11, 2013 12:13 pm
Location: Essex
Contact:

Re: Partition Manager feedback

Post by JonAbbott »

Now released.

Changes
  • Fixed an issue when dismounting logical drives, where it might report open files on a different physical disc to the drive being dismounted
  • When checking if an MBR partition size exceeds the drive limits, it now ignores "out by 1" errors where the partition exceeds the drive size by 1 sector (affects drives formatted under macOS)
  • Increased the maximum partitions on Wizzo to 8. Wizzo supports a maximum of 4 partitions and will alert if more than 4 partitions exist
  • Implemented SCSI REPORT LUNs command to support additional LUN's
  • SCSIFS now checks the SCSIFS Module version to determine if Service_SCSIDetached/SCSIAttached are supported
  • UpCall handler was not claiming UpCall 1/2 correctly
  • SCSIOp's were not claiming/releasing the SCSI device correctly, causing drive icons to disappear after a drive operation
  • SCSI read op's were not being tagged as "Read safe" correctly
  • FAT partitions are now rechecked for a FAT32FS mount when being dismounted
  • Initialising a drive with MBR partitioning was not erasing enough sectors to delete an existing full-disc FileCore drive
  • If SCSI REPORT LUNs fails, fallback to trying consecutive LUN's until the first failure
  • Added some additional debug output to capture errors and download issues
  • Added a 1 second timeout around SCSI REPORT LUNs command
  • Moved SCSI command functions that are shared by SCSIFS and MassFS to a seperate library
  • Switched MassFS from FileCore_SectorOp to SCSI ops via MassFS_DriveOp, to support back to MassFS v1.x
  • decoding an IDE IDENTIFY now only sets the physical device if it's currently blank. This allows filesystems with bespoke numbering schemes to set the physical name before performing the IDENTIFY decode
  • SCSIFS now updates the drive scan progress bar before touching a drive, to avoid it looking like the previous filesystem is on a timeout
  • Added Filesystem Module version and CDFS timeout to the debug output
  • Update SparkFS link to 1.55-2
  • If a SCSI device responds NOT READY, it is now sent TEST UNIT READY/START UNIT to power up for 3 seconds
  • Removed most of the blocking dialogues when downloading files and changed to unlimited retries. If no data is received within 5 seconds, a Retry button is now available to cancel and retry the current download
  • Reduced the Wimp poll period when no data is received from the remote host to speed up downloads
  • Corrected an error when trying to write an ICS partition table
  • FAT determination now ignores the FAT trail signature and performs additional pre-checks to ensure key values are within valid ranges, to avoid overflow errors when calculating CountofClusters. If the FAT trail signature is missing, its now only noted in the debug log (fixes detection of pico FAT partitions)
  • Error reporting on Wimp pre 3.50 was not waiting for response before returning to the code, causing the Wimp to crash in random ways
  • Fixed a potential issue when writing the defect list to an ICS drive where it was not zeroing the data block, prior to constructing the new defect list
  • When initialising a drive, the drive partition type was being set after the partition table was written, so couldn't be used during initialisaion
Known issues, new to this build
  • Alsystems Power-Tec SCSI appears to ignore LUNs, causing each device to be mirrored 8 times
To turn this into the Lite version for RISC OS 3.1x. Delete the !PartMgr.Pi folder and everything in !PartMgr.Modules except for BASICPM
paintings
Posts: 8
Joined: Mon Jul 24, 2023 1:40 pm

Re: Partition Manager feedback

Post by paintings »

PartMgr 1.01 testing had its ups and downs.

Good: FAT32 drives initialised on macOS no longer report a size discrepancy.

Less good: "4-in-1" SD card readers still won't appear unless the SD card is plugged into slot 0.
Log file "1-CardReader.txt" shows what happens when the SD card is in slot 1. For the record, "devices.txt" shows the output from *USBDevices and SCSIDevices, in case it helps.

Bad: Working on a SCSI device (the aforementioned card reader with an SD card in slot 0) misbehaved much as before, with a few minor differences.

At the end of the chosen operation (create a FAT partition on the card) all SCSI icons disappeared from the icon bar and the prompt "Please insert disc SSD4" appeared.

Clicking Cancel on the above prompt produced the error "Internal error, no stack for trap handler: Internal error: abort on data transfer at &FC35CD98, pc=FC1A6B64: registers at 000150FC".

A call to *Modules showed that SCSIDriver, SCSISoftUSB, SCSIFS and SCSIFiler were all active.

The corresponding log file is "2-Dismount.txt".

All log files should be in the attached ZIP file.
Attachments
26July.zip
(31.21 KiB) Downloaded 207 times
JonAbbott
Posts: 2957
Joined: Thu Apr 11, 2013 12:13 pm
Location: Essex
Contact:

Re: Partition Manager feedback

Post by JonAbbott »

paintings wrote: Wed Jul 26, 2023 12:45 pm Less good: "4-in-1" SD card readers still won't appear unless the SD card is plugged into slot 0.
I'll have to put my thinking cap on to figure out how to resolve that issue as the SCSISoftUSB doesn't appear to translate SCSI REPORT LUNs to the USB command Get Max LUN - so PM doesn't know if the device has additional logical units.
paintings wrote: Wed Jul 26, 2023 12:45 pm Bad: Working on a SCSI device (the aforementioned card reader with an SD card in slot 0) misbehaved much as before, with a few minor differences.

At the end of the chosen operation (create a FAT partition on the card) all SCSI icons disappeared from the icon bar and the prompt "Please insert disc SSD4" appeared.

Clicking Cancel on the above prompt produced the error "Internal error, no stack for trap handler: Internal error: abort on data transfer at &FC35CD98, pc=FC1A6B64: registers at 000150FC".
The Abort appears to be an issue in the ADFS/SDFS/SCSI Filer UpCall handler, which is triggering an unaligned Abort. I'll see if I can Repro it, so I can report it if it is a bug that needs fixing.

The SCSIFiler UpCall handler should not be entered in the way that's causing the Abort as PM should be issuing Service calls to detach/reattach the drive being modified. Having fixed that, I then noticed I'd managed to break the SCSI reserve code in the v1.00 release which was causing the drive icons to not reappear.

Hopefully the 1.01 27/07/23 build above will resolve both issues.
paintings
Posts: 8
Joined: Mon Jul 24, 2023 1:40 pm

Re: Partition Manager feedback

Post by paintings »

JonAbbott wrote: Thu Jul 27, 2023 1:43 pm Hopefully the 1.01 27/07/23 build above will resolve both issues.
SD card in slot 1 of card reader: Still not recognised. Oddly, PartMgr is now closing all open Filer windows on SSD4 when run: the SSD4 icon is still present on the icon bar so the windows can be reopened but it is disconcerting nonetheless. Log file "debug1.txt" attached.

Card moved to slot 0 of card reader. The Filer windows still closed, but there were no prompts to "insert disc SSD4" on deleting the partition so this represents a definite advance.

One oddity: I had previously opened a Filer window on the (now-deleted) FAT32 partition on the SD card in the card reader, and on clicking the drive icon this (presumably still-cached) directory display reappeared. Is this to be expected?
Attachments
debug1.txt.zip
(3.18 KiB) Downloaded 412 times
Post Reply