File tree Expand file tree Collapse file tree 4 files changed +25
-1
lines changed
Expand file tree Collapse file tree 4 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 1616
1717 steps :
1818 - uses : actions/checkout@v2
19+ - name : Install dependencies
20+ run : sudo apt-get install gcc glusterfs-common libglusterfs-dev llvm-dev libclang-dev clang
1921 - name : Build
2022 run : cargo build --verbose
2123 - name : Run tests
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ documentation = "https://docs.rs/gfapi-sys"
88license = " MIT"
99edition = ' 2018'
1010
11+ [build-dependencies ]
12+ bindgen = " 0.53.1"
13+
1114[dependencies ]
1215errno = " ^0.2"
1316libc = " ^0.2"
Original file line number Diff line number Diff line change 1+ apt-get install glusterfs-server
2+
3+ # Enable and start GlusterFS SystemD Unit
4+ systemctl enable glusterd
5+ systemctl start glusterd
6+
7+ # Create directory for brick
8+ mkdir -p /data/glusterfs/myvol1/brick1
9+
10+ # Create volume in gluster using parameter 'force' to skip verification to create from '/'
11+ gluster volume create myvol1 $HOSTNAME :/data/glusterfs/myvol1/brick1/brick force
12+
13+ # Start server
14+ gluster volume start myvol1
15+
16+ # To mount on clients
17+ mkdir -p /mnt/glusterfs
18+ mount -t glusterfs $HOSTNAME :myvol1 /mnt/glusterfs
19+
Original file line number Diff line number Diff line change 33//! tasks such as cloud storage and media streaming.
44//! This crate exposes the glfs module for low level interaction with the api.
55//! It also exposes a set of safe wrappers in the gluster module
6-
76#[ macro_use]
87extern crate log;
98
109pub mod glfs;
1110pub mod gluster;
11+
You can’t perform that action at this time.
0 commit comments