Whamcloud - gitweb
LU-20 osd-ldiskfs: Make readonly patches optional 49/27549/3
authorOleg Drokin <oleg.drokin@intel.com>
Fri, 9 Jun 2017 20:51:56 +0000 (16:51 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 16 Jun 2017 16:56:48 +0000 (16:56 +0000)
commit0f0a43b4ba6660a88f7922aadaba1a69c297142c
treec3b77eaf12edca0d3e96a5bd92946c14406e2f88
parentb5a93d1595c5d47599ab97f93882703d30074aed
LU-20 osd-ldiskfs: Make readonly patches optional

If CONFIG_KALLSYMS is enabled, see if there are dev_set/check_rdonly
functions present and use them if so.
Otherwise assume the functionality is unavailable.

This should allow using osd_ldiskfs module on both patched and
unpatched kernels with no modifications thanks to weak updates.

Change-Id: I274db77cf76abc63ad6a5643a98c521778f294b3
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: https://review.whamcloud.com/27549
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/autoconf/lustre-core.m4
lustre/osd-ldiskfs/osd_handler.c