diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-06-08 05:35:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-06-08 05:35:33 +0000 |
commit | fa6297750be6a477695b4004688ec8a647c90f18 (patch) | |
tree | bc594950c85ccf3afe275008eb024bb29c6050d0 /sys/isofs/udf/udf_subr.c | |
parent | 6734ce8e36b95fafe001d2956bb65942845607be (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/udf/udf_subr.c')
-rw-r--r-- | sys/isofs/udf/udf_subr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/isofs/udf/udf_subr.c b/sys/isofs/udf/udf_subr.c index 531c9697b1d..1c24b583be7 100644 --- a/sys/isofs/udf/udf_subr.c +++ b/sys/isofs/udf/udf_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udf_subr.c,v 1.12 2007/06/05 00:38:22 deraadt Exp $ */ +/* $OpenBSD: udf_subr.c,v 1.13 2007/06/08 05:35:32 deraadt Exp $ */ /* * Copyright (c) 2006, Miodrag Vallat @@ -167,6 +167,7 @@ udf_disklabelspoof(dev_t dev, void (*strat)(struct buf *), DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); lp->d_partitions[RAW_PART].p_fstype = FS_UDF; lp->d_npartitions = RAW_PART + 1; + lp->d_version = 1; lp->d_bbsize = 8192; /* Fake. */ lp->d_sbsize = 64*1024; /* Fake. */ |