From: Dmitry V. Levin Date: Tue, 19 Sep 2017 11:32:05 +0000 (+0000) Subject: loop: decode LOOP_SET_BLOCK_SIZE X-Git-Tag: v4.20~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b9de7b081d946d2dce9b92328dd3ff991ddec1d;p=strace loop: decode LOOP_SET_BLOCK_SIZE * loop.c (loop_ioctl) : Handle LOOP_SET_BLOCK_SIZE. * tests/ioctl_loop.c (main): Check it. --- diff --git a/loop.c b/loop.c index 4811dc00..33bd0385 100644 --- a/loop.c +++ b/loop.c @@ -189,6 +189,7 @@ MPERS_PRINTER_DECL(int, loop_ioctl, break; case LOOP_SET_DIRECT_IO: + case LOOP_SET_BLOCK_SIZE: tprintf(", %" PRI_klu, arg); break; diff --git a/tests/ioctl_loop.c b/tests/ioctl_loop.c index 032b3909..56ebd9e4 100644 --- a/tests/ioctl_loop.c +++ b/tests/ioctl_loop.c @@ -303,6 +303,11 @@ main(void) printf("ioctl(-1, LOOP_SET_DIRECT_IO, %lu) = -1 EBADF (%m)\n", (unsigned long) magic); + /* LOOP_SET_BLOCK_SIZE */ + ioctl(-1, LOOP_SET_BLOCK_SIZE, magic); + printf("ioctl(-1, LOOP_SET_BLOCK_SIZE, %lu) = -1 EBADF (%m)\n", + (unsigned long) magic); + /* LOOP_CTL_ADD */ ioctl(-1, LOOP_CTL_ADD, magic); printf("ioctl(-1, LOOP_CTL_ADD, %d) = -1 EBADF (%m)\n",