On Tue, Mar 02, 2021 at 03:22:50PM -0800, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > In commit fc7b3903, we tried to make _require_dm_target smart enough to > _notrun tests that require a device mapper target that isn't compatible > with "DAX". However, as of this writing, the incompatibility stems from > device mapper's unwillingness to switch access modes when running atop > DAX (persistent memory) devices, and has nothing to do with the > filesystem mount options. > > Since filesystems supporting DAX don't universally require "dax" in the > mount options to enable that functionality, switch the test to query > sysfs to see if the scratch device supports DAX. > > Fixes: fc7b3903 ("dax/dm: disable testing on devices that don't support dax") > Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> Looks good, Reviewed-by: Christoph Hellwig <hch@xxxxxx>