Bug#618730: xfsprogs: xfs_quota -xc "report -Nt /xfs_test" i.e. cause error "XFS_GETQUOTA: No such process"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Package: xfsprogs
Version: 3.1.4
Severity: normal
Tags: squeeze patch

Consider the following situation:

A block-device with xfs-filesystem is mounted on /xfs_test and the xfs_quota option is enabled (i.e. by mounting with option uqnoenforce).

Then if you use the prog. xfs_quota to get a report of the user quota on /xfs, you get sth. like this:

foobar:~#xfs_quota -xc "report -Nt /xfs_test"

root          2019836          0          0     00 [--------]

XFS_GETQUOTA: No such process
XFS_GETQUOTA: No such process
XFS_GETQUOTA: No such process
XFS_GETQUOTA: No such process
XFS_GETQUOTA: No such process

I have attached a patch which worked fine for me.

I want to thank Eric Sandeen for fixing this bug and refer to http://patchwork.xfs.org/patch/1714/


Regards, Thomas


-- System Information:
Debian Release: 6.0
  APT prefers squeeze-updates
  APT policy: (500, 'squeeze-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xfsprogs depends on:
ii  libblkid1                     2.17.2-9   block device id library
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib
ii  libreadline5                  5.2-7      GNU readline and history libraries
ii  libuuid1                      2.17.2-9   Universally Unique ID library

xfsprogs recommends no packages.

Versions of packages xfsprogs suggests:
pn  acl                           <none>     (no description available)
pn  attr                          <none>     (no description available)
pn  quota                         <none>     (no description available)
ii  xfsdump                       3.0.4      Administrative utilities for the X

-- no debconf information
diff -crB xfsprogs-3.1.4/quota/report.c xfsprogs-3.1.4_quota_fix/quota/report.c
*** xfsprogs-3.1.4/quota/report.c	2009-04-27 07:48:02.000000000 +0200
--- xfsprogs-3.1.4_quota_fix/quota/report.c	2011-03-17 23:03:06.479607647 +0100
***************
*** 302,308 ****
  	int		count;
  
  	if (xfsquotactl(XFS_GETQUOTA, dev, type, id, (void *)&d) < 0) {
! 		if (errno != ENOENT && errno != ENOSYS)
  			perror("XFS_GETQUOTA");
  		return 0;
  	}
--- 302,308 ----
  	int		count;
  
  	if (xfsquotactl(XFS_GETQUOTA, dev, type, id, (void *)&d) < 0) {
! 		if (errno != ENOENT && errno != ENOSYS && errno != ESRCH)
  			perror("XFS_GETQUOTA");
  		return 0;
  	}
_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs

[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux