~enhanceio/enhanceio/debian

« back to all changes in this revision

Viewing changes to debian/patches/path2eio_cli.patch

  • Committer: Dmitry Smirnov
  • Date: 2013-07-10 12:38:30 UTC
  • Revision ID: git-v1:b0d3d37778334fb5f4900dd78baada53284b302d
Added patch to correct path to `eio_cli`.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Last-Update: 2013-07-08
 
2
Forwarded: not-needed
 
3
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
 
4
Description: correct path to `eio_cli` according to its location as installed.
 
5
 
 
6
--- a/CLI/eio_cli
 
7
+++ b/CLI/eio_cli
 
8
@@ -68,9 +68,9 @@
 
9
 TEST!="/dev/enhanceio/<cache_name>", \
 
10
 PROGRAM="/bin/mkdir -p /dev/enhanceio/<cache_name>"
 
11
 PROGRAM="/bin/sh -c 'echo $kernel > /dev/enhanceio/<cache_name>/.ssd_name'"
 
12
 TEST=="/proc/enhanceio/<cache_name>", \
 
13
-RUN+="/sbin/eio_cli notify -a add -s /dev/$kernel -c <cache_name>", \
 
14
+RUN+="/usr/sbin/eio_cli notify -a add -s /dev/$kernel -c <cache_name>", \
 
15
 GOTO="EIO_EOF"
 
16
 
 
17
 TEST=="/dev/enhanceio/<cache_name>/.disk_name", GOTO="EIO_SETUP"
 
18
 
 
19
@@ -95,9 +95,9 @@
 
20
 
 
21
 TEST=="/proc/enhanceio/<cache_name>",\
 
22
 PROGRAM="/bin/grep 'state\s*failed' /proc/enhanceio/<cache_name>/config", \
 
23
 PROGRAM="/bin/grep 'no_source_dev\s*1' /proc/enhanceio/<cache_name>/errors", \
 
24
-RUN+="/sbin/eio_cli notify -a add -d /dev/$kernel -c <cache_name>", NAME="", \
 
25
+RUN+="/usr/sbin/eio_cli notify -a add -d /dev/$kernel -c <cache_name>", NAME="", \
 
26
 GOTO="EIO_EOF"
 
27
 
 
28
 TEST!="/proc/enhanceio/<cache_name>", \
 
29
 TEST!="/dev/enhanceio/<cache_name>/.eio_delete", ACTION!="change", NAME=""
 
30
@@ -133,9 +133,9 @@
 
31
 RUN+="/bin/sh -c ' for i in `cat /dev/enhanceio/<cache_name>/.srclinks`; \
 
32
 do rm -f /dev/$$i; ln -f -s /dev/$env{disk_name} /dev/$$i; done'"
 
33
 
 
34
 
 
35
-TEST!="/proc/enhanceio/<cache_name>", RUN+="/sbin/eio_cli \
 
36
+TEST!="/proc/enhanceio/<cache_name>", RUN+="/usr/sbin/eio_cli \
 
37
 enable -d /dev/$env{disk_name} -s /dev/$env{ssd_name} -m <mode> \
 
38
 -b <block_size> -p <policy> -c <cache_name>"
 
39
 
 
40
 LABEL="EIO_EOF"