Bug 2136046 - xfs_quota "cannot find mount point for path" error for an xfs volume mount not in the current search domain
Summary: xfs_quota "cannot find mount point for path" error for an xfs volume mount no...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: xfsprogs
Version: 8.6
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Pavel Reichl
QA Contact: Murphy Zhou
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-19 07:58 UTC by bogdan.voaidas
Modified: 2023-07-18 01:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-147189 0 None None None 2023-01-31 23:36:11 UTC
Red Hat Issue Tracker RHELPLAN-147190 0 None None None 2023-01-31 23:36:13 UTC

Description bogdan.voaidas 2022-10-19 07:58:54 UTC
Description of problem:
I have 2 xfs volumes, one mounted with u+g quota and the other with u+g+p quota and some projects defined for the second volume.

Whenever I try to set or get report quota on the first volume mount (doesn't have project quota enabled and no projects defined anyway for this path) I get an error that 
"xfs_quota: cannot find mount point for path ..." for each project defined for the second volume.

## mount
/dev/mapper/lv_home on /export/home type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,usrquota,grpquota)
/dev/mapper/lv_work on /export/work type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,usrquota,prjquota,grpquota)

# xfs_quota -xc report /export/home

xfs_quota: cannot find mount point for path `/export/work/_group/msg': No such file or file directory
xfs_quota: cannot find mount point for path `/export/work/_group/astroparticle': No such file or file directory
...

Version-Release number of selected component (if applicable): 5.0.0

Comment 2 Eric Sandeen 2023-04-24 22:04:29 UTC
moving this to xfsprogs, since xfs_quota is contained in that package, not the generic quota package.

Comment 3 Eric Sandeen 2023-07-18 01:53:02 UTC
The root cause here (IIRC) is that if you specify a specific mount point on the command line, it doesn't do a full scan of all mount points.

As a result when it later walks through the project quota list, it's unable to find the mount points associated with them if they aren't under the mount point specified - because they weren't scanned.

A workaround is probably to simply not specify the mount point, but we should find a way to fix this up.


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