From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f195.google.com ([209.85.208.195]:40860 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726457AbeLMVyA (ORCPT ); Thu, 13 Dec 2018 16:54:00 -0500 Received: by mail-lj1-f195.google.com with SMTP id n18-v6so3137018lji.7 for ; Thu, 13 Dec 2018 13:53:58 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20181213213921.GG6311@dastard> References: <20181210165020.GT24487@magnolia> <20181210174627.GD8356@bfoster> <20181210214115.GC6311@dastard> <20181211122701.GA2819@bfoster> <20181213035352.GF6311@dastard> <20181213213921.GG6311@dastard> From: Nick Bowler Date: Thu, 13 Dec 2018 16:53:56 -0500 Message-ID: Subject: Re: Enlarging w/ xfs_growfs: XFS_IOC_FSGROWFSDATA xfsctl failed: Inappropriate ioctl for device Content-Type: text/plain; charset="UTF-8" Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs To: Dave Chinner Cc: Brian Foster , "Darrick J. Wong" , linux-xfs@vger.kernel.org On 2018-12-13, Dave Chinner wrote: > On Wed, Dec 12, 2018 at 11:49:36PM -0500, Nick Bowler wrote: >> To expand on this, for each structure which my RFC patchset feeds up to >> the native handler, I first checked them by manual inspection and then >> double checked using the following program; we can compile with both >> -mx32 and -m64 and check that the output is identical. > > So, turn that into an xfstest so that it is always run, diffs the > output between compat/native depending on which one is used complete > with guards that break the test when we add a new ioctl. We already > we have a test that is for explicitly checking that structures on disk > are the same for 32/64 bit architectures: tests/xfs/122 [...] > Then we'll have tests that will fail if we ever change an ioctl or > add a new one and don't add it to the test. That guarantees we won't > ever forget about this.... OK, I will give it a shot to implement such a test. A possible issue is that developers might not have a working x32 build or runtime environment so the test might not get run a lot. But hopefully people adding brand new ioctls don't introduce brand new compat problems; one can dream, right? Thanks, Nick