-
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.
Adding 4.8 & 4.9 kernel support and releasing 4.4
- Loading branch information
1 parent
af178e2
commit da66331
Showing
17 changed files
with
68 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
VERSION = 4.3 | ||
VERSION = 4.4 | ||
|
||
ifeq ($(KSRC),) | ||
KSRC := /lib/modules/$(shell uname -r)/build | ||
|
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 |
---|---|---|
|
@@ -47,7 +47,7 @@ | |
} \ | ||
} while (0) | ||
|
||
#define VERSION_STR "4.3" | ||
#define VERSION_STR "4.4" | ||
#define DM_MSG_PREFIX "rapiddisk-cache" | ||
|
||
#define READCACHE 1 | ||
|
@@ -167,7 +167,11 @@ int dm_io_async_bvec(unsigned int num_regions, struct dm_io_region *where, | |
struct cache_context *dmc = job->dmc; | ||
struct dm_io_request iorq; | ||
|
||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0) | ||
iorq.bi_op = rw; | ||
#else | ||
iorq.bi_rw = rw; | ||
#endif | ||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0) | ||
iorq.mem.type = DM_IO_BIO; | ||
iorq.mem.ptr.bio = bio; | ||
|
@@ -768,10 +772,14 @@ static void cache_write(struct cache_context *dmc, struct bio *bio) | |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) | ||
#define bio_barrier(bio) ((bio)->bi_rw & REQ_HARDBARRIER) | ||
#else | ||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0) | ||
#define bio_barrier(bio) ((bio)->bi_opf & REQ_PREFLUSH) | ||
#else | ||
#define bio_barrier(bio) ((bio)->bi_rw & REQ_FLUSH) | ||
#endif | ||
#endif | ||
#endif | ||
#endif | ||
|
||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0) | ||
int rc_map(struct dm_target *ti, struct bio *bio) | ||
|
@@ -1186,7 +1194,7 @@ cache_status(struct dm_target *ti, status_type_t type, unsigned status_flags, | |
|
||
static struct target_type cache_target = { | ||
.name = "rapiddisk-cache", | ||
.version = {4, 3, 0}, | ||
.version = {4, 4, 0}, | ||
.module = THIS_MODULE, | ||
.ctr = cache_ctr, | ||
.dtr = cache_dtr, | ||
|
@@ -1228,4 +1236,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 - 2015 Petros Koutoupis"); | ||
MODULE_INFO(Copyright, "Copyright 2010 - 2016 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
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: 4.3-1 | ||
Version: 4.4-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: 4.3 | ||
Version: 4.4 | ||
Release: 1 | ||
License: General Public License Version 2 | ||
Group: Applications/System | ||
|
@@ -85,6 +85,9 @@ rm -rf %{buildroot} | |
%doc %attr(0444,root,root) /usr/share/man/man1/* | ||
|
||
%changelog | ||
* Fri Oct 28 2016 Petros Koutoupis <[email protected]> | ||
- kernel: Update to 4.8 and 4.9 kernels. | ||
- build: Cleaned up Makefiles (thanks Marcel!) | ||
* Fri Aug 12 2016 Petros Koutoupis <[email protected]> | ||
- kernel: Add support for the 4.7 kernel (patch supplied by Marcel Huber) | ||
* Sun May 22 2016 Petros Koutoupis <[email protected]> | ||
|
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: 4.3 | ||
Version: 4.4 | ||
Release: 1 | ||
License: General Public License Version 2 | ||
Group: Applications/System | ||
|
@@ -85,6 +85,9 @@ rm -rf %{buildroot} | |
%doc %attr(0444,root,root) /usr/share/man/man1/* | ||
|
||
%changelog | ||
* Fri Oct 28 2016 Petros Koutoupis <[email protected]> | ||
- kernel: Update to 4.8 and 4.9 kernels. | ||
- build: Cleaned up Makefiles (thanks Marcel!) | ||
* Fri Aug 12 2016 Petros Koutoupis <[email protected]> | ||
- kernel: Add support for the 4.7 kernel (patch supplied by Marcel Huber) | ||
* Sun May 22 2016 Petros Koutoupis <[email protected]> | ||
|
Empty file.
Empty file.
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
Empty file.
Empty file.
Empty file.