-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pushing 5.2 release with latest kernel 4.17 support.
- Loading branch information
1 parent
89aad9e
commit 6304ded
Showing
24 changed files
with
65 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 <[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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 <[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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters