summaryrefslogtreecommitdiff
path: root/ioctl.c
diff options
context:
space:
mode:
authorElvira Khabirova <lineprinter@altlinux.org>2018-09-22 15:09:50 +0200
committerDmitry V. Levin <ldv@altlinux.org>2018-10-25 20:50:32 +0000
commit7a7f6c6a7c24177e7e2960c06564798e322e9ca0 (patch)
treed242ec29bfe80471161365df38b6c2f325ee21e7 /ioctl.c
parent6d6d5bc4807a2c09784dfa3290aa0b4128a5183b (diff)
downloadstrace-7a7f6c6a7c24177e7e2960c06564798e322e9ca0.tar.gz
Implement decoding of NBD_* ioctl commands
* nbd_ioctl.c: New file. * Makefile.am (strace_SOURCES): Add it. * defs.h (DECL_IOCTL): Add nbd. * ioctl.c (ioctl_decode): Add 0xab (nbd) case. * xlat/nbd_ioctl_cmds.in: Likewise. * xlat/nbd_ioctl_flags.in: Likewise. * tests/ioctl_nbd.c: Likewise. * tests/.gitignore: Add ioctl_nbd. * tests/pure_executables.list: Likewise. * tests/gen_tests.in (ioctl_nbd): New entry. Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
Diffstat (limited to 'ioctl.c')
-rw-r--r--ioctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ioctl.c b/ioctl.c
index 66b10ec4c..4c9e7db31 100644
--- a/ioctl.c
+++ b/ioctl.c
@@ -327,6 +327,8 @@ ioctl_decode(struct tcb *tcp)
#endif
case 'I':
return inotify_ioctl(tcp, code, arg);
+ case 0xab:
+ return nbd_ioctl(tcp, code, arg);
default:
break;
}