any attention for some time.
ok otto@ as part of larger diff
-/* $OpenBSD: efidev.c,v 1.3 2022/08/12 20:17:46 stsp Exp $ */
+/* $OpenBSD: efidev.c,v 1.4 2022/09/01 13:45:26 krw Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
strncpy(label->d_packname, "fictitious", sizeof(label->d_packname));
DL_SETDSIZE(label, 100);
- label->d_bbsize = 2048;
- label->d_sbsize = 2048;
-
/* 'a' partition covering the "whole" disk */
DL_SETPOFFSET(&label->d_partitions[0], 0);
DL_SETPSIZE(&label->d_partitions[0], 100);
-/* $OpenBSD: efidev.c,v 1.3 2022/08/12 20:17:46 stsp Exp $ */
+/* $OpenBSD: efidev.c,v 1.4 2022/09/01 13:45:26 krw Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
strncpy(label->d_packname, "fictitious", sizeof(label->d_packname));
DL_SETDSIZE(label, 100);
- label->d_bbsize = 2048;
- label->d_sbsize = 2048;
-
/* 'a' partition covering the "whole" disk */
DL_SETPOFFSET(&label->d_partitions[0], 0);
DL_SETPSIZE(&label->d_partitions[0], 100);
-/* $OpenBSD: efidev.c,v 1.39 2022/08/12 20:17:46 stsp Exp $ */
+/* $OpenBSD: efidev.c,v 1.40 2022/09/01 13:45:26 krw Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
strncpy(label->d_packname, "fictitious", sizeof(label->d_packname));
DL_SETDSIZE(label, 100);
- label->d_bbsize = 2048;
- label->d_sbsize = 2048;
-
/* 'a' partition covering the "whole" disk */
DL_SETPOFFSET(&label->d_partitions[0], 0);
DL_SETPSIZE(&label->d_partitions[0], 100);
-/* $OpenBSD: diskprobe.c,v 1.26 2020/12/09 18:10:18 krw Exp $ */
+/* $OpenBSD: diskprobe.c,v 1.27 2022/09/01 13:45:26 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
sizeof(dip->disklabel.d_packname));
DL_SETDSIZE(&dip->disklabel, 100);
- dip->disklabel.d_bbsize = 2048;
- dip->disklabel.d_sbsize = 2048;
-
/* 'a' partition covering the "whole" disk */
DL_SETPOFFSET(&dip->disklabel.d_partitions[0], 0);
DL_SETPSIZE(&dip->disklabel.d_partitions[0], 100);
-/* $OpenBSD: efidev.c,v 1.10 2021/06/07 13:38:58 krw Exp $ */
+/* $OpenBSD: efidev.c,v 1.11 2022/09/01 13:45:26 krw Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
strncpy(label->d_packname, "fictitious", sizeof(label->d_packname));
DL_SETDSIZE(label, 100);
- label->d_bbsize = 2048;
- label->d_sbsize = 2048;
-
/* 'a' partition covering the "whole" disk */
DL_SETPOFFSET(&label->d_partitions[0], 0);
DL_SETPSIZE(&label->d_partitions[0], 100);
-/* $OpenBSD: efidev.c,v 1.9 2021/06/10 18:06:35 krw Exp $ */
+/* $OpenBSD: efidev.c,v 1.10 2022/09/01 13:45:26 krw Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
strncpy(label->d_packname, "fictitious", sizeof(label->d_packname));
DL_SETDSIZE(label, 100);
- label->d_bbsize = 2048;
- label->d_sbsize = 2048;
-
/* 'a' partition covering the "whole" disk */
DL_SETPOFFSET(&label->d_partitions[0], 0);
DL_SETPSIZE(&label->d_partitions[0], 100);
-/* $OpenBSD: disksubr.c,v 1.89 2017/02/28 10:49:37 natano Exp $ */
+/* $OpenBSD: disksubr.c,v 1.90 2022/09/01 13:45:26 krw Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
goto done;
}
- lp->d_bbsize = 8192;
- lp->d_sbsize = 8192;
for (i = 0; i < MAXPARTITIONS; i++) {
DL_SETPSIZE(&lp->d_partitions[i], 0);
DL_SETPOFFSET(&lp->d_partitions[i], 0);
-/* $OpenBSD: diskprobe.c,v 1.47 2020/12/09 18:10:18 krw Exp $ */
+/* $OpenBSD: diskprobe.c,v 1.48 2022/09/01 13:45:26 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
sizeof(dip->disklabel.d_packname));
DL_SETDSIZE(&dip->disklabel, 100);
- dip->disklabel.d_bbsize = 2048;
- dip->disklabel.d_sbsize = 2048;
-
/* 'a' partition covering the "whole" disk */
DL_SETPOFFSET(&dip->disklabel.d_partitions[0], 0);
DL_SETPSIZE(&dip->disklabel.d_partitions[0], 100);
-/* $OpenBSD: disksubr.c,v 1.59 2017/02/28 10:49:37 natano Exp $ */
+/* $OpenBSD: disksubr.c,v 1.60 2022/09/01 13:45:26 krw Exp $ */
/* $NetBSD: disksubr.c,v 1.12 2002/02/19 17:09:44 wiz Exp $ */
/*
lp->d_acylinders = sl->sl_acylinders;
lp->d_npartitions = MAXPARTITIONS;
- /* These are as defined in <ufs/ffs/fs.h> */
- lp->d_bbsize = 8192; /* XXX */
- lp->d_sbsize = 8192; /* XXX */
for (i = 0; i < 8; i++) {
spp = &sl->sl_part[i];
-/* $OpenBSD: ufs_disksubr.c,v 1.4 2013/11/05 00:51:58 krw Exp $ */
+/* $OpenBSD: ufs_disksubr.c,v 1.5 2022/09/01 13:45:26 krw Exp $ */
/* $NetBSD: ufs_disksubr.c,v 1.2 2013/01/14 01:37:57 tsutsui Exp $ */
/*
lp->d_acylinders = slp->sl_acylinders;
lp->d_npartitions = MAXPARTITIONS;
- /* These are as defined in <ufs/ffs/fs.h> */
- lp->d_bbsize = BBSIZE; /* XXX */
- lp->d_sbsize = BBSIZE; /* XXX */
for (i = 0; i < 8; i++) {
spp = &slp->sl_part[i];
-/* $OpenBSD: efidev.c,v 1.3 2021/06/25 17:49:49 krw Exp $ */
+/* $OpenBSD: efidev.c,v 1.4 2022/09/01 13:45:26 krw Exp $ */
/*
* Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net>
strncpy(label->d_packname, "fictitious", sizeof(label->d_packname));
DL_SETDSIZE(label, 100);
- label->d_bbsize = 2048;
- label->d_sbsize = 2048;
-
/* 'a' partition covering the "whole" disk */
DL_SETPOFFSET(&label->d_partitions[0], 0);
DL_SETPSIZE(&label->d_partitions[0], 100);
-/* $OpenBSD: disksubr.c,v 1.72 2017/02/28 10:49:37 natano Exp $ */
+/* $OpenBSD: disksubr.c,v 1.73 2022/09/01 13:45:26 krw Exp $ */
/* $NetBSD: disksubr.c,v 1.13 2000/12/17 22:39:18 pk Exp $ */
/*
lp->d_acylinders = sl->sl_acylinders;
lp->d_npartitions = MAXPARTITIONS;
- /* These are as defined in <ufs/ffs/fs.h> */
- lp->d_bbsize = 8192; /* XXX */
- lp->d_sbsize = 8192; /* XXX */
for (i = 0; i < 8; i++) {
spp = &sl->sl_part[i];
-/* $OpenBSD: ofdev.c,v 1.33 2022/07/27 12:32:03 kn Exp $ */
+/* $OpenBSD: ofdev.c,v 1.34 2022/09/01 13:45:26 krw Exp $ */
/* $NetBSD: ofdev.c,v 1.1 2000/08/20 14:58:41 mrg Exp $ */
/*
lp->d_acylinders = sl->sl_acylinders;
lp->d_npartitions = MAXPARTITIONS;
- /* These are as defined in <ufs/ffs/fs.h> */
- lp->d_bbsize = 8192; /* XXX */
- lp->d_sbsize = 8192; /* XXX */
for (i = 0; i < 8; i++) {
spp = &sl->sl_part[i];
-/* $OpenBSD: cd9660_vfsops.c,v 1.95 2021/03/05 07:10:06 jsg Exp $ */
+/* $OpenBSD: cd9660_vfsops.c,v 1.96 2022/09/01 13:45:26 krw Exp $ */
/* $NetBSD: cd9660_vfsops.c,v 1.26 1997/06/13 15:38:58 pk Exp $ */
/*-
DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp));
lp->d_partitions[RAW_PART].p_fstype = FS_ISO9660;
lp->d_npartitions = MAXPARTITIONS;
- lp->d_bbsize = 8192; /* fake */
- lp->d_sbsize = 64*1024; /* fake */
lp->d_version = 1;
lp->d_magic = DISKMAGIC;
-/* $OpenBSD: udf_subr.c,v 1.25 2014/12/16 18:30:03 tedu Exp $ */
+/* $OpenBSD: udf_subr.c,v 1.26 2022/09/01 13:45:26 krw Exp $ */
/*
* Copyright (c) 2006, Miodrag Vallat
lp->d_npartitions = MAXPARTITIONS;
lp->d_version = 1;
- lp->d_bbsize = 8192; /* Fake. */
- lp->d_sbsize = 64*1024; /* Fake. */
lp->d_magic = DISKMAGIC;
lp->d_magic2 = DISKMAGIC;
lp->d_checksum = dkcksum(lp);
-/* $OpenBSD: subr_disk.c,v 1.254 2022/08/20 13:10:45 krw Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.255 2022/09/01 13:45:27 krw Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
DL_SETBSTART(lp, 0);
DL_SETBEND(lp, DL_GETDSIZE(lp));
lp->d_version = 1;
- lp->d_bbsize = 8192;
- lp->d_sbsize = 64*1024; /* XXX ? */
return (0);
}
dlp->d_magic2 = swap32(dlp->d_magic2);
dlp->d_npartitions = swap16(dlp->d_npartitions);
- dlp->d_bbsize = swap32(dlp->d_bbsize);
- dlp->d_sbsize = swap32(dlp->d_sbsize);
for (i = 0; i < MAXPARTITIONS; i++) {
pp = &dlp->d_partitions[i];
-/* $OpenBSD: cd.c,v 1.265 2022/01/11 23:10:11 jsg Exp $ */
+/* $OpenBSD: cd.c,v 1.266 2022/09/01 13:45:27 krw Exp $ */
/* $NetBSD: cd.c,v 1.100 1997/04/02 02:29:30 mycroft Exp $ */
/*
DL_SETDSIZE(lp, sc->params.disksize);
lp->d_version = 1;
- /* XXX - these values for BBSIZE and SBSIZE assume ffs */
- lp->d_bbsize = BBSIZE;
- lp->d_sbsize = SBSIZE;
-
lp->d_magic = DISKMAGIC;
lp->d_magic2 = DISKMAGIC;
lp->d_checksum = dkcksum(lp);
-/* $OpenBSD: sd.c,v 1.331 2022/02/27 02:27:55 krw Exp $ */
+/* $OpenBSD: sd.c,v 1.332 2022/09/01 13:45:27 krw Exp $ */
/* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */
/*-
lp->d_version = 1;
lp->d_flags = 0;
- /* XXX - These values for BBSIZE and SBSIZE assume ffs. */
- lp->d_bbsize = BBSIZE;
- lp->d_sbsize = SBSIZE;
-
lp->d_magic = DISKMAGIC;
lp->d_magic2 = DISKMAGIC;
lp->d_checksum = dkcksum(lp);