Skip to content

Instantly share code, notes, and snippets.

View mihail-dev's full-sized avatar

Mihail Ivanov mihail-dev

  • London, United Kingdom
View GitHub Profile
@mihail-dev
mihail-dev / gfid-resolver.sh
Created October 17, 2016 16:07 — forked from louiszuckerman/gfid-resolver.sh
Glusterfs GFID Resolver Turns a GFID into a real path in the brick
#!/bin/bash
if [[ "$#" < "2" || "$#" > "3" ]]; then
cat <<END
Glusterfs GFID resolver -- turns a GFID into a real file path
Usage: $0 <brick-path> <gfid> [-q]
<brick-path> : the path to your glusterfs brick (required)