From: Alex Elder <aelder@sgi.com>
To: xfs@oss.sgi.com
Subject: [PATCH 0/3] xfsprogs: xfs_quota: a few fixes
Date: Wed, 24 Aug 2011 16:53:40 -0500 [thread overview]
Message-ID: <1314222823-24101-1-git-send-email-aelder@sgi.com> (raw)
The main problem solved in this series is that for project
quotas, the numbers of blocks reported by the xfs_quota "df"
subcommand is twice what it should be. While looking at
this I also noticed two other problems that I corrected.
Below is a script that demonstrates the problem.
-Alex
#!/bin/bash
############################################################
# Note that the following clobbers whatever is on /dev/sdk
# It also clobbers files /etc/project and /etc/projid.
# And it uses and then removes /qmnt.
############################################################
# Initialize the filesystem and mount it with project quotas
mkfs.xfs -f /dev/sdk
mkdir -p /qmnt
mount -t xfs -o prjquota /dev/sdk /qmnt
# Set up the project quota configuration files
echo test:1 > /etc/projid
echo 1:/qmnt/test > /etc/projects
# Make the top-level directory, set up quotas on it
mkdir /qmnt/test
xfs_quota -x -c 'project -s test' /qmnt
# Assign block quota limits
xfs_quota -x -c 'limit -p bsoft=500m bhard=500m test' /qmnt
# The "report" command will show the right numbers
xfs_quota -x -c report /qmnt
# But the "df" command will show doubled block counts
xfs_quota -x -c df /qmnt
# This time using "human readable" output
xfs_quota -x -c 'report -h' /qmnt
xfs_quota -x -c 'df -h' /qmnt
# Clean up
umount /qmnt
rmdir /qmnt
rm /etc/projid /etc/projects
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next reply other threads:[~2011-08-24 21:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-24 21:53 Alex Elder [this message]
2011-08-24 21:53 ` [PATCH 1/3] xfsprogs: xfs_quota: return real-time used data as intended Alex Elder
2011-08-24 21:53 ` [PATCH 2/3] xfsprogs: xfs_quota: don't double project block counts Alex Elder
2011-08-25 5:01 ` Christoph Hellwig
2011-08-24 21:53 ` [PATCH 3/3] xfsprogs: xfs_quota: improve calculation for percentage display Alex Elder
2011-08-25 5:02 ` Christoph Hellwig
2011-08-25 4:59 ` [PATCH 1/3] xfsprogs: xfs_quota: return real-time used data as intended Christoph Hellwig
2011-08-25 4:58 ` [PATCH 0/3] xfsprogs: xfs_quota: a few fixes Christoph Hellwig
2011-08-25 13:19 ` Alex Elder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1314222823-24101-1-git-send-email-aelder@sgi.com \
--to=aelder@sgi.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox