Skip to contentSkip to conversation

xfs_quota: Getting back disk space usage of a single directory

DISCUSSION Nathan Scott 1 participant 1 message Aug 11, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 9 lines · Asfand Yar Qazi

Hi,

If I have an XFS mount that contains many directories, each one project-quotaed, how can I use xfs_quota to get back the amount of quota used by just one directory?

Your question doesnt actually make sense... I assume you mean:
- you have recursively set different project IDs on multiple top level directories
- you would like to know space used by just one directory tree (project)?

Quoted 3 lines

I know I can use xfs_quota -x -c quot -p /blah to get back quota usages
for all projects in that mount, but I want to get back just one.

Definately don't use the "quot" command, that simply bulkstats the entire filesystem and reports on space used. Use the "quota" or "report" commands with the particular directory tree (project) you are interested in.

cheers.

--
Nathan