[From nobody Tue Jan 31 04:11:09 2012 Received: (at submit) by bugs.debian.org; 17 Mar 2011 23:37:07 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on busoni.debian.org X-Spam-Level: X-Spam-Bayes: score:0.0000 Tokens: new, 37; hammy, 151; neutral, 116; spammy, 0. spammytokens: hammytokens:0.000-+--H*M:reportbug, 0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug, 0.000-+--H*UA:reportbug, 0.000-+--H*x:4.12.6 X-Spam-Status: No, score=-10.4 required=4.0 tests=BAYES_00,FOURLA, FVGT_m_MULTI_ODD,HAS_PACKAGE,MURPHY_DRUGS_REL8,SPF_PASS,URIBL_CNKR, XMAILER_REPORTBUG autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Return-path: <tblomenk@math.uni-bielefeld.de> Received: from mail1.math.uni-bielefeld.de ([129.70.14.32]) by busoni.debian.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from <tblomenk@math.uni-bielefeld.de>) id 1Q0MkX-0007Id-3L for submit@bugs.debian.org; Thu, 17 Mar 2011 23:37:07 +0000 Received: from store1b.math.uni-bielefeld.de (store1b.math.uni-bielefeld.de [129.70.14.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail1.math.uni-bielefeld.de (Postfix) with ESMTPSA id AC8CB123726; Fri, 18 Mar 2011 00:30:20 +0100 (CET) Content-Type: multipart/mixed; boundary="===============7436659676756291069==" MIME-Version: 1.0 From: Thomas Blomenkamp <tblomenk@math.uni-bielefeld.de> To: Debian Bug Tracking System <submit@bugs.debian.org> Subject: xfsprogs: xfs_quota -xc "report -Nt /xfs_test" i.e. cause error "XFS_GETQUOTA: No such process" Message-ID: <20110317233011.23073.36060.reportbug@store1b.math.uni-bielefeld.de> X-Mailer: reportbug 4.12.6 Date: Fri, 18 Mar 2011 00:30:11 +0100 X-Greylist: delayed 390 seconds by postgrey-1.31 at busoni; Thu, 17 Mar 2011 23:37:00 UTC Delivered-To: submit@bugs.debian.org This is a multi-part MIME message sent by reportbug. --===============7436659676756291069== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --===============7436659676756291069== Content-Type: text/x-diff; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xfsprogs_quota_report_fix.patch" 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; } --===============7436659676756291069==-- ]