ceph-csi/pkg
Niels de Vos 72ac53b6b0 cephfs: add kernel version detection for mounting with client
Linux kernel 4.17.0 adds support for quota with CephFS. Without quota,
it is not possible to fullfill the requirements of the CSI Spec and
guarantee sufficient space on the filesystem for a volume. With this in
mind, usage of the kernel client is only allowed with kernel 4.17.0 or
newer.

However, some Linux vendors backport features and patches to their
Enterprise products. These kernels may have an older version, but do
support quota. One of these is the kernel that comes with RHEL-7.7.

By comparing the current running version of the Linux kernel against
known versions that support quota, we can now automatically decide to
use the kernel client, or not.

Note that this does not change the 'forcekernelclient' parameter. The
parameter is still available and can be used for kernels that are not in
the 'known to support quota list'. Or users can pass the parameter to
use a CephFS kernel client that does not support quota.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 290beb4dda)
2019-11-13 22:46:57 +05:30
..
cephfs cephfs: add kernel version detection for mounting with client 2019-11-13 22:46:57 +05:30
csi-common Add req-ID to logging 2019-09-11 13:45:40 +00:00
liveness Fix liveness connection opening endless sockets 2019-09-06 03:15:28 +00:00
rbd Handle EACCESS error from 'ceph rbd task add remove' 2019-10-13 14:50:40 +00:00
util Added forcecephkernelclient as startup parameter to force enabling ceph 2019-10-16 06:47:10 +00:00