History log of /src/sys/dev/sun/disksubr.c |
Revision | | Date | Author | Comments |
1.17 |
| 03-May-2020 |
jdc | If the sector size is 0, return early in readdisklabel(). Prevents a panic trying to use a 0-sized buffer, which can happen if we run (e.g.) `scsictl /dev/cd0c identify` with no medium in the CD drive.
|
1.16 |
| 03-Apr-2019 |
christos | branches: 1.16.4; centralize setdisklabel(9)
|
1.15 |
| 26-Feb-2017 |
martin | branches: 1.15.14; Disks without a disk label happen in normal operation (both as USB stick or with GPT), so do not cause an error message when opening them.
|
1.14 |
| 23-Mar-2010 |
martin | branches: 1.14.18; 1.14.36; 1.14.40; 1.14.44; Properly convert values according to block size differences between the underlying device (might be a CD drive) and the sun label when carrying over defaults from a ISO9660 partition.
|
1.13 |
| 16-Mar-2010 |
martin | Do not overwrite a ISO9660 partition (which the sunlabel can not properly represent, but the cd driver carefully crafted including session data). This makes it possible to just mount cd0a as cd9660fs on a sparc* install CD. Solution suggested by <mlelstv>.
|
1.12 |
| 16-Mar-2009 |
dsl | branches: 1.12.2; 1.12.4; ANSIfy functions with function-pointer arguments
|
1.11 |
| 14-Mar-2009 |
dsl | ANSIfy another 1261 function definitions. The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
|
1.10 |
| 14-Mar-2009 |
dsl | Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
|
1.9 |
| 08-Oct-2007 |
ad | branches: 1.9.22; 1.9.30; 1.9.36; brelse() stragglers.
|
1.8 |
| 25-Nov-2006 |
scw | branches: 1.8.22; 1.8.24; 1.8.26; Replace the myriad copies of bounds_check_with_label() with a single MI version.
Add disk_blocksize(9) so that disk drivers can record the physical block size of a disk if it is different to DEV_BSIZE. Right now this simply initialises dk_blkshift and dk_byteshift according to the supplied block size. This information is used in the MI version of bounds_check_with_label().
|
1.7 |
| 11-Dec-2005 |
christos | branches: 1.7.20; 1.7.22; merge ktrace-lwp.
|
1.6 |
| 31-May-2005 |
christos | branches: 1.6.2; add a missing const.
|
1.5 |
| 30-May-2005 |
christos | Add const.
|
1.4 |
| 27-Feb-2005 |
perry | nuke trailing whitespace
|
1.3 |
| 04-Feb-2005 |
perry | de-__P
|
1.2 |
| 10-Dec-2003 |
jdolecek | branches: 1.2.4; 1.2.10; 1.2.12; Modify the licences of code written by Theo De Raadt from a 4-clause to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR 22409 from Joel Baker, approved by Theo de Raadt.
|
1.1 |
| 15-Nov-2003 |
bouyer | Commit changes proposed on tech-kern Thu, 6 Nov 2003 - factor out disksubr.c between sun3, sparc and sparc64. Keep the sun3 groveling code to find a NetBSD disklabel in the first sector (so that it can find a label at the old sun3 LABELOFFSET) as a fallback is not label at LABELOFFSET, or sun label is present. - Fix the sun3 LABELOFFSET (was 64, but the kernel wrote the NetBSD label at 128) - Make next68k disksubr.c always write a next-compatible disklabel. - remove #ifdef __sparc__ hack from disklabel(8), and change it to issue a DIOCWDINFO after writing the disklabel to the raw partition in the -r/-I case (so that the kernel can convert the label if needed).
|
1.2.12.2 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.2.12.1 |
| 12-Feb-2005 |
yamt | sync with head.
|
1.2.10.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.2.4.7 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.2.4.6 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.2.4.5 |
| 04-Feb-2005 |
skrll | Sync with HEAD.
|
1.2.4.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.2.4.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.2.4.2 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.2.4.1 |
| 10-Dec-2003 |
skrll | file disksubr.c was added on branch ktrace-lwp on 2004-08-03 10:51:16 +0000
|
1.6.2.2 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.6.2.1 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.7.22.1 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.7.20.1 |
| 12-Jan-2007 |
ad | Sync with head.
|
1.8.26.1 |
| 14-Oct-2007 |
yamt | sync with head.
|
1.8.24.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.8.22.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.9.36.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.9.30.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.9.22.2 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.9.22.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.12.4.1 |
| 30-May-2010 |
rmind | sync with head
|
1.12.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.14.44.1 |
| 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.14.40.1 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|
1.14.36.1 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.14.18.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.15.14.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.16.4.1 |
| 04-May-2020 |
martin | Pull up following revision(s) (requested by jdc in ticket #886):
sys/dev/sun/disksubr.c: revision 1.17
If the sector size is 0, return early in readdisklabel(). Prevents a panic trying to use a 0-sized buffer, which can happen if we run (e.g.) `scsictl /dev/cd0c identify` with no medium in the CD drive.
|