[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <107cf2f2-a6fe-57c2-d17d-57679d7c612d@huawei.com>
Date: Sun, 7 Feb 2021 15:46:43 +0800
From: Chao Yu <yuchao0@...wei.com>
To: Eric Biggers <ebiggers@...nel.org>, <linux-fscrypt@...r.kernel.org>
CC: Theodore Ts'o <tytso@....edu>, <linux-api@...r.kernel.org>,
<linux-f2fs-devel@...ts.sourceforge.net>,
<linux-fsdevel@...r.kernel.org>, Jaegeuk Kim <jaegeuk@...nel.org>,
<linux-ext4@...r.kernel.org>, Victor Hsieh <victorhsieh@...gle.com>
Subject: Re: [f2fs-dev] [PATCH 3/6] fs-verity: add FS_IOC_READ_VERITY_METADATA
ioctl
Hi Eric,
On 2021/1/16 2:18, Eric Biggers wrote:
> +static int f2fs_ioc_read_verity_metadata(struct file *filp, unsigned long arg)
> +{
> + if (!f2fs_sb_has_verity(F2FS_I_SB(file_inode(filp))))
> + return -EOPNOTSUPP;
One case is after we update kernel image, f2fs module may no longer support
compress algorithm which current file was compressed with, to avoid triggering
IO with empty compress engine (struct f2fs_compress_ops pointer):
It needs to add f2fs_is_compress_backend_ready() check condition here?
Thanks,
> +
> + return fsverity_ioctl_read_metadata(filp, (const void __user *)arg);
> +}
Powered by blists - more mailing lists