strace/xlat/nbd_ioctl_cmds.in
Elvira Khabirova 7a7f6c6a7c 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>
2018-10-25 20:50:32 +00:00

12 lines
337 B
Plaintext

NBD_SET_SOCK _IO( 0xab, 0 )
NBD_SET_BLKSIZE _IO( 0xab, 1 )
NBD_SET_SIZE _IO( 0xab, 2 )
NBD_DO_IT _IO( 0xab, 3 )
NBD_CLEAR_SOCK _IO( 0xab, 4 )
NBD_CLEAR_QUE _IO( 0xab, 5 )
NBD_PRINT_DEBUG _IO( 0xab, 6 )
NBD_SET_SIZE_BLOCKS _IO( 0xab, 7 )
NBD_DISCONNECT _IO( 0xab, 8 )
NBD_SET_TIMEOUT _IO( 0xab, 9 )
NBD_SET_FLAGS _IO( 0xab, 10)