Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2009, 2010 Jeff Mahoney <jeffm@suse.com> |
Dmitry V. Levin | 37d1b3d | 2016-05-26 10:43:51 +0000 | [diff] [blame] | 3 | * Copyright (c) 2011-2016 Dmitry V. Levin <ldv@altlinux.org> |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 4 | * All rights reserved. |
| 5 | * |
| 6 | * Redistribution and use in source and binary forms, with or without |
| 7 | * modification, are permitted provided that the following conditions |
| 8 | * are met: |
| 9 | * 1. Redistributions of source code must retain the above copyright |
| 10 | * notice, this list of conditions and the following disclaimer. |
| 11 | * 2. Redistributions in binary form must reproduce the above copyright |
| 12 | * notice, this list of conditions and the following disclaimer in the |
| 13 | * documentation and/or other materials provided with the distribution. |
| 14 | * 3. The name of the author may not be used to endorse or promote products |
| 15 | * derived from this software without specific prior written permission. |
| 16 | * |
| 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
| 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | */ |
| 28 | |
| 29 | #include "defs.h" |
Dmitry V. Levin | 37d1b3d | 2016-05-26 10:43:51 +0000 | [diff] [blame] | 30 | |
| 31 | #include DEF_MPERS_TYPE(struct_blk_user_trace_setup) |
| 32 | #include DEF_MPERS_TYPE(struct_blkpg_ioctl_arg) |
| 33 | #include DEF_MPERS_TYPE(struct_blkpg_partition) |
| 34 | |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 35 | #include <linux/blkpg.h> |
| 36 | #include <linux/fs.h> |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 37 | |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 38 | #define BLKTRACE_BDEV_SIZE 32 |
Dmitry V. Levin | 37d1b3d | 2016-05-26 10:43:51 +0000 | [diff] [blame] | 39 | typedef struct blk_user_trace_setup { |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 40 | char name[BLKTRACE_BDEV_SIZE]; /* output */ |
| 41 | uint16_t act_mask; /* input */ |
| 42 | uint32_t buf_size; /* input */ |
| 43 | uint32_t buf_nr; /* input */ |
| 44 | uint64_t start_lba; |
| 45 | uint64_t end_lba; |
| 46 | uint32_t pid; |
Dmitry V. Levin | 37d1b3d | 2016-05-26 10:43:51 +0000 | [diff] [blame] | 47 | } struct_blk_user_trace_setup; |
| 48 | |
| 49 | typedef struct blkpg_ioctl_arg struct_blkpg_ioctl_arg; |
| 50 | typedef struct blkpg_partition struct_blkpg_partition; |
| 51 | |
| 52 | #include MPERS_DEFS |
| 53 | |
| 54 | /* |
| 55 | * ioctl numbers <= 114 are present in Linux 2.4. The following ones have been |
| 56 | * added since then and headers containing them may not be available on every |
| 57 | * system. |
| 58 | */ |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 59 | |
| 60 | #ifndef BLKTRACESETUP |
Dmitry V. Levin | 37d1b3d | 2016-05-26 10:43:51 +0000 | [diff] [blame] | 61 | # define BLKTRACESETUP _IOWR(0x12, 115, struct_blk_user_trace_setup) |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 62 | #endif |
| 63 | #ifndef BLKTRACESTART |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 64 | # define BLKTRACESTART _IO(0x12,116) |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 65 | #endif |
Dmitry V. Levin | 4cee0af | 2011-04-07 19:58:10 +0000 | [diff] [blame] | 66 | #ifndef BLKTRACESTOP |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 67 | # define BLKTRACESTOP _IO(0x12,117) |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 68 | #endif |
| 69 | #ifndef BLKTRACETEARDOWN |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 70 | # define BLKTRACETEARDOWN _IO(0x12,118) |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 71 | #endif |
| 72 | #ifndef BLKDISCARD |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 73 | # define BLKDISCARD _IO(0x12,119) |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 74 | #endif |
| 75 | #ifndef BLKIOMIN |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 76 | # define BLKIOMIN _IO(0x12,120) |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 77 | #endif |
| 78 | #ifndef BLKIOOPT |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 79 | # define BLKIOOPT _IO(0x12,121) |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 80 | #endif |
| 81 | #ifndef BLKALIGNOFF |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 82 | # define BLKALIGNOFF _IO(0x12,122) |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 83 | #endif |
| 84 | #ifndef BLKPBSZGET |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 85 | # define BLKPBSZGET _IO(0x12,123) |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 86 | #endif |
| 87 | #ifndef BLKDISCARDZEROES |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 88 | # define BLKDISCARDZEROES _IO(0x12,124) |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 89 | #endif |
| 90 | #ifndef BLKSECDISCARD |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 91 | # define BLKSECDISCARD _IO(0x12,125) |
| 92 | #endif |
| 93 | #ifndef BLKROTATIONAL |
| 94 | # define BLKROTATIONAL _IO(0x12,126) |
| 95 | #endif |
| 96 | #ifndef BLKZEROOUT |
| 97 | # define BLKZEROOUT _IO(0x12,127) |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 98 | #endif |
Dmitry V. Levin | a41fdb5 | 2016-05-25 07:33:02 +0000 | [diff] [blame] | 99 | #ifndef BLKDAXGET |
| 100 | # define BLKDAXGET _IO(0x12,129) |
| 101 | #endif |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 102 | |
Dmitry V. Levin | 0ed617b | 2014-04-25 23:30:54 +0000 | [diff] [blame] | 103 | #include "xlat/blkpg_ops.h" |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 104 | |
| 105 | static void |
Dmitry V. Levin | 37d1b3d | 2016-05-26 10:43:51 +0000 | [diff] [blame] | 106 | print_blkpg_req(struct tcb *tcp, const struct_blkpg_ioctl_arg *blkpg) |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 107 | { |
Dmitry V. Levin | 37d1b3d | 2016-05-26 10:43:51 +0000 | [diff] [blame] | 108 | struct_blkpg_partition p; |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 109 | |
Denys Vlasenko | 60fe8c1 | 2011-09-01 10:00:28 +0200 | [diff] [blame] | 110 | tprints("{"); |
Dmitry V. Levin | be284ca | 2011-01-16 23:07:51 +0000 | [diff] [blame] | 111 | printxval(blkpg_ops, blkpg->op, "BLKPG_???"); |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 112 | |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 113 | tprintf(", flags=%d, datalen=%d, data=", |
Dmitry V. Levin | be284ca | 2011-01-16 23:07:51 +0000 | [diff] [blame] | 114 | blkpg->flags, blkpg->datalen); |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 115 | |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 116 | if (!umove_or_printaddr(tcp, (long) blkpg->data, &p)) { |
Dmitry V. Levin | 0a87058 | 2015-01-25 01:04:01 +0000 | [diff] [blame] | 117 | tprintf("{start=%lld, length=%lld, pno=%d, devname=", |
Dmitry V. Levin | 37d1b3d | 2016-05-26 10:43:51 +0000 | [diff] [blame] | 118 | (long long) p.start, (long long) p.length, p.pno); |
Dmitry V. Levin | 0a87058 | 2015-01-25 01:04:01 +0000 | [diff] [blame] | 119 | print_quoted_string(p.devname, sizeof(p.devname), |
| 120 | QUOTE_0_TERMINATED); |
| 121 | tprints(", volname="); |
| 122 | print_quoted_string(p.volname, sizeof(p.volname), |
| 123 | QUOTE_0_TERMINATED); |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 124 | tprints("}"); |
Dmitry V. Levin | 0a87058 | 2015-01-25 01:04:01 +0000 | [diff] [blame] | 125 | } |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 126 | tprints("}"); |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 127 | } |
| 128 | |
Dmitry V. Levin | 37d1b3d | 2016-05-26 10:43:51 +0000 | [diff] [blame] | 129 | MPERS_PRINTER_DECL(int, block_ioctl, struct tcb *tcp, |
| 130 | const unsigned int code, const long arg) |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 131 | { |
| 132 | switch (code) { |
Dmitry V. Levin | be284ca | 2011-01-16 23:07:51 +0000 | [diff] [blame] | 133 | /* take arg as a value, not as a pointer */ |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 134 | case BLKRASET: |
| 135 | case BLKFRASET: |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 136 | tprintf(", %lu", arg); |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 137 | break; |
| 138 | |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 139 | /* return an unsigned short */ |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 140 | case BLKSECTGET: |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 141 | case BLKROTATIONAL: |
| 142 | if (entering(tcp)) |
| 143 | return 0; |
| 144 | tprints(", "); |
| 145 | printnum_short(tcp, arg, "%hu"); |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 146 | break; |
| 147 | |
Dmitry V. Levin | be284ca | 2011-01-16 23:07:51 +0000 | [diff] [blame] | 148 | /* return a signed int */ |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 149 | case BLKROGET: |
| 150 | case BLKBSZGET: |
| 151 | case BLKSSZGET: |
| 152 | case BLKALIGNOFF: |
Dmitry V. Levin | a41fdb5 | 2016-05-25 07:33:02 +0000 | [diff] [blame] | 153 | case BLKDAXGET: |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 154 | if (entering(tcp)) |
| 155 | return 0; |
Dmitry V. Levin | 0c9087c | 2016-05-26 12:36:56 +0000 | [diff] [blame] | 156 | /* fall through */ |
| 157 | /* take a signed int */ |
| 158 | case BLKROSET: |
| 159 | case BLKBSZSET: |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 160 | tprints(", "); |
| 161 | printnum_int(tcp, arg, "%d"); |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 162 | break; |
| 163 | |
Dmitry V. Levin | be284ca | 2011-01-16 23:07:51 +0000 | [diff] [blame] | 164 | /* return an unsigned int */ |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 165 | case BLKPBSZGET: |
| 166 | case BLKIOMIN: |
| 167 | case BLKIOOPT: |
| 168 | case BLKDISCARDZEROES: |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 169 | if (entering(tcp)) |
| 170 | return 0; |
| 171 | tprints(", "); |
| 172 | printnum_int(tcp, arg, "%u"); |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 173 | break; |
| 174 | |
Dmitry V. Levin | be284ca | 2011-01-16 23:07:51 +0000 | [diff] [blame] | 175 | /* return a signed long */ |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 176 | case BLKRAGET: |
| 177 | case BLKFRAGET: |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 178 | if (entering(tcp)) |
| 179 | return 0; |
| 180 | tprints(", "); |
Dmitry V. Levin | 2479ef0 | 2015-08-18 14:58:27 +0000 | [diff] [blame] | 181 | printnum_slong(tcp, arg); |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 182 | break; |
| 183 | |
Dmitry V. Levin | be284ca | 2011-01-16 23:07:51 +0000 | [diff] [blame] | 184 | /* returns an unsigned long */ |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 185 | case BLKGETSIZE: |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 186 | if (entering(tcp)) |
| 187 | return 0; |
| 188 | tprints(", "); |
Dmitry V. Levin | 2479ef0 | 2015-08-18 14:58:27 +0000 | [diff] [blame] | 189 | printnum_ulong(tcp, arg); |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 190 | break; |
| 191 | |
Dmitry V. Levin | 25caa31 | 2011-08-16 21:36:16 +0000 | [diff] [blame] | 192 | #ifdef HAVE_BLKGETSIZE64 |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 193 | /* returns an uint64_t */ |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 194 | case BLKGETSIZE64: |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 195 | if (entering(tcp)) |
| 196 | return 0; |
| 197 | tprints(", "); |
| 198 | printnum_int64(tcp, arg, "%" PRIu64); |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 199 | break; |
Denys Vlasenko | 5bd67c8 | 2011-08-15 11:36:09 +0200 | [diff] [blame] | 200 | #endif |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 201 | |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 202 | /* takes a pair of uint64_t */ |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 203 | case BLKDISCARD: |
| 204 | case BLKSECDISCARD: |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 205 | case BLKZEROOUT: |
| 206 | tprints(", "); |
Dmitry V. Levin | 46d25c2 | 2016-05-26 12:33:21 +0000 | [diff] [blame] | 207 | printpair_int64(tcp, arg, "%" PRIu64); |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 208 | break; |
| 209 | |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 210 | /* More complex types */ |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 211 | case BLKPG: { |
Dmitry V. Levin | 37d1b3d | 2016-05-26 10:43:51 +0000 | [diff] [blame] | 212 | struct_blkpg_ioctl_arg blkpg; |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 213 | |
| 214 | tprints(", "); |
| 215 | if (!umove_or_printaddr(tcp, arg, &blkpg)) |
| 216 | print_blkpg_req(tcp, &blkpg); |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 217 | break; |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 218 | } |
Dmitry V. Levin | be284ca | 2011-01-16 23:07:51 +0000 | [diff] [blame] | 219 | |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 220 | case BLKTRACESETUP: |
| 221 | if (entering(tcp)) { |
Dmitry V. Levin | 37d1b3d | 2016-05-26 10:43:51 +0000 | [diff] [blame] | 222 | struct_blk_user_trace_setup buts; |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 223 | |
| 224 | tprints(", "); |
| 225 | if (umove_or_printaddr(tcp, arg, &buts)) |
| 226 | break; |
| 227 | tprintf("{act_mask=%u, buf_size=%u, " |
| 228 | "buf_nr=%u, start_lba=%" PRIu64 ", " |
| 229 | "end_lba=%" PRIu64 ", pid=%u", |
| 230 | (unsigned)buts.act_mask, buts.buf_size, |
| 231 | buts.buf_nr, buts.start_lba, |
| 232 | buts.end_lba, buts.pid); |
| 233 | return 1; |
| 234 | } else { |
Dmitry V. Levin | 37d1b3d | 2016-05-26 10:43:51 +0000 | [diff] [blame] | 235 | struct_blk_user_trace_setup buts; |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 236 | |
Dmitry V. Levin | 0bea528 | 2016-05-26 10:04:39 +0000 | [diff] [blame] | 237 | if (!syserror(tcp) && !umove(tcp, arg, &buts)) { |
| 238 | tprints(", name="); |
| 239 | print_quoted_string(buts.name, sizeof(buts.name), |
| 240 | QUOTE_0_TERMINATED); |
Dmitry V. Levin | 0a87058 | 2015-01-25 01:04:01 +0000 | [diff] [blame] | 241 | } |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 242 | tprints("}"); |
| 243 | break; |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 244 | } |
Dmitry V. Levin | be284ca | 2011-01-16 23:07:51 +0000 | [diff] [blame] | 245 | |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 246 | /* No arguments */ |
| 247 | case BLKRRPART: |
| 248 | case BLKFLSBUF: |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 249 | case BLKTRACESTART: |
| 250 | case BLKTRACESTOP: |
| 251 | case BLKTRACETEARDOWN: |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 252 | break; |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 253 | default: |
| 254 | return RVAL_DECODED; |
| 255 | } |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 256 | |
Dmitry V. Levin | a0beac1 | 2015-07-05 15:15:03 +0300 | [diff] [blame] | 257 | return RVAL_DECODED | 1; |
Dmitry V. Levin | 4ef6db4 | 2011-01-15 20:15:31 +0000 | [diff] [blame] | 258 | } |