Open target file in read only mode (fixes case of running it from non-root for root...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 9 Dec 2021 16:05:34 +0000 (17:05 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 9 Dec 2021 16:05:34 +0000 (17:05 +0100)
xfs_lsprojid

index 75a847d98217709957590e69d66ae4b7bdd9bc7d..ff630a4030d2bea587d17609b0c02dfd197c769c 100644 (file)
@@ -2,7 +2,7 @@
 
 # simple wrapper to show project id for specified paths, arekm@maven.pl 20111117
 
-xfs_io -p "$0" -c "stat" $@ | awk '
+xfs_io -r -p "$0" -c "stat" $@ | awk '
 /^fd\.path =/ { projid=""; path=$3; gsub(/^\"/, "", path); gsub(/\"$/, "", path); }
 /^fsxattr\.projid =/ { projid=$3; print path ": " projid; }
 '
This page took 0.047534 seconds and 4 git commands to generate.