Skip to content

Instantly share code, notes, and snippets.

View cholcombe973's full-sized avatar

Chris Holcombe cholcombe973

  • @tesla.com
  • Portland
View GitHub Profile
+ echo xlators/debug/io-stats/src/io-stats.c
YAML:38:29: error: invalid boolean
BreakBeforeBinaryOperators: None
^~~~
Error reading /home/chris/glusterfs/.clang-format: Invalid argument
Can't find usable .clang-format, using LLVM style
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct nfs_context {
_unused: [u8; 0],
}
/*
//libnfs.h
#ifndef _LIBNFS_H_
#define _LIBNFS_H_
// automatically generated by the FlatBuffers compiler, do not modify
#[allow(non_camel_case_types)]
#[repr(i8)]
#[derive(Clone, Copy, PartialEq, Debug)]
pub enum ResultType {
Ok = 0,
Err = 1
}
extern crate conhash;
#[macro_use]
extern crate log;
extern crate simplelog;
use conhash::{ConsistentHash, Node};
use simplelog::{Config, TermLogger};
#[derive(Debug, Clone, Eq, PartialEq)]
struct ServerNode {
fn run_ceph_command(
cluster_handle: rados_t,
name: &str,
json_data: serde_json::Value,
) -> Result<(Option<String>, Option<String>), String> {
let mut data: Vec<*mut c_char> = Vec::with_capacity(1);
let data_str = CString::new(json_data.to_string()).map_err(
|e| e.to_string(),
)?;
data.push(data_str.as_ptr() as *mut i8);
-2> 2017-08-14 22:11:41.527112 7fec960b07c0 15 filestore(/var/lib/ceph/osd/ceph-1) collection_getattr /var/lib/ceph/osd/ceph-1/current/4.364_head 'info'
-1> 2017-08-14 22:11:41.527130 7fec960b07c0 10 filestore(/var/lib/ceph/osd/ceph-1) collection_getattr /var/lib/ceph/osd/ceph-1/current/4.364_head 'info' = -61
0> 2017-08-14 22:11:41.528562 7fec960b07c0 -1 osd/PG.cc: In function 'static int PG::peek_map_epoch(ObjectStore*, spg_t, epoch_t*, ceph::bufferlist*)' thread 7fec960b07c0 time 2017-08-14 22:11:41.527134
osd/PG.cc: 2911: FAILED assert(r > 0)
diff --git a/src/main.rs b/src/main.rs
index 18bcc19..70d2f2c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -404,7 +404,7 @@ fn cmd_create(
chdir(&*bundle).chain_err(
|| format!("failed to chdir to {}", bundle),
)?;
- let spec = Spec::load(CONFIG).chain_err(
+ let mut spec = Spec::load(CONFIG).chain_err(
unit-gluster-88: 10:05:49 INFO unit.gluster/88.install error: no relation id specified
unit-gluster-88: 10:05:49 INFO unit.gluster/88.install Traceback (most recent call last):
unit-gluster-88: 10:05:49 INFO unit.gluster/88.install File "/var/lib/juju/agents/unit-gluster-88/charm/hooks/install", line 19, in <module>
unit-gluster-88: 10:05:49 INFO unit.gluster/88.install main()
unit-gluster-88: 10:05:49 INFO unit.gluster/88.install File "/usr/local/lib/python3.5/dist-packages/charms/reactive/__init__.py", line 78, in main
unit-gluster-88: 10:05:49 INFO unit.gluster/88.install bus.dispatch()
unit-gluster-88: 10:05:49 INFO unit.gluster/88.install File "/usr/local/lib/python3.5/dist-packages/charms/reactive/bus.py", line 423, in dispatch
unit-gluster-88: 10:05:49 INFO unit.gluster/88.install _invoke(other_handlers)
unit-gluster-88: 10:05:49 INFO unit.gluster/88.install File "/usr/local/lib/python3.5/dist-packages/charms/reactive/bus.py", line 406, in _invoke
unit-gluster-88: 10:05:49 INFO unit
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cliOutput>
<opRet>0</opRet>
<opErrno>0</opErrno>
<opErrstr/>
<volInfo>
<volumes>
<volume>
<name>test</name>
<id>b72ad57d-1c9f-4692-b6d1-1db55ce71b8b</id>

Keybase proof

I hereby claim:

  • I am cholcombe973 on github.
  • I am cholcombe973 (https://keybase.io/cholcombe973) on keybase.
  • I have a public key ASCCs4TBYV8FRiKZv5T0eyktJy1XzTYYGd0aiViAS2M1ZAo

To claim this, I am signing this object: