]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Don't query project quota info on filesystems not mounted with pquota
authorBarry Naujok <bnaujok@sgi.com>
Mon, 23 Jul 2007 16:02:20 +0000 (16:02 +0000)
committerBarry Naujok <bnaujok@sgi.com>
Mon, 23 Jul 2007 16:02:20 +0000 (16:02 +0000)
Merge of master-melb:xfs-cmds:29202a by kenmcd.

  Update to 2.9.3

VERSION
doc/CHANGES
quota/free.c

diff --git a/VERSION b/VERSION
index e6abef7de1cfeb8a63e89ddc3a8c2e280c52c1ae..a33b18f067f8353b6f153a78270d82b69114fe09 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -3,5 +3,5 @@
 #
 PKG_MAJOR=2
 PKG_MINOR=9
-PKG_REVISION=2
+PKG_REVISION=3
 PKG_BUILD=1
index bbaced5f17a548c6b91376ec46970f28bc2ee223..023ad1adc7b061d9f382f66c9dd4d03c0d899618 100644 (file)
@@ -1,4 +1,17 @@
-xfsprogs-2.9.2 (16 July 2007)
+xfsprogs-2.9.3 (23 July 2007)
+       - Make xfs_repair support > 512 byte sector sizes.
+       - Fixed include Makefile for new common header (xfs_metadump.h).
+       - Fixed xfs_quota state command segfaulting with no mounted
+         XFS filesystems.
+       - Fixed xfs_quota printing out unusual message with "path n" command
+         with no mounted XFS filesystems.
+       - Fixed "quota -n" command with project IDs.
+       - Improved "free" output when project quotas are defined, but
+         haven't been enable on the filesystem.
+         Thanks to Utako Kusaka <utako@tnes.nec.co.jp> for the above four
+         fixes.
+
+xfsprogs-2.9.2 (18 July 2007)
        - Next major round of xfs_repair performance improvements:
                - Cache disk nlink values in Phase 3 for Phase 7.
                - Do multithreaded prefetch/processing based on AG stride
@@ -14,6 +27,7 @@ xfsprogs-2.9.2 (16 July 2007)
          the new superblocks.
        - Fix up xfs_info and xfs_quota's -c handling with global commands.
        - Improve xfs_bmap -vp output to always show the FLAGS column.
+       - Update man pages.
 
 xfsprogs-2.9.1 (28 June 2007)
        - Added filestreams support to xfs_io.
index 075dad8b287086ee1fc7a6cab0c62e036895c6ba..28b944bbe1412818e54c3c332287a8a26aaf8639 100644 (file)
@@ -116,12 +116,17 @@ projects_free_space_data(
        __uint64_t              *rused,
        __uint64_t              *rfree)
 {
+       fs_quota_stat_t         qfs;
        fs_disk_quota_t         d;
        struct fsxattr          fsx;
        uint                    type = XFS_PROJ_QUOTA;
        char                    *dev = path->fs_name;
        int                     fd;
 
+       if (xfsquotactl(XFS_GETQSTAT, dev, type, 0, &qfs) < 0 ||
+                       !(qfs.qs_flags & XFS_QUOTA_PDQ_ACCT))
+               return 0;
+
        if ((fd = open(path->fs_dir, O_RDONLY)) < 0) {
                fprintf(stderr, "%s: cannot open %s: %s\n",
                        progname, path->fs_dir, strerror(errno));