diff mbox series

docs: ioctl-number: document fscrypt ioctl numbers

Message ID 20191009234555.226282-1-ebiggers@kernel.org (mailing list archive)
State Accepted
Headers show
Series docs: ioctl-number: document fscrypt ioctl numbers | expand

Commit Message

Eric Biggers Oct. 9, 2019, 11:45 p.m. UTC
From: Eric Biggers <ebiggers@google.com>

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.

Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 Documentation/ioctl/ioctl-number.rst | 1 +
 1 file changed, 1 insertion(+)

Comments

Eric Biggers Oct. 21, 2019, 8:29 p.m. UTC | #1
On Wed, Oct 09, 2019 at 04:45:55PM -0700, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
> 
> 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.
> 
> Signed-off-by: Eric Biggers <ebiggers@google.com>
> ---
>  Documentation/ioctl/ioctl-number.rst | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/ioctl/ioctl-number.rst b/Documentation/ioctl/ioctl-number.rst
> index bef79cd4c6b4d..4ef86433bd677 100644
> --- a/Documentation/ioctl/ioctl-number.rst
> +++ b/Documentation/ioctl/ioctl-number.rst
> @@ -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
diff mbox series

Patch

diff --git a/Documentation/ioctl/ioctl-number.rst b/Documentation/ioctl/ioctl-number.rst
index bef79cd4c6b4d..4ef86433bd677 100644
--- a/Documentation/ioctl/ioctl-number.rst
+++ b/Documentation/ioctl/ioctl-number.rst
@@ -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