On Fri, Jun 15, 2018 at 10:49:01AM +0800, Eryu Guan wrote: > On Wed, Jun 13, 2018 at 03:50:57PM -0700, Darrick J. Wong wrote: > > From: Darrick J. Wong <darrick.wong@xxxxxxxxxx> > > > > Since XFS has deprecated FIBMAP on FSDAX filesystems, we can't use > > FIBMAP to verify stripe alignment anymore. FIEMAP has existed for quite > > some time now, so port it to use that instead, and only fall back to > > FIBMAP if FIEMAP doesn't exist. > > > > Tested-by: ross.zwisler@xxxxxxxxxxxxxxx > > Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> > > --- > > src/t_stripealign.c | 72 +++++++++++++++++++++++++++++++++++++++++++-------- > > 1 file changed, 61 insertions(+), 11 deletions(-) > > > > diff --git a/src/t_stripealign.c b/src/t_stripealign.c > > index 05ed36b5..690f743a 100644 > > --- a/src/t_stripealign.c > > +++ b/src/t_stripealign.c > > @@ -17,8 +17,13 @@ > > #include <fcntl.h> > > #include <stdio.h> > > #include <sys/ioctl.h> > > +#include <linux/fiemap.h> > > +#include <linux/fs.h> > > As it requires <linux/fiemap.h> now, looks like we should update > src/Makefile too to only compile it when "HAVE_FIEMAP" is true. > > ifeq ($(HAVE_FIEMAP), true) > LINUX_TARGETS += fiemap-tester t_stripealign > endif JFYI, I fixed it on commit (also remove t_stripealign from TARGETS). Thanks, Eryu -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html