lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <20230202090124.68518-1-frank.li@vivo.com> Date: Thu, 2 Feb 2023 17:01:24 +0800 From: Yangtao Li <frank.li@...o.com> To: jaegeuk@...nel.org, chao@...nel.org Cc: linux-f2fs-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org Subject: Re: f2fs: add F2FS_IOC_SET_COMPRESS_OPTION_V2 ioctl > It looks using union may simply the implementation, but readability of new structure > becomes worse, since this structure will be exposed to user as an uapi interface, I > guess we'd better to consider more about its readability, thought? How about use the following structure? struct f2fs_comp_option_v2 { __u8 algorithm; __u8 log_cluster_size; __u8 compress_level; }; For the F2FS_IOC_SET_COMPRESS_OPTION_V2 command, algorithm, log_cluster_size and compress_level can be controlled. For compress file checksum, let's add a pair of ioctl controls? Thx, Yangtao
Powered by blists - more mailing lists