Skip to contentSkip to conversation

docs: ioctl-number: document fscrypt ioctl numbers

PATCH Applied Eric Biggers 1 participant 2 messages Oct 9, 2019 – Oct 21, 2019

Subsystems (3)
lore
Share & tools
lore

Eric Biggers

author maintainer
#0 lore raw

PATCH 1/1 docs: ioctl-number: document fscrypt ioctl numbers

From: Eric Biggers <[email protected]>

The 'f' ioctls with numbers 19-26 decimal are currently used for fscrypt (a.k.a. ext4/f2fs/ubifs encryption), and up to 39 decimal is reserved for future fscrypt use, as per the comment in fs/ext4/ext4.h. So the reserved range is 13-27 hex.

Document this in ioctl-number.rst.

---
 Documentation/ioctl/ioctl-number.rst | 1 +
 1 file changed, 1 insertion(+)
Documentation/ioctl/ioctl-number.rst +1 -0
index bef79cd4c6b4d..4ef86433bd677 100644
@@ -233,6 +233,7 @@ Code  Seq#    Include File                                           Comments
 'f'   00-0F  fs/ext4/ext4.h                                          conflict!
 'f'   00-0F  linux/fs.h                                              conflict!
 'f'   00-0F  fs/ocfs2/ocfs2_fs.h                                     conflict!
+'f'   13-27  linux/fscrypt.h
 'f'   81-8F  linux/fsverity.h
 'g'   00-0F  linux/usb/gadgetfs.h
 'g'   20-2F  linux/usb/g_printer.h
Signature · 1 line
2.23.0.581.g78d2f28ef7-goog
author maintainer Applied
#1 lore raw
Quoted 20 lines · Eric Biggers

From: Eric Biggers <[email protected]>

The 'f' ioctls with numbers 19-26 decimal are currently used for fscrypt (a.k.a. ext4/f2fs/ubifs encryption), and up to 39 decimal is reserved for future fscrypt use, as per the comment in fs/ext4/ext4.h. So the reserved range is 13-27 hex.

Document this in ioctl-number.rst.

---
 Documentation/ioctl/ioctl-number.rst | 1 +
 1 file changed, 1 insertion(+)
Documentation/ioctl/ioctl-number.rst +0 -0
index bef79cd4c6b4d..4ef86433bd677 100644

Documentation/ioctl/ioctl-number.rst Code Seq# Include File Comments · line 239

Quoted 7 lines
Documentation/ioctl/ioctl-number.rst +1 -0
@@ -233,6 +233,7 @@ Code  Seq#    Include File                                           Comments
 'f'   00-0F  fs/ext4/ext4.h                                          conflict!
 'f'   00-0F  linux/fs.h                                              conflict!
 'f'   00-0F  fs/ocfs2/ocfs2_fs.h                                     conflict!
+'f'   13-27  linux/fscrypt.h
 'f'   81-8F  linux/fsverity.h
 'g'   00-0F  linux/usb/gadgetfs.h
 'g'   20-2F  linux/usb/g_printer.h

Applied to fscrypt.git for 5.5.

- Eric

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel