Skip to content

Commit

Permalink
Merge pull request #44 from pkoutoupis/staging/release_6.1
Browse files Browse the repository at this point in the history
Staging/release 6.1
  • Loading branch information
pkoutoupis authored May 31, 2020
2 parents 49f0468 + 6858dde commit 4f74161
Show file tree
Hide file tree
Showing 31 changed files with 245 additions and 181 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.a
*.o
*.o.*
*.mod
Expand All @@ -7,6 +8,7 @@
*.mk
*.symvers
*.order
*.swp
src/rapiddisk
test/rxflush
test/rxio
Expand Down
16 changes: 16 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
AUTHOR / MAINTAINER
Petros Koutoupis <[email protected]>

CONTRIBUTORS

James Plummer
Gustaf Ullberg
Dmitry Trikoz
Neo
Efstathiou Efstathios
Marcel Huber
Steven Rudolph
Oliver Rath
Scott McGillivray
Boian Berberov
Shub77
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
### Release 6.1 ###

- kernel: added support for 5.7 kernel
- utility: fixed GCC compilation warnings
- utility: code style cleanup
- installer: additional dkms installation/removal cleanup (thank you Shub77)
- documentation: fixed / updated README to reflect newer dkms installation/removal instructions
- documentation: updated copyright dates
- documentation: added AUTHORS file
- misc: added experimental scripts to enable rapiddisk/cache on root device during boot (thank you Shub77)

### Release 6.0-1 ###

- kernel: Fix dkms version in module/Makefile.
Expand Down
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,3 @@ Uninstalling modules for DKMS support
```console
# make dkms-uninstall
```

Contact
-------

If you have any questions or concerns, do not contact
Petros Koutoupis (<[email protected]>). Instead, contact your
congressman or congresswoman. I am trying to be politically correct here.
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-2018 Petros Koutoupis. All rights reserved.
# Copyright (C) 2015-2020 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 - 2018 Petros Koutoupis. All rights reserved.
# Copyright (C) 2015 - 2020 Petros Koutoupis. All rights reserved.
#

PATH=/bin:/sbin:/usr/bin:/usr/sbin
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions module/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2011-2018 Petros Koutoupis
# Copyright © 2011-2020 Petros Koutoupis
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
Expand All @@ -15,7 +15,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only

VERSION = 6.0
VERSION = 6.1

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

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

dkms-install:
ifeq ($(shell which dkms >/dev/null 2>/dev/null; echo $$?),1)
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="6.0"
PACKAGE_VERSION="6.1"
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-2019 Petros Koutoupis
** Copyright © 2011 - 2020 Petros Koutoupis
** All rights reserved.
**
** This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -59,7 +59,7 @@
} \
} while (0)

#define VERSION_STR "6.0"
#define VERSION_STR "6.1"
#define DM_MSG_PREFIX "rapiddisk-cache"

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

static struct target_type cache_target = {
.name = "rapiddisk-cache",
.version = {6, 0, 0},
.version = {6, 1, 0},
.module = THIS_MODULE,
.ctr = cache_ctr,
.dtr = cache_dtr,
Expand Down Expand Up @@ -1281,4 +1281,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 - 2019 Petros Koutoupis");
MODULE_INFO(Copyright, "Copyright 2010 - 2020 Petros Koutoupis");
12 changes: 9 additions & 3 deletions module/rapiddisk.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
** Copyright © 2011-2019 Petros Koutoupis
** Copyright © 2011 - 2020 Petros Koutoupis
** All rights reserved.
**
** This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -41,7 +41,7 @@
#include <linux/radix-tree.h>
#include <linux/io.h>

#define VERSION_STR "6.0"
#define VERSION_STR "6.1"
#define PREFIX "rapiddisk"
#define BYTES_PER_SECTOR 512
#define MAX_RDSKS 128
Expand Down Expand Up @@ -703,10 +703,16 @@ static int attach_device(int size)
spin_lock_init(&rdsk->rdsk_lock);
INIT_RADIX_TREE(&rdsk->rdsk_pages, GFP_ATOMIC);

#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,7,0)
rdsk->rdsk_queue = blk_alloc_queue(rdsk_make_request, NUMA_NO_NODE);
if (!rdsk->rdsk_queue)
goto out_free_dev;
#else
rdsk->rdsk_queue = blk_alloc_queue(GFP_KERNEL);
if (!rdsk->rdsk_queue)
goto out_free_dev;
blk_queue_make_request(rdsk->rdsk_queue, rdsk_make_request);
#endif
blk_queue_logical_block_size(rdsk->rdsk_queue, BYTES_PER_SECTOR);
blk_queue_physical_block_size(rdsk->rdsk_queue, PAGE_SIZE);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0)
Expand Down Expand Up @@ -857,4 +863,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 - 2019 Petros Koutoupis");
MODULE_INFO(Copyright, "Copyright 2010 - 2020 Petros Koutoupis");
10 changes: 10 additions & 0 deletions pkg-mgmt/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
rapiddisk (6.1-1) released; urgency=medium
* kernel: added support for 5.7 kernel
* utility: fixed GCC compilation warnings
* utility: code style cleanup
* installer: additional dkms installation/removal cleanup (thank you Shub77)
* documentation: fixed / updated README to reflect newer dkms installation/removal instructions
* documentation: updated copyright dates
* documentation: added AUTHORS file
* misc: added experimental scripts to enable rapiddisk/cache on root device during boot (thank you Shub77)

rapiddisk (6.0-1) released; urgency=medium

* kernel: Fixed module compilation error with modern version of GCC.
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: 6.0-1
Version: 6.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 6.0
dkms build -m rapiddisk -v 6.0
dkms install -m rapiddisk -v 6.0
dkms add -m rapiddisk -v 6.1
dkms build -m rapiddisk -v 6.1
dkms install -m rapiddisk -v 6.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.2 --all
dkms remove -m rapiddisk -v 6.0 --all
;;

failed-upgrade)
Expand Down
11 changes: 10 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: 6.0
Version: 6.1
Release: 1
License: General Public License Version 2
Group: Applications/System
Expand Down Expand Up @@ -79,6 +79,15 @@ rm -rf %{buildroot}
%doc %attr(0444,root,root) /usr/share/man/man1/*

%changelog
* Thu May 26 2020 Petros Koutoupis <[email protected]>
- kernel: added support for 5.7 kernel
- utility: fixed GCC compilation warnings
- utility: code style cleanup
- installer: additional dkms installation/removal cleanup (thank you Shub77)
- documentation: fixed / updated README to reflect newer dkms installation/removal instructions
- documentation: updated copyright dates
- documentation: added AUTHORS file
- misc: added experimental scripts to enable rapiddisk/cache on root device during boot (thank you Shub77)
* Thu May 2 2019 Petros Koutoupis <[email protected]>
- kernel: Fixed module compilation error with modern version of GCC.
- utility: Remove dm-crypt code; Not sure why i had it in the first place. Doesn't really belong. Just use cryptsetup.
Expand Down
11 changes: 10 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: 6.0
Version: 6.1
Release: 1
License: General Public License Version 2
Group: Applications/System
Expand Down Expand Up @@ -78,6 +78,15 @@ rm -rf %{buildroot}
%doc %attr(0444,root,root) /usr/share/man/man1/*

%changelog
* Thu May 26 2020 Petros Koutoupis <[email protected]>
- kernel: added support for 5.7 kernel
- utility: fixed GCC compilation warnings
- utility: code style cleanup
- installer: additional dkms installation/removal cleanup (thank you Shub77)
- documentation: fixed / updated README to reflect newer dkms installation/removal instructions
- documentation: updated copyright dates
- documentation: added AUTHORS file
- misc: added experimental scripts to enable rapiddisk/cache on root device during boot (thank you Shub77)
* Thu May 2 2019 Petros Koutoupis <[email protected]>
- kernel: Fixed module compilation error with modern version of GCC.
- utility: Remove dm-crypt code; Not sure why i had it in the first place. Doesn't really belong. Just use cryptsetup.
Expand Down
11 changes: 10 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: 6.0
Version: 6.1
Release: 1
License: General Public License Version 2
Group: Applications/System
Expand Down Expand Up @@ -78,6 +78,15 @@ rm -rf %{buildroot}
%doc %attr(0444,root,root) /usr/share/man/man1/*

%changelog
* Thu May 26 2020 Petros Koutoupis <[email protected]>
- kernel: added support for 5.7 kernel
- utility: fixed GCC compilation warnings
- utility: code style cleanup
- installer: additional dkms installation/removal cleanup (thank you Shub77)
- documentation: fixed / updated README to reflect newer dkms installation/removal instructions
- documentation: updated copyright dates
- documentation: added AUTHORS file
- misc: added experimental scripts to enable rapiddisk/cache on root device during boot (thank you Shub77)
* Thu May 2 2019 Petros Koutoupis <[email protected]>
- kernel: Fixed module compilation error with modern version of GCC.
- utility: Remove dm-crypt code; Not sure why i had it in the first place. Doesn't really belong. Just use cryptsetup.
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 - 2018 Petros Koutoupis
# Copyright © 2011 - 2020 Petros Koutoupis
# All rights reserved.
#
# This file is part of RapidDisk.
Expand Down
12 changes: 5 additions & 7 deletions src/common.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*********************************************************************************
** Copyright © 2011 - 2019 Petros Koutoupis
** Copyright © 2011 - 2020 Petros Koutoupis
** All rights reserved.
**
** This file is part of RapidDisk.
Expand Down Expand Up @@ -39,17 +39,15 @@
#include <ctype.h>
#include <errno.h>
#include <unistd.h>
#include <syslog.h>

#define UTIL "rapiddisk"
#define COPYRIGHT "Copyright 2011 - 2019 Petros Koutoupis"
#define VERSION_NUM "6.0"
#define SUCCESS 0x0
#define COPYRIGHT "Copyright 2011 - 2020 Petros Koutoupis"
#define VERSION_NUM "6.1"
#define SUCCESS 0
#define INVALID_VALUE -1
#define NAMELEN 0x200
#define BYTES_PER_SECTOR 0x200
#define BUFSZ 0x10000
#define SYS_RDSK "/sys/kernel/rapiddisk/mgmt"
#define KEY_FILE "/etc/rapiddisk/key"
#define WRITETHROUGH 0
#define WRITEAROUND 1

Expand Down
Loading

0 comments on commit 4f74161

Please sign in to comment.