Ideas to do custom operation just after mount?

Qu Wenruo
2015-12-17T01:55:28Z

Hi,

Will xfstests provides some API to do some operation just after
mounting a filesystem?

Some filesystem(OK, btrfs again) has some function(now qgroup only)
which needed to be enabled by ioctl instead of mount option.

Currently, for btrfs qgroup we added special test case enabling qgroup
and do test.
But there is only less than 10 qgroup test case and we didn't test most
of the rest cases with qgroup enable.

Things will get even worse if we are adding inband-deduplication.

So is there any good idea to do some operation just after mounting in
xfstests?

Thanks,
Qu