From fc3434931ffeb73215b87aae4f0a87bb303b2eb8 Mon Sep 17 00:00:00 2001 From: dfr Date: Tue, 12 Oct 1999 20:04:46 +0000 Subject: Allow this driver to open disks with no labels (CDROMS don't). --- sys/boot/alpha/libalpha/srmdisk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/boot') diff --git a/sys/boot/alpha/libalpha/srmdisk.c b/sys/boot/alpha/libalpha/srmdisk.c index 5fb0379..9c2ce09 100644 --- a/sys/boot/alpha/libalpha/srmdisk.c +++ b/sys/boot/alpha/libalpha/srmdisk.c @@ -279,9 +279,10 @@ bd_open(struct open_file *f, ...) lp = (struct disklabel *) (od->od_buf + LABELOFFSET); if (lp->d_magic != DISKMAGIC) { D(printf("bd_open: no disklabel\n")); +#if 0 error = ENOENT; goto out; - +#endif } else if (dev->d_kind.srmdisk.partition >= lp->d_npartitions) { /* -- cgit v1.1