diff options
author | Elvira Khabirova <lineprinter@altlinux.org> | 2018-09-22 15:09:50 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2018-10-25 20:50:32 +0000 |
commit | 7a7f6c6a7c24177e7e2960c06564798e322e9ca0 (patch) | |
tree | d242ec29bfe80471161365df38b6c2f325ee21e7 /ioctl.c | |
parent | 6d6d5bc4807a2c09784dfa3290aa0b4128a5183b (diff) | |
download | strace-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |