Looks good, Reviewed-by: Christoph Hellwig <hch at lst.de> Can you also create a testcase for it? Should be simple enough by creating symlinks for the scratch device and mount and testing the quota tool on it.