-
dangergrrl
anyway i have an actual practical question
-
dangergrrl
should i tar /code/illumos-gate? or just use git diff and patch to restore my wip?
-
rmustacc
Are both systems up at the same time?
-
dangergrrl
yes
-
dangergrrl
but they aren't connected because i'm bad at vbox
-
dangergrrl
so i'm using windows as an intermediate
-
dangergrrl
i know i can forward the vbox ssh port but i didn't want to bother...
-
rmustacc
Well, the simplest thing would be to just use git to clone things to the intermediate states.
-
dangergrrl
my current vbox machine has an until now totally unused hdd that i made a zfs on
-
dangergrrl
i don't have any idea how to do that
-
rmustacc
If you use other methods, I would ensure that you have removed all built artifacts.
-
rmustacc
So you know how you used git clone to get the source code originally? You can do the same thing, but just ask for it at the place you actually have it.
-
dangergrrl
i didn't make a fork :(
-
rmustacc
I'm not sure what you mean there.
-
dangergrrl
that would have made stuff easier
-
rmustacc
The github 'fork' concept doesn't have anything to do with whether you can do this or not.
-
dangergrrl
I'm working off the main tree
-
dangergrrl
oh, ok
-
rmustacc
You can just still push all that to a branch of your own on gitub if you want.
-
rmustacc
But again, not required for any of what I've described.
-
rmustacc
But practically speaking, do whatever you're most comfortable with.
-
rmustacc
That is more likely to lead to your success.
-
dangergrrl
i understand unix code but just not really git
-
dangergrrl
cvs rcs and whatever odd filesystem based thing we used at SCO are more familiar to me
-
rmustacc
My point is, using tools you know is going to more likely be successful than trying to teach git over irc.
-
dangergrrl
lol, okay
-
rmustacc
So if that's creating patch files and moving them, do that. If that's tar, use that.
-
dangergrrl
i think i could use git diff and patch would work
-
rmustacc
You can use git format-patch, git am, git apply, etc.
-
rmustacc
You don't need to use patch.
-
dangergrrl
lol
-
rmustacc
I just mean, git has additional tools for it if you want to use them.
-
dangergrrl
I'm old, I love Larry Wall.... :P
-
rmustacc
OK, well, good luck.
-
dangergrrl
thanks
-
dangergrrl
i just don't want to lose my work and i really need the hardware
-
dangergrrl
I'm just not happy enough with it to submit to code review yet
-
dangergrrl
saving my homedir took 48G, I'm hoping for less for my dev tree since my changes are more like 1k
-
dangergrrl
how to push my changes to git without making a pull request?
-
rmustacc
When you say 'to git', do you mean github?
-
dangergrrl
yes
-
rmustacc
You can push or pull to any repository that exists. It doesn't have to be on github.
-
dangergrrl
i'm going to nuke that machine
-
rmustacc
If you want to use github you must 'fork' illumos-gate on github.
-
dangergrrl
i want to save my work
-
rmustacc
And then you can add it as a remote and push to a branch.
-
dangergrrl
that't what i thought
-
rmustacc
I understand what you are doing and the destructive nature. Just trying to say that the git remote can be anything. It doesn't have to be github.
-
dangergrrl
but i didn't do that
-
rmustacc
For example, I push between a server and a laptop frequently.
-
rmustacc
It doesn't matter how it started.
-
dangergrrl
i can fork now?
-
rmustacc
Forking is not a git concept.
-
rmustacc
git has a notion of what it calls remotes.
-
rmustacc
You can push to any remote and add and remove them at any time.
-
dangergrrl
i just don't want to lose my rather limited work
-
dangergrrl
if i can do that with a git command please help
-
dangergrrl
i just git push?
-
dangergrrl
okay, i don't have a sshe key with github.org
-
dangergrrl
ssh
-
rmustacc
How many commits is your work?
-
dangergrrl
just the one i am working on
-
dangergrrl
it's pretty simple you could do it in your sleep
-
rmustacc
OK, so there is a single commit in git log and if you've made multiple, you've squashed them.
-
dangergrrl
so i need to submit an ssh key?
-
rmustacc
Then just run 'git format-patch HEAD~1' and take that patch file off box and mail it to yourself.
-
dangergrrl
danke
-
rmustacc
Or whatever you do to preserve files.
-
dangergrrl
fatal: ambiguous argument 'HEAD-1': unknown revision or path not in the working tree.
-
dangergrrl
I'm trying not to be stupid but i admit i am older
-
rmustacc
Did you use the ~ (tilde) character like I used?
-
rmustacc
Or did you use the - (minus, hyphen) like you copied above.
-
dangergrrl
aha
-
dangergrrl
ahathat was fast, where did it put the file?
-
rmustacc
It listed the name of it on output.
-
dangergrrl
aha, in .
-
dangergrrl
so i can rebuild my tree from that?
-
rmustacc
You can use patch like you said you're familiar with to apply it. At this point it should be like everything else you already know.
-
dangergrrl
ty
-
dangergrrl
my changes are just to yacc to make it use modern interfaces to create temp files
-
dangergrrl
very minor but i wanted to save my machine, ty
-
danmcd
@pmooney your refactoring makes the LX/brand changes even harder to do than I'd thought. I'm going to suggest a diff at your end first.
-
pmooney
ok
-
danmcd
-
danmcd
pmooney: ^^^
-
danmcd
-
danmcd
typo, did the whole reset-and-force-push-to-branch.
-
danmcd
And it actually builds now.
-
danmcd
And the aforementioned patch will drop nicely into your `il14892` branch pmooney.
-
toasterson
richlowe: tsoome_ Some diff alternative worth mentioning is
github.com/Wilfred/difftastic it's syntax based diff also for C based on tree-sitter
-
dangergrrl
hi toasterson ! :) i have only barely tried OI as a desktop and noticed it's still using the abandoned by upstream compiz (which I loved but it's not maintained upsteam anymore)
-
dangergrrl
I just used my box as a server and dual gpu laptop which i didn't deign to fix the issues so console/network only
-
dangergrrl
if someone wrote a better defect report than I can, I might try working with it but I'm stuck in a vm for now
-
dangergrrl
the X server can't find the firmware that it needs
-
dangergrrl
it would be a nice thing to fix
-
dangergrrl
btw, /tmp living in RAM seems like a great idea but zfs actually handles this much better and it led to a RAM exhaustion where I could not log on
-
dangergrrl
I don't have any of the error messages left, I had to reboot to use the system, perhaps the're in my logfiles
-
dangergrrl
at least some of you wrote zfs, you should just trust it
-
rmustacc
You can set a size on the /tmp mount point to limit it.
-
rmustacc
One can both trust zfs and not want to eat wear on an ssd.
-
dangergrrl
I had to reboot my system to login and that's not good either
-
dangergrrl
i didn't have an active shell so i could not delete the offending file
-
rmustacc
I didn't say it was good.
-
rmustacc
I even provided a suggestion to try and limit future problems.
-
dangergrrl
you should never have to reboot! my system had an uptime of 227 days! :)
-
rmustacc
You will always have to reboot to update the kernel.
-
dangergrrl
that part is true
-
rmustacc
But one shouldn't because of issues.
-
tsoome_
but... but... ksplices!
-
dangergrrl
runtime of years is the main thing *nix has over windows
-
dangergrrl
yes, you can run a web server on windows, it has to reboot weekly
-
jbk
tsoome_: amusingly, solaris had a similar feature _years_ before linux did, but it never really made it out of i guess beta.. IIRC, it could only be done by a sun support engineer (which I suspect was working with someone else on the backend)
-
tsoome_
yep, I know:)
-
dangergrrl
but like IIS will serve www content, not as well as nginx or apache but it's main defect is that windows servers have low uptimes
-
toasterson
dangergrrl: Compiz is still the thing that gives the most bang for the buck the people want. but default should be marco IIRC. Alas I am not happy with an DE really so I haven't really loocked recently.
-
dangergrrl
toasterson, my only complaint about compiz is that it's not maintained upstream
-
toasterson
Bumblee or optimus setups are not supported by the graphics drivers available and not even really work on linux. The main graphics card is the one that counts
-
dangergrrl
I love the he** outta it
-
dangergrrl
does the cube even still work?
-
dangergrrl
is this project providing bugfixes for compiz?
-
dangergrrl
yes, the newer maintained stuff isn't nearly as pretty as compiz
-
dangergrrl
unless you want illumos to *be* the upstream for it i don't think you should use it but that's just imo
-
dangergrrl
it won't get bugfixes ever again
-
dangergrrl
and it surely still has defects
-
dangergrrl
like it's the best UI I've ever used but someone has to keep it clean
-
rmustacc
I think your point is understood. Note that this isn't part of illumos. I would encourage you to engage with the folks dealing with it more directly.
-
dangergrrl
rmustacc, that's OI? it's hard to tell where one ends and the other begins
-
dangergrrl
illumos-gate includes a lot of things I wouldn't expect
-
rmustacc
It will be with whatever distro you're using that packaged and provided compiz.
-
dangergrrl
I'm using OI and I love it but I have the illumos-gate tree cloned and was just to lazy to do a find on it to search
-
dangergrrl
sorry
-
hpqoeu
hi, how would i go about checking out a coredump from a linux binary in an lx zone, in the global zone?
-
rmustacc
So when we dump cores from an lx binary, it is generaly in an illumos-based format so you'll need to use mdb.
-
danmcd
cd /zones/<zonename>/root/in/zone/path/to/core then mdb.
-
rmustacc
So in the lx zone, you would do something like /native/usr/bin/mdb <core>.
-
rmustacc
However, if the incoming linux programs are striped or don't have frame pointers, there will not be as much we can do.
-
tsoome_
Since there is 1-1 relation with issue and gerrit id, I guess, the followup to issue is not encouraged?
-
hpqoeu
I just get "mdb: failed to dereference symbol: unknown symbol name" trying to load the core file
-
tsoome_
I managed to produce a small bug with update, would like to fix it:D
-
hpqoeu
copying the core file over vs running it where it was created should make no difference, right? cause i've ran it in both the zone and as a user in the global zone, and i get the same error
-
jbk
i don't know if it'd be useful to pick back up and finish, but I did start adding support for .eh_frame stack traces to libproc (as new functions so they can act as an alternate if frame pointers aren't working)
-
jbk
based on the work that someone ( rmustacc? ) did back at joyent
-
hpqoeu
sorry, not trying to load the core file, but when it's actually loaded in mdb
-
hpqoeu
the binary producing the core dump isn't stripped according to file so i assume this should help
-
jbk
danmcd: do you know offhand how a conn_t behaves if the interface it was using to send traffic goes away (but the routing table still has a way to reach the destination)?
-
danmcd
It should continue to work. There may be some updates when the next datagram out discovers things new. (generation numbers may get updated, e.g.)
-
danmcd
In a meeting so I can't source-dive to give a better answer right now.
-
jbk
e.g. imagine if0 192.168.0.10/24, if2 10.10.0.20/24, route 0.0.0.0/0 -> 10.10.0.1, and now you have a tcp connection to 192.168.0.20, but if0 goes away
-
jbk
ok
-
danmcd
Hang on...
-
danmcd
Meeting just finished.
-
jbk
conn_t's are used for UDP as well, right?
-
danmcd
Yes, and I'm STILL pissed off 15+years later about that piss-poor naming decision.
-
danmcd
So when you say "if0 goes away" do you mean "ifconfig if0 down" or "ifconfig if0 unplumb"?
-
danmcd
The former will go through ipif_down() in $UTS/common/inet/ip/ip_if.c
-
danmcd
The latter will go through ill_delete() in the same source file.
-
jbk
unplumb
-
jbk
insterestingly
-
jbk
imagine ifconfig if0 unplumb
-
jbk
netstat -an still shows established connection w/ src of if0 ip
-
danmcd
Well, ill_delete() should clean everyting up, including deleting the attached ipifs.
-
danmcd
AHHH, source address selection... yeah, that might be a reason for an ipif to not disappear. Once you bind to a local address it's bound. You'll probably get errors on subsequent data transmission.
-
jbk
could it impact _other_ connections?
-
jbk
or UDP
-
jbk
(say DNS)
-
danmcd
If source address isn't frozen, the right thing should happen.
-
danmcd
An easy test is to do pings to (in your example) 192.168.0.20 and the source address SHOULD change.
-
danmcd
(and snoop the pings at the destination.
-
danmcd
If the destination sees source address for the now-unplumbed NIC responses will never reach upstack past IP.
-
danmcd
If you call connect() on UDP the source address will be caches on the conn_t for that UDP session.
-
danmcd
(It's why UDP apps that don't wish to be source-address-specific should always use sendto/sendmsg without binding anything beyond port.)
-
danmcd
Sorry for the verbosity. Does this help?
-
jbk
maybe
-
jbk
though this does seem like a bug
-
jbk
so using my scenario above
-
jbk
create TCP connection, host picks if0 for source IP
-
jbk
if0 unplumb
-
jbk
so source IP no longer exists
-
jbk
but if you pfiles process
-
jbk
socket is still there
-
rmustacc
Well the socket will continue to exist.
-
jbk
with now gone IP address
-
danmcd
Correct.
-
rmustacc
I mean, with tcp you have that 5-tuple and called connect().
-
danmcd
You bound it, you own it.
-
rmustacc
Why wouldn't it?
-
danmcd
^^^
-
jbk
yeah, unless the app isn't noticing things -- i would imagine trying to do anything on that socket should fail at that point
-
danmcd
I SUPPOSE one could mark sockets to return EADDRNOTAVAIL if they're bound locally to an address that no longer exists...
-
danmcd
But one of the beauties of TCP/IP is that sometimes addrs disappear and then reappear, and in those cases you really want to NOT have your TCP connection get disrupted.
-
jbk
i mean if the source IP no longer exists, you can no longer (at minimum) receive any replies
-
danmcd
Yep, and then for TCP the connection times out.
-
rmustacc
But also if you're idle and have long timeouts (like one might want for ssh), then you can actually suspend a laptop and resume it and not lose your connection.
-
jclulow
A locally attached IP might disappear but you might then start getting routed packets arriving through another link
-
jclulow
I wonder what we would do in that case
-
jclulow
I guess you'd have to put the IP up on the loopback or whatever instead to be eligible to receive them
-
jbk
though at that point, ARP has probably timed out
-
jbk
i'd imagine once we unplumb the interface, we'd stop responding
-
jbk
to arp requests for that IP
-
danmcd
jbk correct re: arp.
-
danmcd
jclulow you're describing some of the things Mobile IP tried to work out back in the 90s. (MobileIP was full of too many cooks in the IETF.)
-
danmcd
jclulow: also you could put local IP on lo0 OR as a /32 addr assigned to an existing nic. You might need to deal with strict-multihoming for lo0, e.g.
-
jclulow
Mmm
-
jclulow
We used to use lo0 aliases at the University for direct server return load balancing
-
danmcd
Most IP stacks ship strict-destination-multihoming OFF (or loose-destination-multihoming ON, depending on what angle you're looking at).
-
tsoome
.oO oradb-rg oraakel2 No Pending_offline
-
tsoome
live migrating the RG;)
-
gitomat
[illumos-gate] 15285 ucb: remove pragma ident -- Toomas Soome <tsoome⊙mc>
-
gitomat
[illumos-gate] 15309 zfs_acl_chmod_aclmode_001_pos is failing (fix add_file permission) -- Toomas Soome <tsoome⊙mc>