Skip to content
Permalink
Browse files

Pushing 5.2 release with latest kernel 4.17 support.

  • Loading branch information...
pkoutoupis committed May 25, 2018
1 parent 89aad9e commit 6304ded4f4cd20432148ebb713a8f0f115968229
@@ -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.
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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:
@@ -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/"
@@ -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
@@ -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
@@ -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,
@@ -1278,4 +1278,4 @@ MODULE_LICENSE("GPL");
MODULE_AUTHOR("Petros Koutoupis <petros@petroskoutoupis.com>");
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");
@@ -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
@@ -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
@@ -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)
@@ -847,4 +855,4 @@ MODULE_LICENSE("GPL");
MODULE_AUTHOR("Petros Koutoupis <petros@petroskoutoupis.com>");
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");
@@ -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.
@@ -1,5 +1,5 @@
Package: rapiddisk
Version: 5.1-1
Version: 5.2-1
Section: base
Priority: optional
Architecture: amd64
@@ -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
@@ -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)
@@ -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
@@ -81,6 +81,10 @@ rm -rf %{buildroot}
%doc %attr(0444,root,root) /usr/share/man/man1/*

%changelog
* Mon May 25 2018 Petros Koutoupis <petros@petroskoutoupis.com>
- kernel: added support for 4.17 kernel.
- build: Cleaned up module clean Makefile.
- Updated copyright years.
* Mon Sep 4 2017 Petros Koutoupis <petros@petroskoutoupis.com>
- kernel: added support for 4.13 kernel.
- kernel: added support for 4.12 kernel (thank you Marcel Huber).
@@ -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
@@ -81,6 +81,10 @@ rm -rf %{buildroot}
%doc %attr(0444,root,root) /usr/share/man/man1/*

%changelog
* Mon May 25 2018 Petros Koutoupis <petros@petroskoutoupis.com>
- kernel: added support for 4.17 kernel.
- build: Cleaned up module clean Makefile.
- Updated copyright years.
* Mon Sep 4 2017 Petros Koutoupis <petros@petroskoutoupis.com>
- kernel: added support for 4.13 kernel.
- kernel: added support for 4.12 kernel (thank you Marcel Huber).
@@ -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
@@ -81,6 +81,10 @@ rm -rf %{buildroot}
%doc %attr(0444,root,root) /usr/share/man/man1/*

%changelog
* Mon May 25 2018 Petros Koutoupis <petros@petroskoutoupis.com>
- kernel: added support for 4.17 kernel.
- build: Cleaned up module clean Makefile.
- Updated copyright years.
* Mon Sep 4 2017 Petros Koutoupis <petros@petroskoutoupis.com>
- kernel: added support for 4.13 kernel.
- kernel: added support for 4.12 kernel (thank you Marcel Huber).
@@ -1,4 +1,4 @@
# Copyright © 2011-2017 Petros Koutoupis
# Copyright © 2011 - 2018 Petros Koutoupis
# All rights reserved.
#
# This file is part of RapidDisk.
@@ -1,5 +1,5 @@
/*********************************************************************************
** Copyright © 2011-2017 Petros Koutoupis
** Copyright © 2011 - 2018 Petros Koutoupis
** All rights reserved.
**
** This file is part of RapidDisk.
@@ -1,5 +1,5 @@
/*********************************************************************************
** Copyright © 2011-2017 Petros Koutoupis
** Copyright © 2011 - 2018 Petros Koutoupis
** All rights reserved.
**
** This file is part of RapidDisk.
@@ -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
@@ -1,5 +1,5 @@
/*********************************************************************************
** Copyright © 2011-2017 Petros Koutoupis
** Copyright © 2011 - 2018 Petros Koutoupis
** All rights reserved.
**
** This file is part of RapidDisk.
@@ -1,5 +1,5 @@
/*********************************************************************************
** Copyright © 2011-2017 Petros Koutoupis
** Copyright © 2011 - 2018 Petros Koutoupis
** All rights reserved.
**
** This file is part of RapidDisk.
@@ -1,5 +1,5 @@
/*********************************************************************************
** Copyright © 2011-2017 Petros Koutoupis
** Copyright © 2011 - 2018 Petros Koutoupis
** All rights reserved.
**
** This file is part of RapidDisk.
@@ -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
@@ -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
@@ -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
@@ -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

0 comments on commit 6304ded

Please sign in to comment.
You can’t perform that action at this time.