Skip to content

Commit

Permalink
Pushing 5.2 release with latest kernel 4.17 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutoupis committed May 25, 2018
1 parent 89aad9e commit 6304ded
Show file tree
Hide file tree
Showing 24 changed files with 65 additions and 33 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### Release 5.2 ###

- kernel: added support for 4.17 kernel.
- build: Cleaned up module clean Makefile.
- Updated Copyright years.

### Release 5.1 ###

- kernel: added support for 4.13 kernel.
Expand Down
2 changes: 1 addition & 1 deletion conf/rapiddisk.sh.pacemaker
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (C) 2015 Petros Koutoupis. All rights reserved.
# Copyright (C) 2015-2018 Petros Koutoupis. All rights reserved.
#

PATH=/bin:/sbin:/usr/bin:/usr/sbin
Expand Down
2 changes: 1 addition & 1 deletion conf/rapiddisk.sh.rgmanager
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (C) 2015 Petros Koutoupis. All rights reserved.
# Copyright (C) 2015 - 2018 Petros Koutoupis. All rights reserved.
#

PATH=/bin:/sbin:/usr/bin:/usr/sbin
Expand Down
6 changes: 3 additions & 3 deletions module/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2011-2017 Petros Koutoupis
# Copyright © 2011-2018 Petros Koutoupis
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
Expand All @@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

VERSION = 5.1
VERSION = 5.2

ifeq ($(KSRC),)
KSRC := /lib/modules/$(shell uname -r)/build
Expand Down Expand Up @@ -44,7 +44,7 @@ uninstall:

clean:
rm -rf *.o *.ko *.symvers *.mod.c .*.cmd Module.markers modules.order
rm -rf .tmp_versions .rapiddisk.o.d *.unsigned *.sdtinfo.c .ctf/
rm -rf .tmp_versions .rapiddisk.o.d *.unsigned *.sdtinfo.c .ctf/ .cache.mk

.PHONY: dkms
dkms:
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="5.1"
PACKAGE_VERSION="5.2"
BUILT_MODULE_NAME[0]="rapiddisk"
BUILT_MODULE_NAME[1]="rapiddisk-cache"
DEST_MODULE_LOCATION[0]="/kernel/rapiddisk/"
Expand Down
8 changes: 4 additions & 4 deletions module/rapiddisk-cache.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
** Copyright © 2011-2017 Petros Koutoupis
** Copyright © 2011-2018 Petros Koutoupis
** All rights reserved.
**
** This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -57,7 +57,7 @@
} \
} while (0)

#define VERSION_STR "5.1"
#define VERSION_STR "5.2"
#define DM_MSG_PREFIX "rapiddisk-cache"

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

static struct target_type cache_target = {
.name = "rapiddisk-cache",
.version = {5, 1, 0},
.version = {5, 2, 0},
.module = THIS_MODULE,
.ctr = cache_ctr,
.dtr = cache_dtr,
Expand Down Expand Up @@ -1278,4 +1278,4 @@ MODULE_LICENSE("GPL");
MODULE_AUTHOR("Petros Koutoupis <[email protected]>");
MODULE_DESCRIPTION("RapidDisk-Cache DM target is a write-through caching target with RapidDisk volumes.");
MODULE_VERSION(VERSION_STR);
MODULE_INFO(Copyright, "Copyright 2010 - 2017 Petros Koutoupis");
MODULE_INFO(Copyright, "Copyright 2010 - 2018 Petros Koutoupis");
14 changes: 11 additions & 3 deletions module/rapiddisk.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
** Copyright © 2011-2017 Petros Koutoupis
** Copyright © 2011-2018 Petros Koutoupis
** All rights reserved.
**
** This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -39,7 +39,7 @@
#include <linux/radix-tree.h>
#include <linux/io.h>

#define VERSION_STR "5.1"
#define VERSION_STR "5.2"
#define PREFIX "rapiddisk"
#define BYTES_PER_SECTOR 512
#define MAX_RDSKS 128
Expand Down Expand Up @@ -723,9 +723,17 @@ static int attach_device(int size)
rdsk->rdsk_queue->limits.discard_zeroes_data = 1;
#endif
rdsk->rdsk_queue->limits.max_discard_sectors = UINT_MAX;
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,17,0)
queue_flag_set_unlocked(QUEUE_FLAG_DISCARD, rdsk->rdsk_queue);
#else
blk_queue_flag_set(QUEUE_FLAG_DISCARD, rdsk->rdsk_queue);
#endif
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,17,0)
queue_flag_set_unlocked(QUEUE_FLAG_NONROT, rdsk->rdsk_queue);
#else
blk_queue_flag_set(QUEUE_FLAG_NONROT, rdsk->rdsk_queue);
#endif

disk = rdsk->rdsk_disk = alloc_disk(1);
if (!disk)
Expand Down Expand Up @@ -847,4 +855,4 @@ MODULE_LICENSE("GPL");
MODULE_AUTHOR("Petros Koutoupis <[email protected]>");
MODULE_DESCRIPTION("RapidDisk is an enhanced RAM disk block device driver.");
MODULE_VERSION(VERSION_STR);
MODULE_INFO(Copyright, "Copyright 2010 - 2017 Petros Koutoupis");
MODULE_INFO(Copyright, "Copyright 2010 - 2018 Petros Koutoupis");
6 changes: 6 additions & 0 deletions pkg-mgmt/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
rapiddisk (5.2-1) released; urgency=medium

* kernel: added support for 4.17 kernel.
* build: Cleaned up module clean Makefile.
* Updated copyright years.

rapiddisk (5.1-1) released; urgency=medium

* kernel: added support for 4.13 kernel.
Expand Down
2 changes: 1 addition & 1 deletion pkg-mgmt/debian/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: rapiddisk
Version: 5.1-1
Version: 5.2-1
Section: base
Priority: optional
Architecture: amd64
Expand Down
6 changes: 3 additions & 3 deletions pkg-mgmt/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 5.1
dkms build -m rapiddisk -v 5.1
dkms install -m rapiddisk -v 5.1
dkms add -m rapiddisk -v 5.2
dkms build -m rapiddisk -v 5.2
dkms install -m rapiddisk -v 5.2
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 pkg-mgmt/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 5.1 --all
dkms remove -m rapiddisk -v 5.2 --all
;;

failed-upgrade)
Expand Down
6 changes: 5 additions & 1 deletion pkg-mgmt/spec/rapiddisk.spec.opensuse
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: 5.1
Version: 5.2
Release: 1
License: General Public License Version 2
Group: Applications/System
Expand Down Expand Up @@ -81,6 +81,10 @@ rm -rf %{buildroot}
%doc %attr(0444,root,root) /usr/share/man/man1/*

%changelog
* Mon May 25 2018 Petros Koutoupis <[email protected]>
- kernel: added support for 4.17 kernel.
- build: Cleaned up module clean Makefile.
- Updated copyright years.
* Mon Sep 4 2017 Petros Koutoupis <[email protected]>
- kernel: added support for 4.13 kernel.
- kernel: added support for 4.12 kernel (thank you Marcel Huber).
Expand Down
6 changes: 5 additions & 1 deletion pkg-mgmt/spec/rapiddisk.spec.rhel6
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: 5.1
Version: 5.2
Release: 1
License: General Public License Version 2
Group: Applications/System
Expand Down Expand Up @@ -81,6 +81,10 @@ rm -rf %{buildroot}
%doc %attr(0444,root,root) /usr/share/man/man1/*

%changelog
* Mon May 25 2018 Petros Koutoupis <[email protected]>
- kernel: added support for 4.17 kernel.
- build: Cleaned up module clean Makefile.
- Updated copyright years.
* Mon Sep 4 2017 Petros Koutoupis <[email protected]>
- kernel: added support for 4.13 kernel.
- kernel: added support for 4.12 kernel (thank you Marcel Huber).
Expand Down
6 changes: 5 additions & 1 deletion pkg-mgmt/spec/rapiddisk.spec.rhel7+
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: 5.1
Version: 5.2
Release: 1
License: General Public License Version 2
Group: Applications/System
Expand Down Expand Up @@ -81,6 +81,10 @@ rm -rf %{buildroot}
%doc %attr(0444,root,root) /usr/share/man/man1/*

%changelog
* Mon May 25 2018 Petros Koutoupis <[email protected]>
- kernel: added support for 4.17 kernel.
- build: Cleaned up module clean Makefile.
- Updated copyright years.
* Mon Sep 4 2017 Petros Koutoupis <[email protected]>
- kernel: added support for 4.13 kernel.
- kernel: added support for 4.12 kernel (thank you Marcel Huber).
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2011-2017 Petros Koutoupis
# Copyright © 2011 - 2018 Petros Koutoupis
# All rights reserved.
#
# This file is part of RapidDisk.
Expand Down
2 changes: 1 addition & 1 deletion src/archive.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*********************************************************************************
** Copyright © 2011-2017 Petros Koutoupis
** Copyright © 2011 - 2018 Petros Koutoupis
** All rights reserved.
**
** This file is part of RapidDisk.
Expand Down
6 changes: 3 additions & 3 deletions src/common.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*********************************************************************************
** Copyright © 2011-2017 Petros Koutoupis
** Copyright © 2011 - 2018 Petros Koutoupis
** All rights reserved.
**
** This file is part of RapidDisk.
Expand Down Expand Up @@ -40,8 +40,8 @@
#include <syslog.h>

#define UTIL "rapiddisk"
#define COPYRIGHT "Copyright 2011-2017 Petros Koutoupis"
#define VERSION_NUM "5.1"
#define COPYRIGHT "Copyright 2011 - 2018 Petros Koutoupis"
#define VERSION_NUM "5.2"
#define SUCCESS 0x0
#define NAMELEN 0x100
#define BYTES_PER_SECTOR 0x200
Expand Down
2 changes: 1 addition & 1 deletion src/core.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*********************************************************************************
** Copyright © 2011-2017 Petros Koutoupis
** Copyright © 2011 - 2018 Petros Koutoupis
** All rights reserved.
**
** This file is part of RapidDisk.
Expand Down
2 changes: 1 addition & 1 deletion src/crypt.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*********************************************************************************
** Copyright © 2011-2017 Petros Koutoupis
** Copyright © 2011 - 2018 Petros Koutoupis
** All rights reserved.
**
** This file is part of RapidDisk.
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*********************************************************************************
** Copyright © 2011-2017 Petros Koutoupis
** Copyright © 2011 - 2018 Petros Koutoupis
** All rights reserved.
**
** This file is part of RapidDisk.
Expand Down
2 changes: 1 addition & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2016 -2017 Petros Koutoupis
# Copyright © 2016 - 2018 Petros Koutoupis
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion test/rxflush.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* rxio.c */

/** Copyright © 2016 Petros Koutoupis
/** Copyright © 2016 - 2018 Petros Koutoupis
** All rights reserved.
**
** This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion test/rxio.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* rxio.c */

/** Copyright © 2016 - 2017 Petros Koutoupis
/** Copyright © 2016 - 2018 Petros Koutoupis
** All rights reserved.
**
** This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion test/rxioctl.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* rxio.c */

/** Copyright © 2016 - 2017 Petros Koutoupis
/** Copyright © 2016 - 2018 Petros Koutoupis
** All rights reserved.
**
** This program is free software: you can redistribute it and/or modify
Expand Down

0 comments on commit 6304ded

Please sign in to comment.