From: Sarthak Kukreti <sarthakkukreti@chromium.org>
To: Theodore Ts'o <tytso@mit.edu>, Andreas Dilger <adilger.kernel@dilger.ca>
Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org,
Gwendal Grignou <gwendal@chromium.org>,
Sarthak Kukreti <sarthakkukreti@chromium.org>
Subject: [PATCH] ext4: Add xattr commands to compat ioctl handler
Date: Fri, 26 Feb 2021 14:14:41 -0800 [thread overview]
Message-ID: <20210226221441.70071-1-sarthakkukreti@chromium.org> (raw)
This allows 32-bit userspace utils to use FS_IOC_FSGETXATTR and
FS_IOC_FSSETXATTR on a 64-bit kernel.
Signed-off-by: Sarthak Kukreti <sarthakkukreti@chromium.org>
---
fs/ext4/ioctl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
index f0381876a7e5b..055c26296ab46 100644
--- a/fs/ext4/ioctl.c
+++ b/fs/ext4/ioctl.c
@@ -1371,6 +1371,8 @@ long ext4_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
return -EFAULT;
return ext4_ioctl_group_add(file, &input);
}
+ case EXT4_IOC_FSGETXATTR:
+ case EXT4_IOC_FSSETXATTR:
case EXT4_IOC_MOVE_EXT:
case EXT4_IOC_RESIZE_FS:
case FITRIM:
--
2.30.1.766.gb4fecdf3b7-goog
next reply other threads:[~2021-02-26 22:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-26 22:14 Sarthak Kukreti [this message]
2021-02-26 22:21 ` [PATCH] ext4: Add xattr commands to compat ioctl handler Eric Biggers
2021-11-06 3:02 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210226221441.70071-1-sarthakkukreti@chromium.org \
--to=sarthakkukreti@chromium.org \
--cc=adilger.kernel@dilger.ca \
--cc=gwendal@chromium.org \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).