Skip to content

Commit

Permalink
Releasing version 5.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutoupis committed Sep 4, 2017
1 parent 354c759 commit 197abe8
Show file tree
Hide file tree
Showing 13 changed files with 66 additions and 14 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.1 ###

- kernel: added support for 4.13 kernel.
- kernel: added support for 4.12 kernel (thank you Marcel Huber).
- utility: fixed compilation warnings (thank you Marcel Huber).

### Release 5.0 ###

- kernel: Remove kernel mainline specific code (intended for brd replacement).
Expand Down
2 changes: 1 addition & 1 deletion module/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.0
VERSION = 5.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="5.0"
PACKAGE_VERSION="5.1"
BUILT_MODULE_NAME[0]="rapiddisk"
BUILT_MODULE_NAME[1]="rapiddisk-cache"
DEST_MODULE_LOCATION[0]="/kernel/rapiddisk/"
Expand Down
28 changes: 26 additions & 2 deletions module/rapiddisk-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
} \
} while (0)

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

#define READCACHE 1
Expand Down Expand Up @@ -282,8 +282,12 @@ void rc_io_callback(unsigned long error, void *context)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0)
bio_endio(bio, error);
#else
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0)
bio->bi_status= error;
#else
bio->bi_error = error;
#endif
bio_io_error(bio);
#endif
spin_lock_irqsave(&dmc->cache_spin_lock, flags);
Expand Down Expand Up @@ -569,8 +573,12 @@ static void cache_read_miss(struct cache_context *dmc,
spin_unlock_irqrestore(&dmc->cache_spin_lock, flags);
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0)
bio_endio(bio, -EIO);
#else
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0)
bio->bi_status = -EIO;
#else
bio->bi_error = -EIO;
#endif
bio_io_error(bio);
#endif
} else {
Expand Down Expand Up @@ -615,8 +623,12 @@ static void cache_read(struct cache_context *dmc, struct bio *bio)
spin_unlock_irqrestore(&dmc->cache_spin_lock, flags);
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0)
bio_endio(bio, -EIO);
#else
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0)
bio->bi_status = -EIO;
#else
bio->bi_error = -EIO;
#endif
bio_io_error(bio);
#endif
} else {
Expand Down Expand Up @@ -765,8 +777,12 @@ static void cache_write(struct cache_context *dmc, struct bio *bio)
spin_unlock_irqrestore(&dmc->cache_spin_lock, flags);
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0)
bio_endio(bio, -EIO);
#else
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0)
bio->bi_status= -EIO;
#else
bio->bi_error = -EIO;
#endif
bio_io_error(bio);
#endif
return;
Expand Down Expand Up @@ -857,7 +873,11 @@ static void rc_uncached_io_callback(unsigned long error, void *context)
bio_endio(job->bio, error);
#else
if (error) {
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0)
job->bio->bi_status = error;
#else
job->bio->bi_error = error;
#endif
bio_io_error(job->bio);
} else {
bio_endio(job->bio);
Expand All @@ -877,8 +897,12 @@ static void rc_start_uncached_io(struct cache_context *dmc, struct bio *bio)
if (unlikely(!job)) {
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0)
bio_endio(bio, -EIO);
#else
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0)
bio->bi_status= -EIO;
#else
bio->bi_error = -EIO;
#endif
bio_io_error(bio);
#endif
return;
Expand Down Expand Up @@ -1212,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, 0, 0},
.version = {5, 1, 0},
.module = THIS_MODULE,
.ctr = cache_ctr,
.dtr = cache_dtr,
Expand Down
6 changes: 5 additions & 1 deletion module/rapiddisk.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <linux/radix-tree.h>
#include <linux/io.h>

#define VERSION_STR "5.0"
#define VERSION_STR "5.1"
#define PREFIX "rapiddisk"
#define BYTES_PER_SECTOR 512
#define MAX_RDSKS 128
Expand Down Expand Up @@ -579,7 +579,11 @@ rdsk_make_request(struct request_queue *q, struct bio *bio)
return;
#endif
io_error:
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0)
bio->bi_status= err;
#else
bio->bi_error = err;
#endif
bio_io_error(bio);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,0)
return BLK_QC_T_NONE;
Expand Down
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.1-1) released; urgency=medium

* kernel: added support for 4.13 kernel.
* kernel: added support for 4.12 kernel (thank you Marcel Huber).
* utility: fixed compilation warnings (thank you Marcel Huber).

rapiddisk (5.0-1) released; urgency=medium

* kernel: Remove kernel mainline specific code (intended for brd replacement).
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.0-1
Version: 5.1-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.0
dkms build -m rapiddisk -v 5.0
dkms install -m rapiddisk -v 5.0
dkms add -m rapiddisk -v 5.1
dkms build -m rapiddisk -v 5.1
dkms install -m rapiddisk -v 5.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 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.0 --all
dkms remove -m rapiddisk -v 5.1 --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.0
Version: 5.1
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 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).
- utility: fixed compilation warnings (thank you Marcel Huber).
* Fri Nov 25 2016 Petros Koutoupis <[email protected]>
- kernel: Remove kernel mainline specific code (intended for brd replacement).
- utility: Add JSON output for RapidDisk configuration (requires libjansson).
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.0
Version: 5.1
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 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).
- utility: fixed compilation warnings (thank you Marcel Huber).
* Fri Nov 25 2016 Petros Koutoupis <[email protected]>
- kernel: Remove kernel mainline specific code (intended for brd replacement).
- utility: Add JSON output for RapidDisk configuration (requires libjansson).
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.0
Version: 5.1
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 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).
- utility: fixed compilation warnings (thank you Marcel Huber).
* Fri Nov 25 2016 Petros Koutoupis <[email protected]>
- kernel: Remove kernel mainline specific code (intended for brd replacement).
- utility: Add JSON output for RapidDisk configuration (requires libjansson).
Expand Down
2 changes: 1 addition & 1 deletion src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

#define UTIL "rapiddisk"
#define COPYRIGHT "Copyright 2011-2017 Petros Koutoupis"
#define VERSION_NUM "5.0"
#define VERSION_NUM "5.1"
#define SUCCESS 0x0
#define NAMELEN 0x100
#define BYTES_PER_SECTOR 0x200
Expand Down

0 comments on commit 197abe8

Please sign in to comment.