summaryrefslogtreecommitdiff
path: root/sys/isofs/cd9660/cd9660_vfsops.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-08 05:35:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-08 05:35:33 +0000
commitfa6297750be6a477695b4004688ec8a647c90f18 (patch)
treebc594950c85ccf3afe275008eb024bb29c6050d0 /sys/isofs/cd9660/cd9660_vfsops.c
parent6734ce8e36b95fafe001d2956bb65942845607be (diff)
all disklabels read from the kernel now always contain a total sector
size which is the REAL DISK SIZE. always. if a driver fails to set this right, please fix it. agreed with otto and krw
Diffstat (limited to 'sys/isofs/cd9660/cd9660_vfsops.c')
-rw-r--r--sys/isofs/cd9660/cd9660_vfsops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c
index 3ae09a46f71..0b1d075aba6 100644
--- a/sys/isofs/cd9660/cd9660_vfsops.c
+++ b/sys/isofs/cd9660/cd9660_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd9660_vfsops.c,v 1.45 2007/06/05 00:38:22 deraadt Exp $ */
+/* $OpenBSD: cd9660_vfsops.c,v 1.46 2007/06/08 05:35:32 deraadt Exp $ */
/* $NetBSD: cd9660_vfsops.c,v 1.26 1997/06/13 15:38:58 pk Exp $ */
/*-
@@ -525,6 +525,7 @@ iso_disklabelspoof(dev, strat, lp)
lp->d_npartitions = RAW_PART + 1;
lp->d_bbsize = 8192; /* fake */
lp->d_sbsize = 64*1024; /* fake */
+ lp->d_version = 1;
lp->d_magic = DISKMAGIC;
lp->d_magic2 = DISKMAGIC;