Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions rust.yml → .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get install gcc glusterfs-common libglusterfs-dev llvm-dev libclang-dev clang
- name: Build
run: cargo build --verbose
- name: Run tests
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ documentation = "https://docs.rs/gfapi-sys"
license = "MIT"
edition = '2018'

[build-dependencies]
bindgen = "0.53.1"

[dependencies]
errno = "^0.2"
libc = "^0.2"
Expand Down
19 changes: 19 additions & 0 deletions scripts/install_gluster.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apt-get install glusterfs-server

# Enable and start GlusterFS SystemD Unit
systemctl enable glusterd
systemctl start glusterd

# Create directory for brick
mkdir -p /data/glusterfs/myvol1/brick1

# Create volume in gluster using parameter 'force' to skip verification to create from '/'
gluster volume create myvol1 $HOSTNAME:/data/glusterfs/myvol1/brick1/brick force

# Start server
gluster volume start myvol1

# To mount on clients
mkdir -p /mnt/glusterfs
mount -t glusterfs $HOSTNAME:myvol1 /mnt/glusterfs

2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
//! tasks such as cloud storage and media streaming.
//! This crate exposes the glfs module for low level interaction with the api.
//! It also exposes a set of safe wrappers in the gluster module

#[macro_use]
extern crate log;

pub mod glfs;
pub mod gluster;