-
gitomat
[illumos-gate] 17006 ZTS: left over spare-dev1 and spare-dev2 -- Toomas Soome <tsoome⊙mc>
-
twobitsahead
Hello, I'm scratching my head at something to do with ioctl() and TIOCGWINSZ. I am trying to find the width of the screen. Here's the C code
pastebin.com/Ejd9N8mU which does run on Linux, but not on OpenIndiana. Here's the error being produced while trying to compile the same code on OpenIndiana
pastebin.com/7pPY9URi
-
twobitsahead
I read through the ioctl manual pages, and Google, and haven't come across much useful information as to what is causing this issue
-
rmustacc
twobitsahead: So when I looked at the manuals that mention the winsize structure, I'd expect you to have to include termios.h.
-
rmustacc
Including that makes it work for me and is where POSIX defines it to be in POSIX 2024.
-
rmustacc
(You also don't need sys/ioctl.h).
-
twobitsahead
That solved it
-
twobitsahead
Thank you!
-
rmustacc
illumos.org/man/4I/termio is what I was looking at for some context.
-
twobitsahead
Thanks, I was just Googling for this. I don't know how this didn't turn up / how I missed this during the search. This is the page that I have been looking for
-
rmustacc
All good, glad it's sorted.
-
gitomat
[illumos-gate] 17016 libzfs: zpool_clear_label fixes -- Ahelenia Ziemiańska <nabijaczleweli⊙nx>
-
gitomat
[illumos-gate] 16960 nxge: possible memory leak -- Toomas Soome <tsoome⊙mc>
-
jimklimov
Cheers, is anyone planning to meet up at FOSDEM this year? Is there an illumos table this time? Any events before/after the weekend itself (e.g. hackathons etc.)? :)
-
nomad
jclulow, so far testing of the new tar binary is going well. I've started a huge set that will take a few days to create the tarball and a few more to extract/verify but so far I'm not seeing any red flags.
-
andyf
-
andyf
but unfortunately no table/stand. It is becoming more Linux-centric each year.
-
» nomad realizes he should update the ticket with that information... (pls. pardon the duplication).
-
jimklimov
thanks for the info, hope to be there (and go at all this year)
-
tsoome
sigh.... panic[cpu1]/thread=fffffe00108e2c20: programming error: LBA out of range in cmd fffffe0bddf7b840
-
tsoome
we do get blown up too eagerly
-
richlowe
not sure what you're getting at
-
richlowe
I wish I could find the time, or find a victim, to fix dev_err(..., CE_PANIC, ...) though
-
richlowe
it pretty obviously should prepend the formatted dev to the panic string
-
tsoome
well, in this case, we got LBA from (bad) disk label, attempted to use it and nvme did panic;)
-
richlowe
Right, that seems like a fatal programming error?
-
richlowe
I think
-
richlowe
it seems like the theory is the consumer (label?) sanity checks itself?
-
tsoome
well, the label structure was good;) just that the LBA numbers were bad.
-
tsoome
ofc the question would be, should cmlb verify the data properly (probably it should) or should nvme error out there (and not panic?) or both:)
-
richlowe
nvme seems written on the assumption cmlb would check
-
richlowe
I don't claim to know whether that's a good idea, just that it seems to be what nvme thinks should happen
-
richlowe
it seems like every command field it doesn't like we .panic on, anyway
-
tsoome
kind of makes sense, well that is quite clear that cmlb should check.
-
richlowe
except for the charming, `NVME_CMD_F_DONTPANIC`
-
richlowe
which I haven't looked deeper into yet
-
richlowe
it seems to mean "This came from userland, just fail"
-
jclulow
nomad: Thanks!
-
rmustacc
Yes, I think most blkdev consumers are written assuming they're getting mostly valid I/O requests.
-
jclulow
I think if we're going to panic down there, then blkdev should probably handle checking for out of range I/O on its own based on what it gets told about the size of the disk
-
gitomat
[illumos-gate] 16964 ptrconf: potential memory corrupting cast 4 vs 1 bytes -- Toomas Soome <tsoome⊙mc>
-
tsoome
-
fenix
→
BUG 17029: cmlb should check label better (New)