Skip to content

Instantly share code, notes, and snippets.

View postwait's full-sized avatar

Theo Schlossnagle postwait

View GitHub Profile
--- trafficserver/traffic/trunk/iocore/net/UnixNet.cc 2011/04/20 14:38:28 1095423
+++ trafficserver/traffic/trunk/iocore/net/UnixNet.cc 2011/04/20 14:42:25 1095424
@@ -389,10 +389,8 @@
pd->result = 0;
#if defined(USE_EDGE_TRIGGER)
- UnixNetVConnection *next_vc = NULL;
- vc = read_ready_list.head;
- while (vc) {
- next_vc = vc->read.ready_link.next;
diff --git a/lib/web/views/deployments.jade b/lib/web/views/deployments.jade
index 9e52ea0..063f0da 100644
--- a/lib/web/views/deployments.jade
+++ b/lib/web/views/deployments.jade
@@ -27,7 +27,7 @@ block content
form(method='post', action='/stacks/#{data.stack.name}/regions/#{data.name}')#deploy-form
p !{helpers.buildDiffSegment(data.stack.github_href, data.deployed_revision, data.stack.latest_revision)}
p
- input(type='hidden', name='to_revision', value='#{data.stack.latest_revision}')
+ input(type='text', name='to_revision', value='#{data.stack.latest_revision}', class='input_revision')
diff --git a/lib/stack.js b/lib/stack.js
index fc84572..9f6738a 100644
--- a/lib/stack.js
+++ b/lib/stack.js
@@ -346,7 +346,7 @@ Stack.prototype.getSummary = function(callback) {
var self = this, getter;
if (this.module.get_latestRevision) {
- getter = this.module.get_latestRevision.bind(null, {environment: this.config.env});
+ getter = this.module.get_latestRevision.bind(this, {environment: this.config.env});
diff --git a/lib/plugins/irc.js b/lib/plugins/irc.js
index 4220ca3..42d9524 100644
--- a/lib/plugins/irc.js
+++ b/lib/plugins/irc.js
@@ -26,7 +26,8 @@ exports.run = function(dreadnot) {
config = dreadnot.config.plugins.irc;
async.forEach(Object.keys(config.channels), function(network, callback) {
- var client = new irc.Client(network, config.nick);
+ var options = config.connect_opts ? config.connect_opts[network] : null;
diff --git a/usr/src/uts/common/fs/hsfs/hsfs_vnops.c b/usr/src/uts/common/fs/hsfs/hsfs_vnops.c
index 66d4b6c..2a5ceee 100644
--- a/usr/src/uts/common/fs/hsfs/hsfs_vnops.c
+++ b/usr/src/uts/common/fs/hsfs/hsfs_vnops.c
@@ -328,11 +328,11 @@ hsfs_getattr(
vap->va_nlink = hp->hs_dirent.nlink;
vap->va_size = (offset_t)hp->hs_dirent.ext_size;
- vap->va_atime.tv_sec = hp->hs_dirent.adate.tv_sec;
+ vap->va_atime.tv_sec = hp->hs_dirent.adate.tv_sec & 0x7fffffff;
Jan 26 23:28:17 gp-va-5 ^Mpanic[cpu5]/thread=ffffff0950412c20:
Jan 26 23:28:17 gp-va-5 genunix: [ID 683410 kern.notice] BAD TRAP: type=e (#pf Page fault) rp=ffffff0043824780 addr=ffffff09eff11d1c
Jan 26 23:28:17 gp-va-5 unix: [ID 100000 kern.notice]
Jan 26 23:28:17 gp-va-5 unix: [ID 839527 kern.notice] httpd:
Jan 26 23:28:17 gp-va-5 unix: [ID 753105 kern.notice] #pf Page fault
Jan 26 23:28:17 gp-va-5 unix: [ID 532287 kern.notice] Bad kernel fault at addr=0xffffff09eff11d1c
Jan 26 23:28:17 gp-va-5 unix: [ID 243837 kern.notice] pid=1462, pc=0xfffffffffb9c13a1, sp=0xffffff0043824870, eflags=0x10206
Jan 26 23:28:17 gp-va-5 unix: [ID 211416 kern.notice] cr0: 80050033<pg,wp,ne,et,mp,pe> cr4: 6f8<xmme,fxsr,pge,mce,pae,pse,de>
Jan 26 23:28:17 gp-va-5 unix: [ID 624947 kern.notice] cr2: ffffff09eff11d1c
Jan 26 23:28:17 gp-va-5 unix: [ID 625075 kern.notice] cr3: 659afe000
#if 0
#
# This is Solaris x86 specific GCC run-time environment patch, which
# makes it possible to reliably deploy .init snippets. Trouble is that
# Solaris linker erroneously pads .init segment with zeros [instead of
# nops], which is bound to SEGV early upon program start-up. This bug
# was recognized by GCC team [it is mentioned in source code], but
# workaround apparently and obviously erroneously slipped away in some
# newer GCC release. This patch compensates for this mishap by dropping
# modified values-X*.o into GCC installation tree. Object modules in
diff --git a/usr/src/head/zone.h b/usr/src/head/zone.h
index 34528a2..2181ff9 100644
--- a/usr/src/head/zone.h
+++ b/usr/src/head/zone.h
@@ -63,6 +63,7 @@ extern ssize_t zone_getattr(zoneid_t, int, void *, size_t);
extern int zone_setattr(zoneid_t, int, void *, size_t);
extern int zone_enter(zoneid_t);
extern int zone_list(zoneid_t *, uint_t *);
+extern int zone_get_zoneids(zoneid_t **, uint_t *);
extern int zone_shutdown(zoneid_t);
diff --git a/usr/src/uts/common/conf/param.c b/usr/src/uts/common/conf/param.c
index d72cfb0..5372a78 100644
--- a/usr/src/uts/common/conf/param.c
+++ b/usr/src/uts/common/conf/param.c
@@ -21,6 +21,7 @@
/*
* Copyright (c) 1983, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2012 Milan Jurik. All rights reserved.
+ * Copyright 2012 OmniTI Computer Consulting, Inc. All rights reserved.
*/
--- a/usr/src/uts/common/io/igb/igb_main.c
+++ b/usr/src/uts/common/io/igb/igb_main.c
@@ -27,6 +27,10 @@
* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
*/
+/*
+ * Copyright 2012, OmniTI Computer Consulting, Inc. All rights reserved.
+ */
+