]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfsprogs: libxcmd: encapsulate fs_table initialization
authorAlex Elder <aelder@sgi.com>
Mon, 3 Oct 2011 12:49:17 +0000 (12:49 +0000)
committerAlex Elder <aelder@sgi.com>
Thu, 6 Oct 2011 20:19:29 +0000 (15:19 -0500)
commit0900efe40df790d6696023dc0578306a4db487e6
tree742fe330a52893042d845bb8c747680b843e7411
parent19e786523a98399cc45f52ddee7c988c18b8432f
xfsprogs: libxcmd: encapsulate fs_table initialization

Change fs_table_initialise() so it takes an array of mount points
and an array of project identifiers as arguments (along with their
respective sizes).

Change the quota code to provide fs_table_initialise() these arrays
rather than doing the individual mount point and project insertion
by itself.  Other users just pass 0 counts, which results in filling
fs_table with entries for all mounted filesystems and all defined
projects.

This allows a few fs_table functions to be given private scope.

Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
growfs/xfs_growfs.c
include/path.h
io/parent.c
libxcmd/paths.c
quota/init.c