Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Nov 2003 18:31:23 +0100 (CET)
From:      Rudolf Cejka <cejkar@fit.vutbr.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/59256: [PATCH] Forgotten OS table size update after one item removal
Message-ID:  <200311131731.hADHVNfC002920@kazi.fit.vutbr.cz>
Resent-Message-ID: <200311131740.hADHeIlJ038461@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         59256
>Category:       kern
>Synopsis:       [PATCH] Forgotten OS table size update after one item removal
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 13 09:40:17 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Rudolf Cejka
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
FIT, Brno University of Technology, Czech Republic
>Environment:

FreeBSD-current, bug in $FreeBSD: src/sys/boot/i386/boot0/boot0.s,v 1.26 2003/06/01 20:41:04 obrien Exp $

>Description:

There has been removed UNIX entry from known partitions in revision 1.26,
but size of table of known partitions TBL1SZ has not been updated.

>How-To-Repeat:

Install boot0.s 1.26 boot block and see shifted partition descriptions,
for example BSD instead of FreeBSD and/or Linux...

>Fix:

--- boot0.s.orig	Tue Nov 11 18:25:12 2003
+++ boot0.s	Tue Nov 11 18:25:21 2003
@@ -25,7 +25,7 @@
 		.set PRT_OFF,0x1be		# Partition table
 
 		.set TBL0SZ,0x3 		# Table 0 size
-		.set TBL1SZ,0xc 		# Table 1 size
+		.set TBL1SZ,0xb 		# Table 1 size
 
 		.set MAGIC,0xaa55		# Magic: bootable
 		.set B0MAGIC,0xbb66		# Identification

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311131731.hADHVNfC002920>