diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-10 07:31:21 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-10 07:31:21 +0000 |
commit | 1d01296adf269d46b50310ac298080e658f55fad (patch) | |
tree | 24312b22e64a54fec2e63eb02bd76dadd4219ce9 | |
parent | 1e7e55588485e0887abb14a6d5f5d5c5d93698d6 (diff) |
do not check SDEV_MEDIA_LOADED because it does not matter
-rw-r--r-- | sys/scsi/sd.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index 5f574feee58..f715be74e6d 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,5 +1,5 @@ -/* $OpenBSD: sd.c,v 1.13 1996/06/10 00:44:00 downsj Exp $ */ -/* $NetBSD: sd.c,v 1.100 1996/05/14 10:38:47 leo Exp $ */ +/* $OpenBSD: sd.c,v 1.14 1996/06/10 07:31:20 deraadt Exp $ */ +/* $NetBSD: sd.c,v 1.100.4.1 1996/06/04 23:14:08 thorpej Exp $ */ /* * Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved. @@ -986,9 +986,16 @@ sddump(dev, blkno, va, size) if (unit >= sd_cd.cd_ndevs || (sd = sd_cd.cd_devs[unit]) == NULL) return ENXIO; + /* + * XXX Can't do this check, since the media might have been + * XXX marked `invalid' by successful unmounting of all + * XXX filesystems. + */ +#if 0 /* Make sure it was initialized. */ if ((sd->sc_link->flags & SDEV_MEDIA_LOADED) != SDEV_MEDIA_LOADED) return ENXIO; +#endif /* Convert to disk sectors. Request must be a multiple of size. */ lp = sd->sc_dk.dk_label; |