ceph-csi/internal
Niels de Vos 47d5b60af8 rbd: disable reflink while creating XFS filesystems
Current versions of the mkfs.xfs binary enable reflink support by
default. This causes problems on systems where the kernel does not
support this feature. When the kernel the feature does not support, but
the filesystem has it enabled, the following error is logged in `dmesg`:

    XFS: Superblock has unknown read-only compatible features (0x4) enabled

Introduce a check to see if mkfs.xfs supports the `-m reflink=` option.
In case it does, pass `-m reflink=0` while creating the filesystem.

The check is executed once during the first XFS filesystem creation. The
result of the check is cached until the nodeserver restarts.

Fixes: #966
Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-07-24 13:37:51 +00:00
..
cephfs cephfs: simplify error handling 2020-07-23 11:16:40 +00:00
csi-common cleanup: address gomnd warnings 2020-07-21 08:36:24 +00:00
journal util: simplify error handling 2020-07-23 11:16:40 +00:00
liveness cleanup: address godot warnings 2020-07-21 08:36:24 +00:00
rbd rbd: disable reflink while creating XFS filesystems 2020-07-24 13:37:51 +00:00
util util: add tests for JoinErrors() 2020-07-23 11:16:40 +00:00