Subject: Re: trouble labeling floppies?
To: None <brad@fcr.com, current-users@sun-lamp.cs.berkeley.edu>
From: None <mycroft@gnu.ai.mit.edu>
List: current-users
Date: 07/30/1994 20:49:00
Whoever wrote the original floppy labeling code apparently didn't grok
the difference between DIOCSDINFO and DIOCWDINFO.  I just fixed this.

When I tested this recently, I was only writing new boot blocks, which
seems to work with the old code.

Anyway, here's my change, which should show up on lamp eventually:

===================================================================
RCS file: /b/source/CVS/src/sys/arch/i386/isa/fd.c,v
retrieving revision 1.49
diff -c -2 -r1.49 fd.c
*** 1.49	1994/07/26 19:36:06
--- fd.c	1994/07/31 00:46:30
***************
*** 1152,1156 ****
  		return 0;
  
- 	case DIOCSDINFO:
  	case DIOCWDINFO:
  		if ((flag & FWRITE) == 0)
--- 1152,1155 ----
***************
*** 1165,1170 ****
  
  	default:
! 		return EINVAL;
  	}
  #ifdef DIAGNOSTIC
  	panic("fdioctl: impossible");
--- 1164,1170 ----
  
  	default:
! 		return ENOTTY;
  	}
+ 
  #ifdef DIAGNOSTIC
  	panic("fdioctl: impossible");


------------------------------------------------------------------------------