Skip to contentSkip to conversation

linux-user: Add ioctl for BLKBSZSET

PATCH Applied Michael Vogt 2 participants 3 messages Apr 23, 2024 – May 29, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user: Add ioctl for BLKBSZSET

Tiny patch to add the ioctl wrapper definition for BLKBSZSET.

---
 linux-user/ioctls.h | 1 +
 1 file changed, 1 insertion(+)
linux-user/ioctls.h +1 -0
index d508d0c04a..3b41128fd7 100644
@@ -102,6 +102,7 @@
      IOCTL(BLKRAGET, IOC_R, MK_PTR(TYPE_LONG))
      IOCTL(BLKSSZGET, IOC_R, MK_PTR(TYPE_INT))
      IOCTL(BLKBSZGET, IOC_R, MK_PTR(TYPE_INT))
+     IOCTL(BLKBSZSET, IOC_W, MK_PTR(TYPE_INT))
      IOCTL_SPECIAL(BLKPG, IOC_W, do_ioctl_blkpg,
                    MK_PTR(MK_STRUCT(STRUCT_blkpg_ioctl_arg)))
 
Signature · 1 line
2.43.0
#1 lore raw

Friendly ping

I tested the patch as part of cross architecture build (using qemu-user) with bootc-image-builder in
https://github.com/osbuild/bootc-image-builder/pull/342 (not sure that is relevant, but I wanted to mention that it is working for my test-case).

Quoted 23 lines · Michael Vogt

Tiny patch to add the ioctl wrapper definition for BLKBSZSET.

---
 linux-user/ioctls.h | 1 +
 1 file changed, 1 insertion(+)
linux-user/ioctls.h +1 -1
index d508d0c04a..3b41128fd7 100644
@@ -102,6 +102,7 @@
      IOCTL(BLKRAGET, IOC_R, MK_PTR(TYPE_LONG))
      IOCTL(BLKSSZGET, IOC_R, MK_PTR(TYPE_INT))
      IOCTL(BLKBSZGET, IOC_R, MK_PTR(TYPE_INT))
+     IOCTL(BLKBSZSET, IOC_W, MK_PTR(TYPE_INT))
      IOCTL_SPECIAL(BLKPG, IOC_W, do_ioctl_blkpg,
                    MK_PTR(MK_STRUCT(STRUCT_blkpg_ioctl_arg)))
 
--

2.43.0

#2 lore raw
Quoted 25 lines · Michael Vogt

Friendly ping

I tested the patch as part of cross architecture build (using qemu-user) with bootc-image-builder in https://github.com/osbuild/bootc-image-builder/pull/342 <https://github.com/osbuild/bootc-image-builder/pull/342> (not sure that is relevant, but I wanted to mention that it is working for my test-case).

On Tue, Apr 23, 2024 at 5:25 PM Michael Vogt <[email protected] <mailto:[email protected]>> wrote:

Tiny patch to add the ioctl wrapper definition for BLKBSZSET.

Signed-off-by Michael Vogt <[email protected] <mailto:[email protected]>>

---
 linux-user/ioctls.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index d508d0c04a..3b41128fd7 100644
--- a/linux-user/ioctls.h
+++ b/linux-user/ioctls.h
@@ -102,6 +102,7 @@
      IOCTL(BLKRAGET, IOC_R, MK_PTR(TYPE_LONG)) IOCTL(BLKSSZGET, IOC_R, MK_PTR(TYPE_INT)) IOCTL(BLKBSZGET, IOC_R, MK_PTR(TYPE_INT))
+     IOCTL(BLKBSZSET, IOC_W, MK_PTR(TYPE_INT))
      IOCTL_SPECIAL(BLKPG, IOC_W, do_ioctl_blkpg, MK_PTR(MK_STRUCT(STRUCT_blkpg_ioctl_arg)))

Quoted 3 lines

--
2.43.0

Queued, thanks.

r~