# Re: \[PATCH v6 5/6\] fs: prepare for extending file\_get/setattr()

- From: Christian Brauner \<brauner@kernel.org\>
- Date: 2025-07-02 12:24:39 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2025/07/316588
- Thread: https://ratatoskr.run/linux-api/2025/06/316331/t.md

```text
> Christian,
> 
> Can you please amend the return value in the following chunk:
> 
> @@ -119,11 +120,16 @@ static int copy_fsxattr_from_user(struct fileattr *fa,
>                                   struct fsxattr __user *ufa)
>  {
>         struct fsxattr xfa;
> +       __u32 mask = FS_XFLAGS_MASK;
> 
>         if (copy_from_user(&xfa, ufa, sizeof(xfa)))
>                 return -EFAULT;
> 
> +       if (xfa.fsx_xflags & ~mask)
> +               return -EOPNOTSUPP;
> +

Done.
```
