public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix "quota -n" command in xfs_quota.
@ 2007-04-19  8:37 Utako Kusaka
  2007-04-23 21:26 ` Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: Utako Kusaka @ 2007-04-19  8:37 UTC (permalink / raw)
  To: xfs

Hi,

"quota -n" command in xfs_quota don't work when specifying the project id.
This patch fixes it.

Example:
# ./xfs_quota -x -c 'quota -p -n 42' ~utako/mpnt
Disk quotas for Project logfiles (42)
Filesystem              Blocks      Quota      Limit  Warn/Time      Mounted on
/dev/sda6                   52          0          0   00 [--------] /home/utako/mpnt


Signed-off-by: Utako Kusaka <utako@tnes.nec.co.jp>
---

--- xfsprogs-2.8.20/quota/quota.orig	2007-04-18 10:36:38.000000000 +0900
+++ xfsprogs-2.8.20/quota/quota.c	2007-04-18 11:09:10.000000000 +0900
@@ -312,7 +312,7 @@ getprojectname(
 	static char	buffer[32];
 	fs_project_t	*p;
 
-	if ((p = getprprid(prid)))
+	if (!numeric && (p = getprprid(prid)))
 		return p->pr_name;
 	snprintf(buffer, sizeof(buffer), "#%u", (unsigned int)prid);
 	return &buffer[0];

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-24  6:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-19  8:37 [PATCH] Fix "quota -n" command in xfs_quota Utako Kusaka
2007-04-23 21:26 ` Christoph Hellwig
2007-04-24  6:10   ` Utako Kusaka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox