NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/52522 (incorrect partition label handling in gpt(8) and kernel (wedges))



The following reply was made to PR kern/52522; it has been noted by GNATS.

From: Piotr Meyer <aniou%smutek.pl@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: jnemeth%NetBSD.org@localhost, netbsd-bugs%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
	maya%NetBSD.org@localhost
Subject: Re: kern/52522 (incorrect partition label handling in gpt(8) and
 kernel (wedges))
Date: Mon, 4 Jun 2018 16:05:45 +0200

 On Mon, Jun 04, 2018 at 11:15:50AM +0000, maya%NetBSD.org@localhost wrote:
 > Synopsis: incorrect partition label handling in gpt(8) and kernel (wedges)
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: maya%NetBSD.org@localhost
 > State-Changed-When: Mon, 04 Jun 2018 11:15:50 +0000
 > State-Changed-Why:
 > Hi. what's the status of this bug? it looks like it might have been fixed, are there remaining issues?
 
 The bug itself may be closed now, although it was only a part of larger
 problem - a broken GPT partition management in sysinst. There[1] are, at
 least, two problems here (if I rememeber correctly):
  - [probably] invalid calls for dkctl or gpt commands (bad parameters/bad 
    parameters order - tools were changed in meanwhile)
  - inflexible and dangerous algorithm that involves removing other
    partitions and renaming newly created ones[2]: 
 
 Both of them leads to errors like [3] and makes sysinst dangerous when
 NetBSD is installed on GPT-partitioned disk alongside of other OS-es. 
 
 I have had an idea about using UUID's as universally unique identifiers
 for partitions and wedges, but then kern/52522 appeared.
 
 1 - https://nxr.netbsd.org/xref/src/usr.sbin/sysinst/partman.c#1760
 2 - https://nxr.netbsd.org/xref/src/usr.sbin/sysinst/partman.c#1775
 3 - https://mail-index.netbsd.org/current-users/2014/10/26/msg026021.html
 
 Best regards,
 -- 
 Piotr 'aniou' Meyer
 


Home | Main Index | Thread Index | Old Index