-
tsoome
the bad thing is, we actually do have not one but two whole disk device nodes, GPT label will add second one (minor 'u'). IMO it would be nice to have just one (minor 'u'), and p0 as symlink for transition time (deprecated).
-
jclulow
I agree it would be good to have a separate explicit "whole disk" public link that works regardless of which label (or if no label) is present etc
-
jclulow
I suspect we could do a better job at documenting this, too; e.g., there are notes in disks(8) which is a deprecated program
-
jclulow
Also, TIL devinfo(8), what even is this!
-
tsoome_
I did remember wrong, its not 'u' conflicting minort node, the actual problem is that for GPT, we do create minor node with name "wd", but its numeric value is 7 and it is conflicting with VTOC node 'h'.
-
jclulow
Right
-
jclulow
There's obviously a lot of history here
-
jclulow
The bare device name, e.g., c0t0d0, points to the "wd" minor, I believe. Is that still true VTOC labels?
-
tsoome_
it is not, with VTOC world, there is no node c0t0d0
-
jclulow
Ah
-
jclulow
I guess we could fix that by just creating one then haha
-
tsoome_
on sparc, there has been only s2 to access whole disk, and on x86, the p0
-
jclulow
Right.
-
jclulow
And on x86 s2 would get you access to the whole SOLARIS2 partition I guess
-
tsoome_
yes
-
tsoome_
errm. actually because on transition from EFI to VTOC and VTOC to EFI, we do remove and create minor devices as needed, we could just re-create "wd" node with other numeric value for minor. But of course, thats not really nice and it would be better to have one value.
-
jclulow
I don't think the numeric value is particularly important
-
tsoome_
-
tsoome_
actually it is, because we have #define WD_NODE 7 and it is used to index cl_map array like there:
src.illumos.org/source/xref/illumos…b.c?r=bbf21555&mo=19489&fi=685#1149
-
tsoome_
so it is software and can be reworked, but still something to keep in mind
-
jclulow
Yes I understand that the driver uses it internally, I just mean outside the driver it's more important that there be a consistently named minor available etc
-
jclulow
I have filed: 17043 disk device nodes and label types could be documented in disks(7)
-
jclulow
This has come up a lot in the last couple of years so it's probably time to write it down
-
jclulow
Is the ARM stuff just 100% GPT?
-
jbk
probably -- AFAIK it all uses UEFI for better or worse, which would mean GPT
-
jclulow
GPT is probably the most acceptable part of UEFI so that seems fine haha
-
jbk
there are other parts that aren't _too_ bad, but the windows-centric bits are quite annoying (e.g. UCS2 strings)
-
jclulow
It as after all MS-DOS 2097!
-
jclulow
*It is
-
richlowe
jclulow: we support non-gpt, because of some booting quirks
-
richlowe
jclulow: (and because that's all common code, I guess)
-
richlowe
I just remember that andyf made it optional what we use on the images because of something or other (hadfl's rpi rev?)
-
richlowe
something weird didn't work
-
hadfl
yeah my old rpi4 didn't boot other than MBR. but a firmware update fixed it. so not relying on MBR anymore
-
tsoome_
well, we have seen system boot implemented as read N blocks from fixed location (N from [1-16]), now we see read file from file system, and to be honest, file system is much more better option. Even if its FAT.
-
jclulow
richlowe: Interesting!
-
jbk
also: writing CamelCase C just feels wrong :P
-
jbk
(other UEFI quirks)
-
tsoome_
:D
-
jclulow
It's not great!
-
tsoome_
one can always just use linuxboot;)
-
gitomat
[illumos-gate] 17031 ddi_intr_add_handler(9f): several issues -- Yuri Pankov <yuri⊙ao>
-
danmcd
@yuripv ^^^
-
gitomat
[illumos-gate] 17012 ZTS: add new_fs -- Toomas Soome <tsoome⊙mc>
-
iximeow
BootLayer [~BootLayer@user/BootLayer] has quit [Quit: Leaving]
-
iximeow
uhhh, unintentionally copypasted part of my irssi buffer? sorry about that
-
richlowe
I thought it was a joke about us complaining about UEFI and then "BootLayer" quitting, tbh
-
gitomat
[illumos-gate] 16835 mkfs_pcfs: allow sector sizes other than 512B -- Toomas Soome <tsoome⊙mc>
-
jclulow
That's usually how I hedge my bets when mine don't land
-
jclulow
"oh, yeah, I was just trying to quit vi ha ha"
-
tsoome_
-
fenix
→ CODE REVIEW 3738: 16837 libzfs: pool start needs to be properly aligned with zpool_label_disk() (NEW) |
illumos.org/issues/16837