aboutsummaryrefslogtreecommitdiff
path: root/linux-user/linux_loop.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2021-11-22 16:56:02 +0100
committerLaurent Vivier <laurent@vivier.eu>2021-11-29 14:54:17 +0100
commit0a761ce30338526213f74dfe9900b9213d4bbb0b (patch)
treee5ad3378dcc19869dc2aa3661dd2506dc89c8ffe /linux-user/linux_loop.h
parente750c10167fa8ad3fcc98236a474c46e52e7c18c (diff)
linux-user: implement more loop ioctls
LOOP_CONFIGURE is now used by losetup, and it cannot cope with ENOSYS. Signed-off-by: Andreas Schwab <schwab@suse.de> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <mvmtug4mbfx.fsf_-_@suse.de> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/linux_loop.h')
-rw-r--r--linux-user/linux_loop.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/linux_loop.h b/linux-user/linux_loop.h
index c69fea11e4..f80b96f1ff 100644
--- a/linux-user/linux_loop.h
+++ b/linux-user/linux_loop.h
@@ -96,6 +96,8 @@ struct loop_info64 {
#define LOOP_CHANGE_FD 0x4C06
#define LOOP_SET_CAPACITY 0x4C07
#define LOOP_SET_DIRECT_IO 0x4C08
+#define LOOP_SET_BLOCK_SIZE 0x4C09
+#define LOOP_CONFIGURE 0x4C0A
/* /dev/loop-control interface */
#define LOOP_CTL_ADD 0x4C80