-
gitomat
[illumos-gate] 17017 zfs: rename get_temporary_prop to zfs_get_temporary_prop -- Toomas Soome <tsoome⊙mc>
-
dangergrrl
sorry if moving this here is inapropriate, are there clients of the 32 bit userspace other than virtualization? it would seem to me that because it isn't tested as much that defects could creep into 32bit userland unnoticed due to changes in regular 64 bit space that don't cause defects there
-
dangergrrl
forgive me if there is already adequate regression testing to ensure this isn't an actual problem
-
tsoome
it is always a problem
-
tsoome
I have seen something like no problem in 32bit x86, 64-bit x86, 32-bit sparc but the bug appeared on 64-bit sparc.
-
dangergrrl
tsoome, panorain left the other channel and since 32 bit support involves kernel space i thought it might better here
-
dangergrrl
gcc uses 3 stage bootstrap as a form of validation, could some portion of the userspace be built in 32 bit for the same purpose? maybe not every build but like periodicly
-
tsoome
? most of our userspace is 32-bit
-
dangergrrl
oh, ok
-
dangergrrl
so it's still being vigorously used
-
tsoome
yes. and we kind of need to change that;)
-
jbk
there's been a _little_ bit of talk of making most of the binaries 64-bit, but not something that'd happen overnight (and for comapt we'd still need the 32-bit libraries so unbundled stuff that's 32-bit will still run)
-
dangergrrl
i was thinking about ineffiuciencies because of replicated functionality being mapped to memory twice
-
dangergrrl
default should change to 64 bit long before deprecation of 32 bit ideally
-
alanc
well, there's 13 years and 11 days left until the 32-bit userspace starts failing because ld.so.1 will get EOVERFLOW errors on every stat call trying to find libraries to load
-
tsoome
thats good:P
-
jbk
somehow (because it'd be too easy :P) i'm guessing we can't just use stat64() or such there...
-
alanc
stat64() uses 64-bit inode & size fields, but still has 32-bit time_t fields - you would need to implement a new variant to get 64-bit time_t fields, like the large time API some Linuxes have provided
-
alanc
-
Guest39
Howdy I'm using OmniOs and some combination of mashing ^c and ^l ends up bricking my cursor and I can't see what I'm typing. Any ideas what key combination is doing this?
-
tsoome
does ^q fix it?;)
-
otis
or echo ^o^q
-
Guest39
^q did not fix
-
otis
even like, echo ^v^q ?
-
Guest39
the echo commands arent doing anything either
-
Guest39
to clarify I am inputting text, the term just isn't displaying my inputs
-
Guest39
relogging works, just wondering if anyone had run into this before
-
m1ari
Guest39: in Linux I've had it sometimes where the terminal has got messed up and things don't work as expected (display of what's being typed, scrolling etc) in that case the `reset` command at the shell terminal often resets things back to normal - I'm not sure if that's similar to what you're seeing or not and a possible fix
-
alanc
fortunately, you've got nearly 8000 years left to fix
illumos.org/opensolaris/bugdb/bug.html#!4178551
-
fenix
→ OpenSolaris issue 4178551: ctime() has 64-bit year-10000 bug (Defer)
-
richlowe
(Defer)
-
alanc
really should just obsolete ctime() before that and convert callers to strftime() instead
-
KungFuJesus
alright, I feel sufficiently dumb as I've never had to do this before. How do I partition a disk in 2 on illumos with an EFI label?
-
KungFuJesus
every piece of documentation I've looked at starts conflating things with slices. As far as I understand with EFI/GPT, slices are non-overlapping
-
KungFuJesus
I just want to carve out ~20 GB from the front and allocate the rest to another partition
-
jbk
format -e should allow you to specify EFI
-
jbk
slices on a GPT disk are just partition entries
-
KungFuJesus
yes but then it assumes one single EFI partition, I'm trying to subdivide the disk
-
jbk
though there's some mapping of type (sys, usr, etc) to well known GUID types
-
richlowe
you would subdivide the disk
-
KungFuJesus
yeah, I found the "fdisk" lets me delete and create just one single partition
-
KungFuJesus
I tried the "partition" option, and that won't let me "tag" the partition with an arbitrary name, not that that's important, but it defaults to "usr"
-
KungFuJesus
richlowe: step one, draw two circles, step two, draw the rest of the owl? What am I missing here?
-
KungFuJesus
what are the "tags"? I've not seen this notion in other UNIXes. FreeBSD has GPT labels, which I assume would be the same thing, but you can arbitrarily name those. You seemingly cannot with the "partition" option from the format command
-
jbk
it's the partition type
-
jbk
in the older SMI disk label format, you had unassigned, boot, root, swap, usr, backup, stand, var, home and a few others
-
jbk
for a GPT disk, those get translated to well known GUIDs
-
KungFuJesus
ok, so for a disk that is getting split to go into a zpool, what tag do I assign to both of these?
-
KungFuJesus
I assume it basically doesn't matter?
-
jbk
the zpool command uses usr
-
jbk
so that should be fine
-
jbk
you're going to pass the slice in if you don't want it to use the whole disk anyway
-
jbk
you may want to leave the reserved partition that gets created by default as well
-
KungFuJesus
gotcha, so I'll basically ignore the p# at the end of the device string
-
jbk
if it's going to be used by illumos
-
richlowe
KungFuJesus: sorry, I stepped away. jbk has you covered, there's no separation with EFI/GPT like there used to be
-
jbk
IIRC, the p# ones are for legacy MBR labeled disks
-
jbk
on x86
-
KungFuJesus
alright, so, right now when I "label" the GPT disk, it just creates one mega "EFI" partition. I assume the "reserved" one is the ESP partition as it's known on other platforms?
-
tsoome
no
-
jbk
it's used by the kernel to store some metadata about the disk in certain circumstances
-
KungFuJesus
ah, so something akin to zpool's cache when it "tastes" the drives?
-
jbk
kinda -- basically it wants to try to create a unique identifier for the disk
-
KungFuJesus
ah, so that's probably the GUID being stored that ZFS uses?
-
tsoome
reserved is used to store fabricated disk ID in case the disk does not provide one.
-
jbk
no that's different :) I think this might predate GPT partitions
-
KungFuJesus
I see, I always assumed that was something that was more or less baked into the GPT table in some fashion, but maybe FreeBSD has always simplfied this for me with geom
-
KungFuJesus
I mean at the moment, after labeling the disk, the "fdisk" menu just shows me one partition
-
jbk
but yes, if it can't generate a unique id (I think normally it tries to use the WWN of the disk if it has one -- either via scsi inquiry or for SATA it's sometimes buried in the identifying info that gets returned)
-
KungFuJesus
oh, "reserved" is at the end
-
KungFuJesus
does this have anything to do with GPT's "backup" table?
-
jbk
GPT disk labels to get a unique GUID on them, though if you relabel them, it can generate a new GUID
-
jbk
no
-
jbk
just I'm guessing it's normally just put at the end of the usable LBA range just to try to keep it out of the way
-
jbk
(so the backup GPT label is usually right after it)
-
KungFuJesus
ah ok, so this is just a special solaris thing
-
jbk
yes
-
KungFuJesus
man, I didn't think it'd be fundamentally this different from BSD given their quasi shared lineage with a distant cousin UFS
-
jbk
i think a lot of the confusion comes with how partitioning was originally done on x86
-
KungFuJesus
what are the permission flags? Are the defaults wm fine?
-
jbk
yes, those I think are ignored for GPT
-
jbk
basically on sparc, the legacy (SMI) label supported 8 slices (partitions), each partition had a 1 byte tag (type) which was more of a hint than anything (no place to put a description in UFS, so if you had 4 slices with UFS filesystems on it, it gave you an idea what was what)
-
jbk
and the slices could overlap, so convention was s2 would be a slice that represented the whole disk -- so you could read/write that to backup the disk
-
jbk
when x86 came around, instead of using that on a disk
-
jbk
the first problem is that no BIOS out there would understand it
-
jbk
they only understood MBR partitions
-
jbk
so an issue for your boot disk
-
jbk
so instead, they would take an MBR partition, give it a 'solaris' partition type
-
KungFuJesus
and I definitely want to address these by slice, not the p#? Or does it not actually matter?
-
jbk
and then write the SMI label at the part of the partition and subdivide that MBR partition into slices
-
jbk
which is why on x86 you get the p# entries
-
jbk
however once GPT came around
-
jbk
the whole p# wasn't really needed anymore
-
jbk
(for compatability, most things -- not just illumos -- will still write a 'protective' MBR partition table out)
-
jbk
where there's 1 MBR partition (of type UEFI)
-
jbk
but that can pretty much be ignored
-
KungFuJesus
I mean to be fair, the 4th based loaders didn't need to make slices overlappable. Making 2 the whole disk was also seemingly a bizarre choice
-
jbk
so you want to use the slice devices
-
jbk
as those will map to the GPT partition entries
-
KungFuJesus
ok, so instead of the protective MBRs, which are probably using a layer of glue somewhere
-
jbk
I don't know if there'd be any unexpected issues, but it seems like we could probably stop creating (at least by default) the p# entries on GPT disks since they are kinda confusing
-
tsoome
you mean device nodes? that is not bad idea
-
KungFuJesus
now my understanding of l2arc_noprefetch, setting this to 0 with mdb doesn't do anything until you reimport the pool?
-
KungFuJesus
or, would simple setting this to 0 be enough for prefetched things to land in l2arc from an already imported pool?
-
KungFuJesus
simply*
-
KungFuJesus
(I did set it in /etc/system, I'm just trying to avoid a reboot)
-
jbk
i think it'll take effect immediately (though won't impact any l2arc data that's already been prefetched -- i.e. changing it won't evict anything exiting)
-
KungFuJesus
ok, but it'll probably hit the cache the second time around after it's flushed out. Awesome
-
tsoome
you would probably like this one too:
openzfs/zfs 043c6ee
-
tsoome
I figured I did see l2arc_noprefetch somewhere...
-
jclulow
KungFuJesus: You basically never want the fdisk(8) command, or the "fdisk" menu in format(8), unless you're looking to create an old fashioned vtoc-style partition (the SOLARIS2 type) inside an old fashioned MBR-only disk
-
jclulow
and yes, always the slice (s*) devices
-
jclulow
unless you need the "whole disk" device, which is p0