函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-29 10:38:10
Last Modify:2020-03-18 19:19:59 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Generic function to check FS_IOC_FSSETXATTR values and reject any invalid* configurations.* Note: the caller should be holding i_mutex, or else be sure that they have* exclusive access to the inode structure.

函数原型:int vfs_ioc_fssetxattr_check(struct inode *inode, const struct fsxattr *old_fa, struct fsxattr *fa)

返回类型:int

参数:

类型参数名称
struct inode *inode
const struct fsxattr *old_fa
struct fsxattr *fa
2273  如果xflags field value (get/set) 按位异或xflags field value (get/set) 的值按位与le cannot be modified 按位或all writes append 的值且非操作权限检查则返回:负EPERM
2283  如果current_user_ns()不等于userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ?
2284  如果project identifier (get/set) 不等于project identifier (get/set) 则返回:负EINVAL
2286  如果xflags field value (get/set) 按位异或xflags field value (get/set) 的值按位与create with parents projid 则返回:负EINVAL
2292  如果xflags field value (get/set) 按位与xtent size allocator hint 且非S_ISREG(i_mode)则返回:负EINVAL
2295  如果xflags field value (get/set) 按位与herit inode extent size 且非S_ISDIR(i_mode)则返回:负EINVAL
2299  如果xflags field value (get/set) 按位与CoW extent size allocator hint 且非S_ISREG(i_mode)且非S_ISDIR(i_mode)则返回:负EINVAL
2307  如果xflags field value (get/set) 按位与use DAX for IO 且非S_ISREG(i_mode)或S_ISDIR(i_mode)的值则返回:负EINVAL
2312  如果xtsize field value (get/set)恒等于0则xflags field value (get/set) 与等于xtent size allocator hint 按位或herit inode extent size 的值的反
2314  如果CoW extsize field value (get/set)恒等于0则xflags field value (get/set) 与等于CoW extent size allocator hint 的反
2317  返回:0