Skip to content

Instantly share code, notes, and snippets.

View citrus-it's full-sized avatar

Andy Fiddaman citrus-it

View GitHub Profile

gcc 4

%{ansi:values-Xc.o%s}
%{!ansi:values-Xa.o%s}

illumos gcc7

% git diff
diff --git a/usr/src/cmd/zpool/zpool_main.c b/usr/src/cmd/zpool/zpool_main.c
index 2e8082b681..d0504345ca 100644
--- a/usr/src/cmd/zpool/zpool_main.c
+++ b/usr/src/cmd/zpool/zpool_main.c
@@ -3226,6 +3226,7 @@ print_vdev_stats(zpool_handle_t *zhp, const char *name, nvlist_t *oldnv,
         * print all other top-level devices
         */
        for (uint_t n = 0; n < 3; n++) {

On-demand VNICs in OmniOS

In this zone configuration:

  • test0 has a mac-address specified
  • test2 does not have a global-nic attribute configured, so it's a traditional VNIC that needs creating by hand in the GZ
  • test3 has a configured vlan
bloody# zonecfg -z test info net
net:
bloody# zonecfg -z test info
zonename: test
zonepath: /data/zone/test
brand: pkgsrc
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
pfexec bhyve
-H
-B "1,product=OmniOS HVM"
# SmartOS never specifies a hostbridge, amd_hostbridge is needed for at least Free/OpenBSD
# Options are none, hostbridge or amd_hostbridge
# NB: For 'hostbridge' vendor and device are set to a NetApp id
-s 0,amd_hostbridge
# LPC PCI-ISA bridge providing connectivity to com1, com2, and bootrom
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <security/cryptoki.h>
#include <security/pkcs11.h>
int
main()
{
CK_SESSION_HANDLE session;