Welcome, Guest. Please login or register.

Author Topic: Smart File System issues  (Read 6184 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline alexh

  • Hero Member
  • *****
  • Join Date: Apr 2005
  • Posts: 3644
    • Show all replies
    • http://thalion.atari.org
Re: Smart File System issues
« on: January 06, 2011, 10:19:20 PM »
Quote from: XDelusion;603812
Changed the Max speed to 0x1FFFE. Saved, etc.
Maxtransfer (which represents the maximum amount of data to transfer per command NOT speed!) should be set to either 0x1FE00 or 0xFE00 not 0x1FFFE

I wrote a comprehensive paragraph on why max transfer has to be set to these values many times before but I'll reiterate it.

The original IDE spec had an 8-bit sector count field per command

((2^8)-1 * 512) = 0x1FE00

However windows usually only deals with sector count values upto 7 bits and lots of CF cards are not designed to handle single commands with transfers larger than that.

((2^7)-1 * 512) = 0xFE00
« Last Edit: January 06, 2011, 10:25:26 PM by alexh »
 

Offline alexh

  • Hero Member
  • *****
  • Join Date: Apr 2005
  • Posts: 3644
    • Show all replies
    • http://thalion.atari.org
Re: Smart File System issues
« Reply #1 on: January 07, 2011, 12:14:22 AM »
Maxtransfer has nothing to do with file systems so the fact you are using SFS is irrelevant. It is 100% to do with the medium you are storing to and the device drivers you are using. Nothing more.

A value of 0xFFFE00 is very unusual.

For that to work with an Amiga (A600/A1200/A4000) IDE interface with a disk or CF card both the device and the driver must support a command set known as ATA-6. In that command set they introduced 16-bit sector count. I very much doubt that scsi.device for amiga IDE supports 16-bit sector counts! I'm pretty sure that is why data corruption occurs.

If it did then you may as well use ((2^16)-1*512) = 0x1FFFE00 if you felt like it.

You sure you're using Amiga native IDE & a CF card?

If you are using a SCSI interface then it is a whole different ball game!
« Last Edit: January 07, 2011, 12:24:23 AM by alexh »