diff options
Diffstat (limited to 'plugin_blk.c')
-rw-r--r-- | plugin_blk.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugin_blk.c b/plugin_blk.c index 9327b17..c0ecef9 100644 --- a/plugin_blk.c +++ b/plugin_blk.c | |||
@@ -54,6 +54,11 @@ static void fill_rwbs(char *rwbs, int action, unsigned int bytes) | |||
54 | goto out; | 54 | goto out; |
55 | } | 55 | } |
56 | 56 | ||
57 | #if defined(HAVE_BLK_TC_FLUSH) | ||
58 | if (tc & BLK_TC_FLUSH) | ||
59 | rwbs[i++] = 'F'; | ||
60 | #endif | ||
61 | |||
57 | if (tc & BLK_TC_DISCARD) | 62 | if (tc & BLK_TC_DISCARD) |
58 | rwbs[i++] = 'D'; | 63 | rwbs[i++] = 'D'; |
59 | else if (tc & BLK_TC_WRITE) | 64 | else if (tc & BLK_TC_WRITE) |
@@ -63,10 +68,16 @@ static void fill_rwbs(char *rwbs, int action, unsigned int bytes) | |||
63 | else | 68 | else |
64 | rwbs[i++] = 'N'; | 69 | rwbs[i++] = 'N'; |
65 | 70 | ||
71 | #if defined(HAVE_BLK_TC_FLUSH) | ||
72 | if (tc & BLK_TC_FUA) | ||
73 | rwbs[i++] = 'F'; | ||
74 | #endif | ||
66 | if (tc & BLK_TC_AHEAD) | 75 | if (tc & BLK_TC_AHEAD) |
67 | rwbs[i++] = 'A'; | 76 | rwbs[i++] = 'A'; |
77 | #if !defined(HAVE_BLK_TC_FLUSH) | ||
68 | if (tc & BLK_TC_BARRIER) | 78 | if (tc & BLK_TC_BARRIER) |
69 | rwbs[i++] = 'B'; | 79 | rwbs[i++] = 'B'; |
80 | #endif | ||
70 | if (tc & BLK_TC_SYNC) | 81 | if (tc & BLK_TC_SYNC) |
71 | rwbs[i++] = 'S'; | 82 | rwbs[i++] = 'S'; |
72 | if (tc & BLK_TC_META) | 83 | if (tc & BLK_TC_META) |