This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 225199 - gfs_quota hangs in do_list()
gfs_quota hangs in do_list()
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gfs-utils (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Abhijith Das
GFS Bugs
Depends On:
Blocks: 430133 430134
  Show dependency treegraph
Reported: 2007-01-29 13:41 EST by Abhijith Das
Modified: 2010-01-11 22:32 EST (History)
0 users

See Also:
Fixed In Version: RHBA-2007-0576
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-07 12:57:48 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Abhijith Das 2007-01-29 13:41:37 EST
Description of problem:
gfs_quota list -f /fs/path appears to hang when the hidden quota file becomes an
unmanageably large sparse file. Duplicate of RHEL4 bug bz210362

The gfs_quota tool sequentially reads the quota file ignorant of large holes in
the quota file which takes a lot of time. The gfs_quota tool needs to
intelligently skip the holes in the file and only read quota file information
that's on actual data-filled blocks.
Comment 1 Abhijith Das 2007-04-04 17:39:51 EDT
cvs commit -m "fix for bug 225199 - Same as GFS1 fix in RHEL4 (bug 210362). We
don't run throug the entire gfs_quota sparse file to do a list operation
anymore. We get the layout of the gfs_quota file on disk and only read quota
information off the data blocks that are actually in use. Also added
functionality to GFS_IOCTL_SUPER to provide the metadata of the hidden quota
file." gfs-kernel/src/gfs/ioctl.c gfs/gfs_quota/layout.c gfs/gfs_quota/Makefile
gfs/gfs_quota/main.c gfs/gfs_quota/gfs_quota.h

Checking in gfs-kernel/src/gfs/ioctl.c;
/cvs/cluster/cluster/gfs-kernel/src/gfs/ioctl.c,v  <--  ioctl.c
new revision: 1.15; previous revision: 1.14
Checking in gfs/gfs_quota/layout.c;
/cvs/cluster/cluster/gfs/gfs_quota/layout.c,v  <--  layout.c
new revision: 1.2; previous revision: 1.1
Checking in gfs/gfs_quota/Makefile;
/cvs/cluster/cluster/gfs/gfs_quota/Makefile,v  <--  Makefile
new revision: 1.6; previous revision: 1.5
Checking in gfs/gfs_quota/main.c;
/cvs/cluster/cluster/gfs/gfs_quota/main.c,v  <--  main.c
new revision: 1.4; previous revision: 1.3
Checking in gfs/gfs_quota/gfs_quota.h;
/cvs/cluster/cluster/gfs/gfs_quota/gfs_quota.h,v  <--  gfs_quota.h
new revision: 1.3; previous revision: 1.2

This fix takes care of the problem in gfs1. But the issue still exists for GFS2
(bug 235299).
Comment 2 Kiersten (Kerri) Anderson 2007-04-23 13:39:21 EDT
Fixing product name. Cluster Suite components were integrated into Enterprise
Linux for verion 5.0.
Comment 5 errata-xmlrpc 2007-11-07 12:57:48 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

Note You need to log in before you can comment on or make changes to this bug.