Re: [PATCH] xfs: don't allow bmap/swap on rt files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 19, 2017 at 01:23:14PM -0700, Darrick J. Wong wrote:
> bmap returns a dumb LBA address but not the block device that goes with
> that LBA.  Swapfiles don't care about this and will blindly assume that
> the data volume is the correct blockdev, which is totally bogus for
> files on the rt subvolume.  This results in the swap code doing IOs to
> arbitrary locations on the data device(!) if the passed in mapping is a
> realtime file, so just turn off bmap for rt files.

Looks fine,

Reviewed-by: Christoph Hellwig <hch@xxxxxx>
--
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



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux