[PATCH v1 2/2] tests/quotactl-xfs.c: fix typos and unify code
Dmitry V. Levin
ldv at altlinux.org
Mon Jun 18 09:00:43 UTC 2018
On Fri, Jun 15, 2018 at 04:05:24PM +0800, Zhibin Li wrote:
> I haven't checked decoding of successful quotaclt-xfs(,-v) because for now
> I don't know how to solve or workaround the alignment problems described in
> my status report #4. I'm doing research but I' m not sure what I can find
> eventually (considering there is already a structure fs_quota_statv with
> appropriate layout). Any suggestions or guidance?
Since struct fs_qfilestat and struct xfs_dqstats differ between
personalities, the decoder that uses them (the one that handles
Q_XGETQSTAT) has to be fixed. There are a lot of examples how to
implement this, the latest one is print_aio_sigset.c; you can just move
the decoder of struct xfs_dqstats into a separate file and mpersify it.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 801 bytes
Desc: not available
More information about the Strace-devel