Verified by: pst
> The DIOCSBAD ioctl sets a bad block table (is almost suredly called by
> the bad144 utility) and changes the memory-resident bad block table. The
> problem is that bad144intern() is not called after the "disk" structure has
> been changed, so that the internal bad144 table will become out-of-sync with
> the one in the disk structure.
* SUCH DAMAGE.
*
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
* SUCH DAMAGE.
*
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
- * $Id: wd.c,v 1.38 1994/04/20 07:06:44 davidg Exp $
+ * $Id: wd.c,v 1.39 1994/06/07 01:36:39 phk Exp $
case DIOCSBAD:
if ((flag & FWRITE) == 0)
error = EBADF;
case DIOCSBAD:
if ((flag & FWRITE) == 0)
error = EBADF;
du->dk_bad = *(struct dkbad *)addr;
du->dk_bad = *(struct dkbad *)addr;