Skip to content

Instantly share code, notes, and snippets.

View nixpanic's full-sized avatar
🏠
Working from home

Niels de Vos nixpanic

🏠
Working from home
View GitHub Profile
#!/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)