On Wed, Sep 18, 2019 at 10:13:04AM +0200, Carlos Maiolino wrote: > All checks are now made in the caller, bmap_fiemap() based on the filesystem's > returned flags in the fiemap structure. So, it will decide to pass the result > back, or just return -EINVAL. > > Well, there is no way for iomap (or bmap_fiemap now) detect the block is in a > realtime device, since we have no flags for that. > > Following Christoph's line of thought here, maybe we can add a new IOMAP_F_* so > the filesystem can notify iomap the extent is in a different device? I don't > know, just a thought. > > This would still keep the consistency of leaving bmap_fiemap() with the decision > of passing or not. I think this actually is a problem with FIEMAP as well, as it doesn't report that things are on a different device. So I guess for now we should fail FIEMAP on the RT device as well.