ceph-csi/internal/rbd
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
..
clone.go rbd: simplify error handling 2020-07-23 11:16:40 +00:00
controllerserver.go rbd: implement rbdVolume.isInUse() with go-ceph 2020-07-24 11:34:48 +00:00
driver.go rbd: take operation locks before operating on resource 2020-07-21 13:25:19 +00:00
errors.go rbd: simplify error handling 2020-07-23 11:16:40 +00:00
identityserver.go cleanup: address godot warnings 2020-07-21 08:36:24 +00:00
nodeserver_test.go cleanup: Remove support for Delete and Unmounting v1.1.0 PVC 2020-07-10 16:07:13 +00:00
nodeserver.go rbd: disable reflink while creating XFS filesystems 2020-07-24 13:37:51 +00:00
rbd_attach.go rbd: implement rbdVolume.isInUse() with go-ceph 2020-07-24 11:34:48 +00:00
rbd_journal.go rbd: simplify error handling 2020-07-23 11:16:40 +00:00
rbd_util_test.go cleanup: Remove support for Delete and Unmounting v1.1.0 PVC 2020-07-10 16:07:13 +00:00
rbd_util.go rbd: remove unused rbdStatus() 2020-07-24 11:34:48 +00:00
snapshot.go rbd: simplify error handling 2020-07-23 11:16:40 +00:00