Skip to content

Commit

Permalink
Fixed compilation issue in RHEL 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutoupis committed Jun 16, 2021
1 parent fabb771 commit d24ff5d
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 15 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### Release 7.2.1 ###

- module: Added support for RHEL 8.4 kernel
- utility: Added support for libmicrohttpd v0.9.71 and newer while still supporting legacy versions

### Release 7.2.0 ###

- module: Updated for 5.12 kernels and later (thank you Michael)
Expand Down
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
rapiddisk (7.2.1-1) released; urgency=medium

* module: Added support for RHEL 8.4 kernel
* utility: added support for libmicrohttpd v0.9.71 and newer while still supporting legacy versions

rapiddisk (7.2.0-1) released; urgency=medium

* module: Updated for 5.12 kernels and later (thank you Michael)
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: rapiddisk
Version: 7.2.0-1
Version: 7.2.1-1
Section: base
Priority: optional
Architecture: amd64
Expand Down
6 changes: 3 additions & 3 deletions debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ fi
case "$1" in

configure)
dkms add -m rapiddisk -v 7.2.0
dkms build -m rapiddisk -v 7.2.0
dkms install -m rapiddisk -v 7.2.0
dkms add -m rapiddisk -v 7.2.1
dkms build -m rapiddisk -v 7.2.1
dkms install -m rapiddisk -v 7.2.1
echo "rapiddisk max_sectors=2048 nr_requests=1024" >> /etc/modules
echo "rapiddisk-cache" >> /etc/modules
echo "dm_mod" >> /etc/modules
Expand Down
2 changes: 1 addition & 1 deletion debian/prerm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fi

case "$1" in
remove|upgrade|deconfigure)
dkms remove -m rapiddisk -v 7.2.0 --all
dkms remove -m rapiddisk -v 7.2.1 --all
;;

failed-upgrade)
Expand Down
2 changes: 1 addition & 1 deletion misc/rapiddisk-legacy/rapiddisk-legacy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fi
## usage ##
function help_menu()
{
echo -e "$1 7.2.0"
echo -e "$1 7.2.1"
echo -e "Copyright 2011 - 2021 Petros Koutoupis"
echo -e ""
echo -e "$1 is an administration tool to manage the RapidDisk RAM disk devices and"
Expand Down
2 changes: 1 addition & 1 deletion module/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only

VERSION = 7.2.0
VERSION = 7.2.1

ifeq ($(KSRC),)
KSRC := /lib/modules/$(shell uname -r)/build
Expand Down
2 changes: 1 addition & 1 deletion module/dkms.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PACKAGE_NAME="rapiddisk"
PACKAGE_VERSION="7.2.0"
PACKAGE_VERSION="7.2.1"
BUILT_MODULE_NAME[0]="rapiddisk"
BUILT_MODULE_NAME[1]="rapiddisk-cache"
DEST_MODULE_LOCATION[0]="/kernel/rapiddisk/"
Expand Down
4 changes: 2 additions & 2 deletions module/rapiddisk-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
} \
} while (0)

#define VERSION_STR "7.2.0"
#define VERSION_STR "7.2.1"
#define DM_MSG_PREFIX "rapiddisk-cache"

#define READCACHE 1
Expand Down Expand Up @@ -1234,7 +1234,7 @@ cache_status(struct dm_target *ti, status_type_t type, unsigned status_flags,

static struct target_type cache_target = {
.name = "rapiddisk-cache",
.version = {7, 2, 0},
.version = {7, 2, 1},
.module = THIS_MODULE,
.ctr = cache_ctr,
.dtr = cache_dtr,
Expand Down
4 changes: 2 additions & 2 deletions module/rapiddisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include <linux/radix-tree.h>
#include <linux/io.h>

#define VERSION_STR "7.2.0"
#define VERSION_STR "7.2.1"
#define PREFIX "rapiddisk"
#define BYTES_PER_SECTOR 512
#define MAX_RDSKS 128
Expand Down Expand Up @@ -637,7 +637,7 @@ static int rdsk_ioctl(struct block_device *bdev, fmode_t mode,
error = -EBUSY;
if (bdev->bd_openers <= 1) {
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0) || (defined(RHEL_MAJOR) && RHEL_MAJOR == 8 && RHEL_MINOR >= 4)
invalidate_bdev(bdev);
#else
kill_bdev(bdev);
Expand Down
5 changes: 4 additions & 1 deletion rapiddisk.spec.rhel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Summary: The RapidDisk software defined advanced RAM drive and storage caching solution.
Name: rapiddisk
Version: 7.2.0
Version: 7.2.1
Release: 1
License: General Public License Version 2
Group: Applications/System
Expand Down Expand Up @@ -78,6 +78,9 @@ rm -rf %{buildroot}
%doc %attr(0444,root,root) /usr/share/man/man1/*

%changelog
* Sun Jun 13 2021 Petros Koutoupis <[email protected]>
- module: Added support for RHEL 8.4 kernel
- utility: added support for libmicrohttpd v0.9.71 and newer while still supporting legacy versions
* Fri May 28 2021 Petros Koutoupis <[email protected]>
- module: Updated for 5.12 kernels and later (thank you Michael)
- utility: remove unused headers (thank you Marcel Huber)
Expand Down
5 changes: 4 additions & 1 deletion rapiddisk.spec.sles
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Summary: The RapidDisk software defined advanced RAM drive and storage caching solution.
Name: rapiddisk
Version: 7.2.0
Version: 7.2.1
Release: 1
License: General Public License Version 2
Group: Applications/System
Expand Down Expand Up @@ -79,6 +79,9 @@ rm -rf %{buildroot}
%doc %attr(0444,root,root) /usr/share/man/man1/*

%changelog
* Sun Jun 13 2021 Petros Koutoupis <[email protected]>
- module: Added support for RHEL 8.4 kernel
- utility: added support for libmicrohttpd v0.9.71 and newer while still supporting legacy versions
* Fri May 28 2021 Petros Koutoupis <[email protected]>
- module: Updated for 5.12 kernels and later (thank you Michael)
- utility: remove unused headers (thank you Marcel Huber)
Expand Down
2 changes: 1 addition & 1 deletion src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#define PROCESS "rapiddisk"
#define DAEMON PROCESS "d"
#define COPYRIGHT "Copyright 2011 - 2021 Petros Koutoupis"
#define VERSION_NUM "7.2.0"
#define VERSION_NUM "7.2.1"
#define SUCCESS 0
#define INVALID_VALUE -1
#define NAMELEN 0x200
Expand Down

0 comments on commit d24ff5d

Please sign in to comment.