[PATCH 1/3] quota: Add a new quotactl command Q_XGETQSTATV

Christoph Hellwig hch at infradead.org
Wed Aug 21 01:43:57 CDT 2013


Sorry for being late to the game, but I don not like the in-kernel
interface here at all.  Given that Q_XGETQSTATV is a strict superset
of Q_XGETQSTAT there is no need for the second method - just always
fill out the larger in-kernel structure and only copy the smaller
information to userspace for the Q_XGETSTAT case.  That keeps the amount
of code required in the implementations of the methods low and follows
the model used elsewhere in the kernel (e.g. stat and statfs)



More information about the xfs mailing list