]> git.pld-linux.org Git - packages/xfsprogs.git/blob - xfs_lsprojid
Open target file in read only mode (fixes case of running it from non-root for root...
[packages/xfsprogs.git] / xfs_lsprojid
1 #!/bin/sh
2
3 # simple wrapper to show project id for specified paths, arekm@maven.pl 20111117
4
5 xfs_io -r -p "$0" -c "stat" $@ | awk '
6 /^fd\.path =/ { projid=""; path=$3; gsub(/^\"/, "", path); gsub(/\"$/, "", path); }
7 /^fsxattr\.projid =/ { projid=$3; print path ": " projid; }
8 '
This page took 0.060665 seconds and 4 git commands to generate.