mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
source3/wscript: Announce deprecation of old Ceph version support
*at() variants for various libcephfs APIs were added with Ceph v17.x. Any other version less than v17.x is soon to be considered EOL[1] which we will now indicate with the help of a warning message during configure time. Going further such a situation will result in disabling the module altogether with the next major Samba version after v4.20. [1] https://docs.ceph.com/en/latest/releases/#ceph-releases-index Signed-off-by: Anoop C S <anoopcs@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
858b1d064d
commit
fe16ae1fe8
@ -1679,16 +1679,19 @@ int main(void) {
|
||||
conf.DEFINE('HAVE_CEPH', '1')
|
||||
conf.CHECK_FUNCS_IN('ceph_select_filesystem', 'cephfs',
|
||||
headers='cephfs/libcephfs.h')
|
||||
conf.CHECK_FUNCS_IN('ceph_mkdirat', 'cephfs',
|
||||
headers='cephfs/libcephfs.h')
|
||||
conf.CHECK_FUNCS_IN('ceph_openat', 'cephfs',
|
||||
headers='cephfs/libcephfs.h')
|
||||
conf.CHECK_FUNCS_IN('ceph_unlinkat', 'cephfs',
|
||||
headers='cephfs/libcephfs.h')
|
||||
conf.CHECK_FUNCS_IN('ceph_symlinkat', 'cephfs',
|
||||
headers='cephfs/libcephfs.h')
|
||||
conf.CHECK_FUNCS_IN('ceph_readlinkat', 'cephfs',
|
||||
headers='cephfs/libcephfs.h')
|
||||
conf.DEFINE('HAVE_MANDATORY_CEPH_API', '1')
|
||||
for api in ['ceph_mkdirat', 'ceph_openat', 'ceph_unlinkat',
|
||||
'ceph_symlinkat', 'ceph_readlinkat']:
|
||||
if not conf.CHECK_FUNCS_IN(api, 'cephfs',
|
||||
headers='cephfs/libcephfs.h'):
|
||||
conf.undefine('HAVE_MANDATORY_CEPH_API')
|
||||
if not conf.env.HAVE_MANDATORY_CEPH_API:
|
||||
Logs.warn("Installed Ceph version support is at the verge of "
|
||||
"deprecation due to the absence of some mandatory "
|
||||
"libcephfs APIs. This warning there shall result in "
|
||||
"disabling the Ceph VFS module altogether with the "
|
||||
"next major Samba version. It is highly recommended "
|
||||
"to update to a more recent/active version of Ceph.")
|
||||
else:
|
||||
Logs.warn('''Ceph support disabled due to --without-acl-support
|
||||
or lack of ceph_statx support''')
|
||||
|
Loading…
x
Reference in New Issue
Block a user