OSDN Git Service

xfs: fail dax mount if reflink is enabled on a partition
authorShiyang Ruan <ruansy.fnst@fujitsu.com>
Thu, 9 Jun 2022 14:34:35 +0000 (22:34 +0800)
committerakpm <akpm@linux-foundation.org>
Sat, 30 Jul 2022 01:07:17 +0000 (18:07 -0700)
commit35fcd75af3edf035638e632bb49607cc8fc3cdf4
tree0fd3a9947f6ac494957885eaa4fd63f1cc898061
parent873f64b791a2b43c246e78b7d9fdd64ce909685b
xfs: fail dax mount if reflink is enabled on a partition

Failure notification is not supported on partitions.  So, when we mount a
reflink enabled xfs on a partition with dax option, let it fail with
-EINVAL code.

Link: https://lkml.kernel.org/r/20220609143435.393724-1-ruansy.fnst@fujitsu.com
Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Cc: Dave Chinner <david@fromorbit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/xfs/xfs_super.c