diff --git a/sys/kern/subr_diskslice.c b/sys/kern/subr_diskslice.c index d02b6b29cfbe..83590e674d74 100644 --- a/sys/kern/subr_diskslice.c +++ b/sys/kern/subr_diskslice.c @@ -43,7 +43,7 @@ * from: wd.c,v 1.55 1994/10/22 01:57:12 phk Exp $ * from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91 * from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $ - * $Id: subr_diskslice.c,v 1.57 1998/08/13 08:09:07 dfr Exp $ + * $Id: subr_diskslice.c,v 1.58 1998/08/23 20:16:34 phk Exp $ */ #include "opt_devfs.h" @@ -464,7 +464,7 @@ dsioctl(dname, dev, cmd, data, flags, sspp, strat, setgeom) (u_long)openmask); /* XXX why doesn't setdisklabel() check this? */ if (error == 0 && lp->d_partitions[RAW_PART].p_offset != 0) - error = EINVAL; + error = EXDEV; if (error == 0) { if (lp->d_secperunit > sp->ds_size) error = ENOSPC;