[comp.os.minix] STFLOPPY.C Problem Fix

karl@aicchi.UUCP (Ken Lightbody) (03/12/89)

  Below is minor diff to stfloppy.c which corrects my problem with
  getting error -22 messages when trying to write to floppy and
  read after write (RD_AFTER_WT) option selected.

--------------------- Start of Diff --------------------------------------
243c243
< PRIVATE  char lbuffer[SECTOR_SIZE * 2];	/* used for read after write */
---
> PRIVATE  char lbuffer[SECTOR_SIZE];	/* used for read after write */
295,296c295,296
< printf("Read after write failed device=%x err cod=%d  sz=%d pos=%ld\n",
<  mp->DEVICE,r,xfer_size,position);
---
> printf("Read after write failed device=%x err cod=%d  sz=%d pos=%ld\n",
>  mp->DEVICE,r,position);
-------------------- End of Diff ------------------------------------------

Note that this applies to stfloppy.c ver 1.1 with the patches for NAVENEWFLOP
and HAVEFORMAT applied first.  As far as I can tell the proc_addr routine
wants the logical block size of 1024 and not the physical size of 512. The
printf change is to just correct the number of parameters should the read 
after write fail.

-- 
	Ken Lightbody	Analysts International Corporation (Chicago)
	usenet:		...{hcfeams,homebru,vfrot}!aicchi!karl
	GEnie:		KLIGHTBODY
	voice:		(312) 576-6298