00:41:46 Nice, I don't know how many folks are gonna try to do what I just did but is there a way to change the error from "Invalid Argument" to someone better or is that bhyve cli eatting the error 00:52:00 A recurring problem at the syscall API is that you only have a limited number of ways for the kernel to say "nope" and you quickly run out of errno values that both fit the situation and are specific enough to tell you what's up. 00:57:26 theoretically your ABI could reserve some bits for a "why" code alongside an error number, but then you're committing to specific error semantics and that's its own can of worms 01:23:07 makes sense. 01:36:55 sommerfeld: It's remarkable how many of the errno values are just not generically applicable to the kinds of scenarios that actually arise haha 01:37:16 Surprisingly frequent that EINVAL is the best we can do 01:37:45 iximeow: Yeah, for new things we usually try to just ... have a new error code that isn't related to errno 01:38:12 e.g., https://github.com/illumos/illumos-gate/blob/0066f0d1ae951a864717b2788f4e863d1c3bae0a/usr/src/uts/common/sys/ilstr.h#L31-L36 01:40:00 Then there are crimes, like: https://github.com/illumos/illumos-gate/blob/0066f0d1ae951a864717b2788f4e863d1c3bae0a/usr/src/uts/common/fs/zfs/sys/zio.h#L253-L258 01:40:14 Which are extremely unhelpful in many debugging contexts haha 02:06:49 jclulow: lol i have to admit if i saw something return EBADE i would seriously wonder if i had gone off the deep end 02:10:53 and of course the errnos that get shoved into places they don't quite fit, like ENOTTY for "You used a STREAMS ioctl on something that wasn't a stream" in very non-tty related contexts 03:02:45 alanc: Indeed 03:03:12 That one is at least a well-established practice 03:04:19 And the strerror() text is "Inappropriate ioctl for device" 03:06:24 ENOCSI No CSI structure available 03:06:28 what even is a CSI structure! 03:08:01 and does it involve having to put on sunglasses while making a wry humorous comment? 03:15:45 Would there be any other way to do it? 04:06:39 Why, oh why must my mind latch on to random acronym expansions? Caeser Salad Infrascructure? Computationally Savory Impala? Chronologically Sound Impressionism? 11:02:55 I am on SmartOS and I want to add an ZFS dataset with files to the zone (native illumos or LX) but i am afraid I would loose and dataset would be deleted if I remove and delete that zone. 11:03:04 I think it happened to me at least once. 11:03:48 Can I safely aff dataset to the zone, via zonecfg or SmartOS vmadm and safely remove dataset from the zone so i won't loose data if zone itself is deleted ? 14:18:56 nikolam: the only question is whether you need to be able to do zfs administrative commands from inside the zone. If not, the best thing to do is create a separate filesystem outside the zone and add it to the zone via lofs. That way it is not tied to the existence of the zone. 14:19:33 Otherwise, if you need to do delegation, I think you can put holds in place on filesystems and zones to prevent accidental deletion and then you'd have to manually reparent the filesystem before destroying the zone. 14:21:13 An example use case from me is I have a filesystem from my data pool that holds all my bandcamp music. I lofs mount it into a lx branded zone running mstream. I can recreate that zone without worrying about wiping out my media. 14:25:20 nahamu, lofs it will be ;P 19:14:08 lofs mounts into zones are very useful. realized earlier this week that I could skip socat for VNC console access by having bhyve put the VNC socket into a lofs-mounted filesystem that the VM's user can access 19:17:26 bhyve creates the socket as owned by root, with only root able to write, but setting an inherited file acl on the directory lets other users access it..) 19:55:53 sommerfeld, great to know :P 20:57:34 [illumos-gate] 17248 asy_put() ASSERTs during reboot -- Patrick Mooney 22:07:21 .oO https://github.com/openzfs/zfs/commit/d0aa9dbccfb06778ca336732ee4e627f50475ad3 22:07:21 → GitHub commit d0aa9db: Use memset to zero stack allocations containing unions (committed) 22:08:09 "padding" leaks? 22:08:41 danmcd: a fun one for you 22:09:05 The C standard language in the OpenZFS bug report is like... wow! What were they smoking? 22:09:08 quite frankly, I had no idea:) 22:09:12 (They == C standards people ) 22:10:14 "C99 6.7.8.17 says that when an undesignated initialiser is used, only the first element of a union is initialised. If the first element is not the largest within the union, how the remaining space is initialised is up to the compiler." 22:10:53 accident waiting to happen. 22:11:01 This is EXACTLY a rage-inducer with me. Was there a problem they were solving by this language? Apart from "piss off danmcd" ? 22:11:01 that's our C 22:12:25 Good catch @tsoome 22:12:48 This isn't different from padding in structs and why C23 added new syntax and related. 22:13:24 (Well, that doesn't eliminate "piss of danmcd" but it DOES make a slight bit more sense...) 22:13:53 Well, a bunch of this came that way from New Jersey probably, so. 22:14:15 Eeesh. 22:14:20 I can't tell you not to get mad, but it's also why I tell folks to always use bzero/memset on anything going out via DMA and related. 22:14:35 Or anything that goes out to userland. 22:14:51 C23 adds syntax of '= {}' which I expect will get around this gotcha. 22:14:52 makes sense a lot. 22:14:59 Had I followed the Don Hausen plan for DST in the US, I'd have already been gone, but now I'm kinda glad I wasn't. 22:15:04 And good for C23. 22:15:17 Outa here! 22:15:42 (Don's DST plan: https://hostux.social/@danmcd/114122113529227088 ) 22:17:06 that's a great plan