The call to disk_resize causes a panic if DIAGNOSTIC is set.

Coping with that while the finest minds of our generation
figure out why.
This commit is contained in:
Matt Jacob 2012-07-14 02:59:11 +00:00
parent 0b59717b4b
commit 3d4e15d43e

View File

@ -2645,7 +2645,10 @@ dasetgeom(struct cam_periph *periph, uint32_t block_len, uint64_t maxsector,
else else
softc->disk->d_flags &= ~DISKFLAG_CANDELETE; softc->disk->d_flags &= ~DISKFLAG_CANDELETE;
/* Currently as of 6/13/2012, panics if DIAGNOSTIC is set */
#ifndef DIAGNOSTIC
disk_resize(softc->disk); disk_resize(softc->disk);
#endif
} }
static void static void