]> granicus.if.org Git - strace/commit
Decode mtd/ubi ioctls
authorMike Frysinger <vapier@gentoo.org>
Thu, 2 May 2013 03:35:30 +0000 (23:35 -0400)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 2 May 2013 22:50:55 +0000 (22:50 +0000)
commitd648f29cc3aeabf0a0430f8ab12ce35fa6c4e48e
tree90a7806baf9c549dab76c1b67e066acecbf247d9
parent48d3159d67e5786c94c3e51ce9d2a45cb4470e1a
Decode mtd/ubi ioctls

Been playing with UBI of late and it'd help if I could see what it was
doing.  Not entirely sure about the decoding of UBI_IOCVOLUP -- it takes
a pointer to a 64bit value, not a strict.

* util.c (MAX, MIN): Move to ...
* defs.h (MAX, MIN): ... here.
(CLAMP): Define.
(ubi_ioctl): New prototype.
* ioctl.c (ioctl_decode): Call ubi_ioctl when code is 'o' or 'O'.
* mtd.c: Include ubi user API header.
(ubi_volume_types): New enum decode.
(ubi_volume_props): Likewise.
(ubi_ioctl): Define.
* linux/ubi-user.h: Import from linux 3.8.
defs.h
ioctl.c
linux/ubi-user.h [new file with mode: 0644]
mtd.c
util.c