4 ms·
I can do one better for exit. The Solaris kernel debugger KDB can be used at runtime for inspecting some stats and also to change some global configurable varia
by lathiat 5y ago
I can do one better for exit. The Solaris kernel debugger KDB can be used at runtime for inspecting some stats and also to change some global configurable variables.
For whatever reason if you type a variable/symbol it assigns it the value 0. If you type exit nothing happens immediately but as soon as the next process exits usually a few seconds to 10s of seconds later the entire system kernel panics on a null pointer de-reference.
Kernel paniced our production ZFS filer twice before I cottoned on. Newer releases special cased “exit” not to do that.
- heavenlyblue 5y agoThat sounds like the most amazing UX I have ever encountered :) For those familiar with Solaris, is there any reason they did it this way? How can you possibly set the default behaviour of assigning any symbol a value of 0 by default?
- gpderetta 5y agoThat's of course due to the principle of maximal astonishment, a time honoured software design law.
- saagarjha 5y agoHey, it’s better than what C does for its variables ;)
- ChuckMcM 5y agobecause adb(1) did it that way.
- zaarn 5y agoSolaris is built on some idiosyncrasies (Speaking as someone who, as a Linux person, has to sysadmin Solaris systems). For example, on our Solaris machines, after install, "reboot" does not do a clean reboot, it's a hard reset. If you want a clean reboot you need "init 6". Same story for "shutdown" and "init 5". "killall" also kills all processes. Not the one you specified. Or more specifically it SIGKILLs all processes that have open files (ssh session and server go byebye). If you type "reboot" or "shutdown", this is in fact the binary that gets called do that. Sadly, Solaris is also one of the few systems that support the NFSv4 ACLs (Linux supports NFSv4 but not the ACL Extension, TrueNAS has a patch for that).
- ibotty 5y agoDoesn't Ganesha support NFSv4 ACLs?
- zaarn 5y agoOn Linux only for non-Filesystem backends (Ceph, Gluster, etc.) The only fork of Ganesha that supports it on a proper filesystem is the TrueNAS fork and that only on their ZFS Fork that brings NFSv4 ACLs to Linux. So really, no. You can't use NFSv4 ACLs with Ganesha on Linux outside of Forks or using scale-out data stores.
- cyberpunk 5y agoRemember how on sparc machines if you turned off your laptop with the console cable connected it powers the servers down too? That was a fun lesson…