Skip to content

Instantly share code, notes, and snippets.

static int
bpobj_iterate_impl(bpobj_t *initial_bpo, bpobj_itor_t func, void *arg,
dmu_tx_t *tx, boolean_t free)
{
int err = 0;
list_t stack;
list_create(&stack, sizeof (bpobj_info_t),
offsetof(bpobj_info_t, bpi_node));
list_insert_head(&stack, bpi_alloc(initial_bpo, NULL, 0, 0));
/*
* ==========================================================================
* Metaslabs
* ==========================================================================
*/
static void
metaslab_aux_histograms_clear(metaslab_t *msp)
{
/*
#!/usr/sbin/dtrace -Cs
#pragma D option quiet
spa_t *spa;
vdev_queue_pending_remove:entry
/!spa && stringof(args[1]->io_spa->spa_name) == $$1/
{
spa = args[1]->io_spa;
#!/usr/sbin/dtrace -Cs
#pragma D option quiet
#pragma D option aggrate=5hz
#pragma D option switchrate=5hz
#pragma D option dynvarsize=5m
#pragma D option experimental
BEGIN
{
package main
import (
"bytes"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
@sdimitro
sdimitro / lisp2c.rb
Created January 27, 2015 20:48
Rudimentary lisp to C translation
# Note: The algorithms in the parsing section
# were described by Peter Norvig.
# Warning: I assume that all input is correct
# and only integers and binop functions take place.
# Data Structures for the Transpiller
var_defs = []
@sdimitro
sdimitro / gist:59806de6528f27982ae7
Created January 16, 2015 15:01
Action-script errors
mail_msg:
==== package build errors (DEBUG) ====
dmake: Warning: Command failed for target `packages.i386/SUNWcs.dep'
dmake: Warning: Target `install' not remade because of errors
==== Validating manifests against proto area ====
Entries present in manifests but not proto area:
file NOHASH group=sys mode=0644 owner=root path=etc/security/auth_attr
@sdimitro
sdimitro / gist:d5757800eada0deb61c7
Created December 29, 2014 10:02
Validating manifests against proto area
==== Validating manifests against proto area ====
Entries present in proto area but not manifests:
dir group=group mode=0755 owner=owner path=usr/lib/locale/POSIX/LC_COLLATE
dir group=group mode=0755 owner=owner path=usr/lib/locale/POSIX/LC_CTYPE
dir group=group mode=0755 owner=owner path=usr/lib/locale/POSIX/LC_MESSAGES
dir group=group mode=0755 owner=owner path=usr/lib/locale/POSIX/LC_MONETARY
dir group=group mode=0755 owner=owner path=usr/lib/locale/POSIX/LC_NUMERIC
dir group=group mode=0755 owner=owner path=usr/lib/locale/POSIX/LC_TIME
file usr/lib/locale/POSIX/locale_description group=group mode=0444 owner=owner path=usr/lib/locale/POSIX/locale_description