usb_mass problem

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
radad
Posts: 246
Joined: Wed May 19, 2004 4:54 pm
Location: Melbourne, Australia

usb_mass problem

Post by radad »

I was having a problem with my usb drive in that there were lots of directories with no name. I tracked it down to the fat_getDirentry function in fat_driver.c. It was regarding the line which determines the last entry:

Code: Select all

	//detect last entry - all zeros
	if (dsfn->name[0] == 0 && dsfn->name[1] == 0) {
		return 0;
	}
The comment suggest that the name should have all zeros, the code only checks the first two. On my my usb drive the first entry was zero but the second entry was FF. Is it the file system on my drive that is corrupt? Or is this assumption in usb_mass incorrect?
EEUG
Posts: 136
Joined: Fri May 13, 2005 4:49 am
Location: The Netherlands

Post by EEUG »

...could you try usb_mass from SMS project? There's a modified binary (in SMS_Data.c), so you can try 'SifExecModuleBuffer' on it to see if you'll get any further (or just launch SMS to check if it will hang with your USB device).
Best regards
Eugene
ole
Posts: 92
Joined: Sat May 08, 2004 11:14 pm
Location: Czech Republic

Post by ole »

It's most likely a bug - I will fix it later. Thanks for reporting.
Post Reply