On 5/30/17 1:44 PM, Darrick J. Wong wrote: > On Fri, May 26, 2017 at 05:12:25PM -0500, Eric Sandeen wrote: >> On 5/26/17 4:41 PM, Darrick J. Wong wrote: >>> On Fri, May 26, 2017 at 04:20:49PM -0500, Eric Sandeen wrote: >>>> >>>> >>>> On 5/8/17 2:47 PM, Darrick J. Wong wrote: >>>>> From: Darrick J. Wong <darrick.wong@xxxxxxxxxx> >>>>> >>>>> Introduce a new ioctl that uses the reverse mapping btree to return >>>>> information about the physical layout of the filesystem. >>>>> >>>>> Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> >>>> >>>> Ok, howzabout this: >>>> >>>> Changes from your version: >>>> >>>> - remove libxfs stuff, I synced that separately already >>>> - rename sys_fsmap just fsmap (it's not a syscall) >>>> - change meaning of "have_fsmap" - it now means we have it on the >>>> system, not that this platform (linux) might support it.* >>> >>> I'll have a look... though afaict this removes anything that would >>> prevent us from building the fsmap stuff on a non-linux platform. >>> Seeing as fsmap is linux-only, we might as well restrict it on the >>> platforms we still support. >> >> Right, so in this patch, either we define HAVE_GETFSMAP if we find >> it on the system, or we implement it in include/linux.h and define >> it then. So HAVE_GETFSMAP won't get set on non-linux. >> >> But in the next patch that actually makes use of the fsmap ioctl, >> we'll need to conditionally include fsmap.c, and then all should >> be good, I think, right? Something like: >> >> +# On linux we get fsmap from the system or define it ourselves >> +# so include this based on platform type. If this reverts to only >> +# the autoconf check w/o local definition, change to testing HAVE_GETFSMAP >> +ifeq ($(PKG_PLATFORM),linux) >> +CFILES += fsmap.c >> +endif > > Yes, I think that will be fine. Do you want me to respin the patches > as they are now (having been fixed), or should I wait for a for-next > rebase with whatever's in your tree? A respin is fine, I hacked at this patch but I don't exactly have it staged & ready. -Eric -- 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