From effc9edcbd3792cd12de0de0cf41bbcb64e50156 Mon Sep 17 00:00:00 2001 From: Petros Koutoupis Date: Sun, 5 Jun 2022 14:53:27 +0000 Subject: [PATCH 1/2] Preparing release 8.2.0 --- CHANGELOG.md | 10 ++++++++++ module/Makefile | 2 +- module/dkms.conf | 2 +- module/rapiddisk-cache.c | 4 ++-- module/rapiddisk.c | 2 +- pkg/debian/changelog | 13 +++++++++++++ pkg/rpm/rapiddisk.spec.rhel | 11 ++++++++++- pkg/rpm/rapiddisk.spec.sles | 11 ++++++++++- scripts/rapiddisk-legacy/rapiddisk-legacy.sh | 2 +- src/common.h | 2 +- 10 files changed, 50 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 67a21d5..fc5871d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +### Release 8.2.0 ### +- module: Fixed support for 5.14. +- documentation: Updated README files. +- utility: Fixed buffer overflow in NVMe structure. +- utility: Improved on MHD version check (thank you Matteo Tenca). +- utility: Clean up / optimize systemd service file. +- packaging: Improved and overhauled debian packaging (thank you Matteo Tenca). +- scripts: Optimized and fixed bugs for rapiddisk/cache on root during boot support (thank you Matteo Tenca). +- misc: Cleaned up Makefiles and impr ved dkms build/installation process. + ### Release 8.1.0 ### - module: Added support for 5.16 and 5.17 kernels (thank you Nitrooo) diff --git a/module/Makefile b/module/Makefile index 4631f95..52ec060 100644 --- a/module/Makefile +++ b/module/Makefile @@ -15,7 +15,7 @@ # # SPDX-License-Identifier: GPL-2.0-only -VERSION = 8.1.0 +VERSION = 8.2.0 ifeq ($(KSRC),) KSRC := /lib/modules/$(shell uname -r)/build diff --git a/module/dkms.conf b/module/dkms.conf index b5c99cd..62f17bb 100644 --- a/module/dkms.conf +++ b/module/dkms.conf @@ -1,5 +1,5 @@ PACKAGE_NAME="rapiddisk" -PACKAGE_VERSION="8.1.0" +PACKAGE_VERSION="8.2.0" BUILT_MODULE_NAME[0]="rapiddisk" BUILT_MODULE_NAME[1]="rapiddisk-cache" DEST_MODULE_LOCATION[0]="/kernel/rapiddisk/" diff --git a/module/rapiddisk-cache.c b/module/rapiddisk-cache.c index eecea20..351af22 100644 --- a/module/rapiddisk-cache.c +++ b/module/rapiddisk-cache.c @@ -54,7 +54,7 @@ } \ } while (0) -#define VERSION_STR "8.1.0" +#define VERSION_STR "8.2.0" #define DM_MSG_PREFIX "rapiddisk-cache" #define READCACHE 1 @@ -1244,7 +1244,7 @@ cache_status(struct dm_target *ti, status_type_t type, unsigned status_flags, static struct target_type cache_target = { .name = "rapiddisk-cache", - .version = {8, 1, 0}, + .version = {8, 2, 0}, .module = THIS_MODULE, .ctr = cache_ctr, .dtr = cache_dtr, diff --git a/module/rapiddisk.c b/module/rapiddisk.c index d5a3d8f..41c2316 100644 --- a/module/rapiddisk.c +++ b/module/rapiddisk.c @@ -41,7 +41,7 @@ #include #include -#define VERSION_STR "8.1.0" +#define VERSION_STR "8.2.0" #define PREFIX "rapiddisk" #define BYTES_PER_SECTOR 512 #define MAX_RDSKS 128 diff --git a/pkg/debian/changelog b/pkg/debian/changelog index 1ddc878..3f7d8cc 100644 --- a/pkg/debian/changelog +++ b/pkg/debian/changelog @@ -1,3 +1,16 @@ +rapiddisk (8.2.0-1) UNRELEASED; urgency=medium + + * module: Fixed support for 5.14. + * documentation: Updated README files. + * utility: Fixed buffer overflow in NVMe structure. + * utility: Improved on MHD version check (thank you Matteo Tenca). + * utility: Clean up / optimize systemd service file. + * packaging: Improved and overhauled debian packaging (thank you Matteo Tenca). + * scripts: Optimized and fixed bugs for rapiddisk/cache on root during boot support (thank you Matteo Tenca). + * misc: Cleaned up Makefiles and impr ved dkms build/installation process. + + -- Petros Koutoupis Sat, 11 Jun 2022 13:48:57 +0000 + rapiddisk (8.1.0-1) UNRELEASED; urgency=medium * module: Added support for 5.16 and 5.17 kernels (thank you Nitrooo) diff --git a/pkg/rpm/rapiddisk.spec.rhel b/pkg/rpm/rapiddisk.spec.rhel index 0968302..a9706f5 100644 --- a/pkg/rpm/rapiddisk.spec.rhel +++ b/pkg/rpm/rapiddisk.spec.rhel @@ -1,6 +1,6 @@ Summary: The RapidDisk software defined advanced RAM drive and storage caching solution. Name: rapiddisk -Version: 8.1.0 +Version: 8.2.0 Release: 1 License: General Public License Version 2 Group: Applications/System @@ -80,6 +80,15 @@ rm -rf %{buildroot} %doc %attr(0444,root,root) /usr/share/man/man1/* %changelog +* Sat Jun 11 2022 Petros Koutoupis +- module: Fixed support for 5.14. +- documentation: Updated README files. +- utility: Fixed buffer overflow in NVMe structure. +- utility: Improved on MHD version check (thank you Matteo Tenca). +- utility: Clean up / optimize systemd service file. +- packaging: Improved and overhauled debian packaging (thank you Matteo Tenca). +- scripts: Optimized and fixed bugs for rapiddisk/cache on root during boot support (thank you Matteo Tenca). +- misc: Cleaned up Makefiles and impr ved dkms build/installation process. * Fri Feb 11 2022 Petros Koutoupis - module: Added support for 5.16 and 5.17 kernels (thank you Nitrooo) - module: Fixed queue allocation defect for 5.15 kernel (thank you Nitrooo) diff --git a/pkg/rpm/rapiddisk.spec.sles b/pkg/rpm/rapiddisk.spec.sles index a21e062..2a05611 100644 --- a/pkg/rpm/rapiddisk.spec.sles +++ b/pkg/rpm/rapiddisk.spec.sles @@ -1,6 +1,6 @@ Summary: The RapidDisk software defined advanced RAM drive and storage caching solution. Name: rapiddisk -Version: 8.1.0 +Version: 8.2.0 Release: 1 License: General Public License Version 2 Group: Applications/System @@ -81,6 +81,15 @@ rm -rf %{buildroot} %doc %attr(0444,root,root) /usr/share/man/man1/* %changelog +* Sat Jun 11 2022 Petros Koutoupis +- module: Fixed support for 5.14. +- documentation: Updated README files. +- utility: Fixed buffer overflow in NVMe structure. +- utility: Improved on MHD version check (thank you Matteo Tenca). +- utility: Clean up / optimize systemd service file. +- packaging: Improved and overhauled debian packaging (thank you Matteo Tenca). +- scripts: Optimized and fixed bugs for rapiddisk/cache on root during boot support (thank you Matteo Tenca). +- misc: Cleaned up Makefiles and impr ved dkms build/installation process. * Fri Feb 11 2022 Petros Koutoupis - module: Added support for 5.16 and 5.17 kernels (thank you Nitrooo) - module: Fixed queue allocation defect for 5.15 kernel (thank you Nitrooo) diff --git a/scripts/rapiddisk-legacy/rapiddisk-legacy.sh b/scripts/rapiddisk-legacy/rapiddisk-legacy.sh index 4a011c3..0df56f0 100644 --- a/scripts/rapiddisk-legacy/rapiddisk-legacy.sh +++ b/scripts/rapiddisk-legacy/rapiddisk-legacy.sh @@ -8,7 +8,7 @@ fi ## usage ## function help_menu() { - echo -e "$1 8.1.0" + echo -e "$1 8.2.0" echo -e "Copyright 2011 - 2022 Petros Koutoupis" echo -e "" echo -e "$1 is an administration tool to manage the RapidDisk RAM disk devices and" diff --git a/src/common.h b/src/common.h index 2c6aa00..24557bd 100644 --- a/src/common.h +++ b/src/common.h @@ -44,7 +44,7 @@ #define PROCESS "rapiddisk" #define DAEMON PROCESS "d" #define COPYRIGHT "Copyright 2011 - 2022 Petros Koutoupis" -#define VERSION_NUM "8.1.0" +#define VERSION_NUM "8.2.0" #define SUCCESS 0 #define INVALID_VALUE -1 #define NAMELEN 0x200 From 1c7b10a852abb62e8b3cc81e67292050c4430546 Mon Sep 17 00:00:00 2001 From: Petros Koutoupis Date: Tue, 7 Jun 2022 15:31:00 +0000 Subject: [PATCH 2/2] Fixed documentation for parsing JSON output. --- doc/API.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/API.txt b/doc/API.txt index 77cc45c..80f843c 100644 --- a/doc/API.txt +++ b/doc/API.txt @@ -3,7 +3,7 @@ Web server API revision 1 ------------------------- GET /v1/checkServiceStatus -ex) curl -s --output - 127.0.0.1:9118/v1/checkServiceStatus|jq . +ex) curl -s --output - 127.0.0.1:9118/v1/checkServiceStatus|tail -n1|jq . status code: 200 (on success) @@ -17,7 +17,7 @@ Check the status of the daemon. Example output: ------------------------- GET /v1/listAllResources -ex) curl -s --output - 127.0.0.1:9118/v1/listAllResources|jq . +ex) curl -s --output - 127.0.0.1:9118/v1/listAllResources|tail -n1|jq . status code: 200 (on success) @@ -49,7 +49,7 @@ Retrieve system resource information. Example output: ------------------------- GET /v1/listRapidDiskVolumes -ex) curl -s --output - 127.0.0.1:9118/v1/listRapidDiskVolumes|jq . +ex) curl -s --output - 127.0.0.1:9118/v1/listRapidDiskVolumes|tail -n1|jq . status code: 200 (on success) @@ -85,7 +85,7 @@ Retrieve rapiddisk/cache information. Example output: ------------------------- POST /v1/createRapidDisk/@size -ex) curl -X POST -s 127.0.0.1:9118/v1/createRapidDisk/128|jq . +ex) curl -X POST -s 127.0.0.1:9118/v1/createRapidDisk/128|tail -n1|jq . status code: 200 (on success) @@ -98,7 +98,7 @@ Create a rapiddisk volume. Example output: ------------------------- POST /v1/resizeRapidDisk/@volume/@size -ex) curl -X POST -s 127.0.0.1:9118/v1/resizeRapidDisk/rd0/128|jq . +ex) curl -X POST -s 127.0.0.1:9118/v1/resizeRapidDisk/rd0/128|tail -n1|jq . status code: 200 (on success) @@ -111,7 +111,7 @@ Resize an existing rapiddisk volume. Example output: ------------------------- POST /v1/flushRapidDisk/@volume -ex) curl -X POST -s 127.0.0.1:9118/v1/flushRapidDisk/rd0|jq . +ex) curl -X POST -s 127.0.0.1:9118/v1/flushRapidDisk/rd0|tail -n1|jq . status code: 200 (on success) @@ -124,7 +124,7 @@ Flush the memory of an existing rapiddisk volume. Example output: ------------------------- POST /v1/removeRapidDisk/@volume -ex) curl -X POST -s 127.0.0.1:9118/v1/removeRapidDisk/rd0|jq . +ex) curl -X POST -s 127.0.0.1:9118/v1/removeRapidDisk/rd0|tail -n1|jq . status code: 200 (on success) @@ -137,7 +137,7 @@ Remove an existing rapiddisk volume. Example output: ------------------------- POST /v1/createRapidDiskCache/@volume/@source/@policy -ex) curl -X POST -s 127.0.0.1:9118/v1/createRapidDiskCache/rd0/sdb/write-through|jq . +ex) curl -X POST -s 127.0.0.1:9118/v1/createRapidDiskCache/rd0/sdb/write-through|tail -n1|jq . Supported caching policies: * write-through @@ -155,7 +155,7 @@ Create a rapiddisk-cache volume. Example output: ------------------------- POST /v1/removeRapidDiskCache/@volume -ex) curl -X POST -s 127.0.0.1:9118/v1/removeRapidDiskCache/rc-wt_sdb|jq . +ex) curl -X POST -s 127.0.0.1:9118/v1/removeRapidDiskCache/rc-wt_sdb|tail -n1|jq . status code: 200 (on success) @@ -220,7 +220,7 @@ If it is writeback cache, it will look like this: ------------------------- GET /v1/listAllNVMeTargets -ex) curl -s --output - 10.0.0.185:9118/v1/listAllNVMeTargets|jq . +ex) curl -s --output - 10.0.0.185:9118/v1/listAllNVMeTargets|tail -n1|jq . status code: 200 (on success) @@ -260,7 +260,7 @@ Retrieve cache statistics from an existing rapiddisk-cache volume. Example outpu ------------------------- GET /v1/listAllNVMePorts -ex) curl -s --output - 10.0.0.185:9118/v1/listAllNVMePorts|jq . +ex) curl -s --output - 10.0.0.185:9118/v1/listAllNVMePorts|tail -n1|jq . status code: 200 (on success)