Welcome, Guest. Please login or register.

Author Topic: Question about FFS extension blocks on floppy disks  (Read 1527 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline ncafferkey

  • Sr. Member
  • ****
  • Join Date: Feb 2003
  • Posts: 388
    • Show all replies
Re: Question about FFS extension blocks on floppy disks
« on: July 15, 2010, 02:16:11 AM »
Assuming 512-byte blocks, and FFS rather than OFS, this C code should give it:

extblocks = (filesize / 512 - 1) / 72;
 

Offline ncafferkey

  • Sr. Member
  • ****
  • Join Date: Feb 2003
  • Posts: 388
    • Show all replies
Re: Question about FFS extension blocks on floppy disks
« Reply #1 on: August 10, 2010, 01:06:44 PM »
Quote from: PanterHZ;573482

So I guess that with OFS and 488 byte blocks, the following would then be true:

extblocks = (filesize / 488 - 1) / 66;


I think it would still be 72 rather than 66. The 488 vs 512 bytes issue only applies to data blocks AFAIK.