Skip to content

Instantly share code, notes, and snippets.

View nixpanic's full-sized avatar
👨‍💻

Niels de Vos nixpanic

👨‍💻
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)