Changes of Revision 22
[-] | Changed | flashcache.changes |
1
2 ------------------------------------------------------------------- 3 +Fri Oct 24 15:29:33 UTC 2014 - cs@linux-administrator.com 4 + 5 +- update to release 3.1.2 6 + 7 +------------------------------------------------------------------- 8 Sun Sep 1 09:04:21 UTC 2013 - cs@linux-administrator.com 9 10 - update to release 2.1 11 |
||
[-] | Changed | flashcache.spec ^ |
29 1
2 # norootforbuild 3 -%define srctag git 4 +%define srctag 3.1.2 5 Summary: Write back block cache for SSD devices 6 Name: flashcache 7 -Version: 2.1.1 8 +Version: 3.1.2 9 License: GPL 10 Release: 74 11 Group: System/Kernel 12 Source0: %{name}-%{srctag}.tar.bz2 13 Source1: boot.flashcache 14 Source2: mdwn2man 15 -Patch0: flashcache-2.1_dmtarget.patch 16 +Patch0: flashcache-3.1.2_dmtarget.patch 17 BuildRoot: %{_tmppath}/%{name}-%{srctag}-root 18 BuildRequires: kernel-source kernel-syms module-init-tools 19 BuildRequires: -post-build-checks 20
21 %prep 22 %setup -n %{name}-%{srctag} 23 %patch0 24 - 25 + 26 set -- * 27 mkdir source 28 mv "$@" source/ 29 |
||
[+] | Added | flashcache-3.1.2_dmtarget.patch ^ |
@@ -0,0 +1,20 @@ +--- src/flashcache_conf.c.orig 2014-10-24 18:02:06.736741919 +0200 ++++ src/flashcache_conf.c 2014-10-24 18:12:28.927441039 +0200 +@@ -1134,7 +1134,7 @@ + spin_lock_init(&dmc->ioctl_lock); + spin_lock_init(&dmc->cache_pending_q_spinlock); + +-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0) ++#if LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0) && LINUX_VERSION_CODE != KERNEL_VERSION(3,0,82) && LINUX_VERSION_CODE != KERNEL_VERSION(3,0,101) + ti->split_io = dmc->block_size; + #else + ti->max_io_len = dmc->block_size; +@@ -1584,7 +1584,7 @@ + flashcache_status(struct dm_target *ti, status_type_t type, + unsigned int unused_status_flags, + char *result, unsigned int maxlen) +-#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) ++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) && LINUX_VERSION_CODE != KERNEL_VERSION(3,0,82) && LINUX_VERSION_CODE != KERNEL_VERSION(3,0,101) + int + flashcache_status(struct dm_target *ti, status_type_t type, + unsigned int unused_status_flags, | ||
[+] | Added | flashcache-3.1.2_issue86.patch ^ |
@@ -0,0 +1,72 @@ +From a4a63a71c6f84e0768d44bf3683f4f6941197120 Mon Sep 17 00:00:00 2001 +From: Mohan Srinivasan <mohan@fb.com> +Date: Tue, 9 Oct 2012 12:28:52 -0700 +Subject: [PATCH] Change to make flashcache compile on 3.6.0. + +Summary: Changes to make flashcache compile on 3.6.0. Thanks to +Thomas Stein for quickly verifying that the patch works. + +Test Plan: + +Reviewers: + +CC: + +Task ID: # + +Blame Rev: +--- + src/flashcache.h | 3 --- + src/flashcache_conf.c | 15 ++++++++++++--- + 2 files changed, 12 insertions(+), 6 deletions(-) + +diff --git a/src/flashcache.h b/src/flashcache.h +index a31b52a..f5c01bd 100644 +--- a/src/flashcache.h ++++ b/src/flashcache.h +@@ -529,9 +529,6 @@ int flashcache_ctr(struct dm_target *ti, unsigned int argc, + char **argv); + void flashcache_dtr(struct dm_target *ti); + +-int flashcache_status(struct dm_target *ti, status_type_t type, +- char *result, unsigned int maxlen); +- + struct kcached_job *flashcache_alloc_cache_job(void); + void flashcache_free_cache_job(struct kcached_job *job); + struct pending_job *flashcache_alloc_pending_job(struct cache_c *dmc); +diff --git a/src/flashcache_conf.c b/src/flashcache_conf.c +index e151a06..f72200e 100644 +--- a/src/flashcache_conf.c ++++ b/src/flashcache_conf.c +@@ -1088,8 +1088,11 @@ flashcache_ctr(struct dm_target *ti, unsigned int argc, char **argv) + + dmc->sync_index = 0; + dmc->clean_inprog = 0; +- ++#if LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0) + ti->split_io = dmc->block_size; ++#else ++ ti->max_io_len = dmc->block_size; ++#endif + ti->private = dmc; + + /* Cleaning Thresholds */ +@@ -1511,9 +1514,15 @@ flashcache_status_table(struct cache_c *dmc, status_type_t type, + * Output cache stats upon request of device status; + * Output cache configuration upon request of table status. + */ +-int ++int ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) + flashcache_status(struct dm_target *ti, status_type_t type, +- char *result, unsigned int maxlen) ++ unsigned int unused_status_flags, ++ char *result, unsigned int maxlen) ++#else ++flashcache_status(struct dm_target *ti, status_type_t type, ++ char *result, unsigned int maxlen) ++#endif + { + struct cache_c *dmc = (struct cache_c *) ti->private; + + | ||
Added | flashcache-3.1.2.tar.bz2 ^ |