diff options
author | dfr <dfr@FreeBSD.org> | 1999-10-12 20:04:46 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1999-10-12 20:04:46 +0000 |
commit | fc3434931ffeb73215b87aae4f0a87bb303b2eb8 (patch) | |
tree | 8070eba85b8757c455f7f135e9c581522f21465b /sys/boot | |
parent | ca616e7d07413dc8ccef29cc95871f86542d5779 (diff) | |
download | FreeBSD-src-fc3434931ffeb73215b87aae4f0a87bb303b2eb8.zip FreeBSD-src-fc3434931ffeb73215b87aae4f0a87bb303b2eb8.tar.gz |
Allow this driver to open disks with no labels (CDROMS don't).
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/alpha/libalpha/srmdisk.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { /* |