]> git.pld-linux.org Git - packages/xfsprogs.git/commitdiff
- rel 2; simple wrapper for showing project quota id auto/th/xfsprogs-3_1_6-2
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 17 Nov 2011 09:27:08 +0000 (09:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    xfs_lsprojid -> 1.1
    xfsprogs.spec -> 1.145

xfs_lsprojid [new file with mode: 0644]
xfsprogs.spec

diff --git a/xfs_lsprojid b/xfs_lsprojid
new file mode 100644 (file)
index 0000000..75a847d
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# simple wrapper to show project id for specified paths, arekm@maven.pl 20111117
+
+xfs_io -p "$0" -c "stat" $@ | awk '
+/^fd\.path =/ { projid=""; path=$3; gsub(/^\"/, "", path); gsub(/\"$/, "", path); }
+/^fsxattr\.projid =/ { projid=$3; print path ": " projid; }
+'
index 612da8832b668c501a29e49417051496abe0748d..1728c9aaa5da370cb65e924730b22d19c738f4ea 100644 (file)
@@ -7,11 +7,12 @@ Summary:      Tools for the XFS filesystem
 Summary(pl.UTF-8):     Narzędzia do systemu plików XFS
 Name:          xfsprogs
 Version:       3.1.6
-Release:       1
+Release:       2
 License:       LGPL v2.1 (libhandle), GPL v2 (the rest)
 Group:         Applications/System
 Source0:       ftp://linux-xfs.sgi.com/projects/xfs/cmd_tars/%{name}-%{version}.tar.gz
 # Source0-md5: fbd2c1c5abed4b11047bea6ce53bc6e4
+Source1:       xfs_lsprojid
 Patch0:                %{name}-miscfix-v2.patch
 Patch2:                %{name}-sharedlibs.patch
 Patch3:                %{name}-pl.po-update.patch
@@ -202,6 +203,8 @@ export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV
 %{__make} install-dev \
        DIST_MANIFEST="$DIST_INSTALL_DEV"
 
+install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/xfs_lsprojid
+
 ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libhandle.so.*.*.*) \
         $RPM_BUILD_ROOT%{_libexecdir}/libhandle.so
 ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libxcmd.so.*.*.*) \
This page took 0.083004 seconds and 4 git commands to generate.