Files
scoutfs/tests/golden
Auke Kok b45fbe0bbb Don't pass data version to attr_x unless the ioctl means to set it.
The wrapper in setattr_more that translates the operations to attr_x
needs to decide whether to ask attr_x to perform a change to any of
the fields passed to it or not. For the date and size fields this
is implicit - we always tell attr_x to change them. For any of the
other fields, it should be explicit.

The only field that is in the struct that this applies to is
data_version. Because the data version field by default is zero,
we use that as condition to decide whether to pass the data_version
down to attr_x.

Previously, the code would always pass a data_version=0 down to attr_x,
triggering one of the validity checks, making it return -EINVAL. We
add a simple test case to test for this issue.

Signed-off-by: Auke Kok <auke.kok@versity.com>
2024-09-27 19:31:22 -04:00
..
2022-02-21 10:44:38 -08:00
2024-08-12 15:07:43 -04:00
2022-12-06 10:31:31 -08:00
2024-07-22 14:08:32 -07:00
2021-07-07 14:13:14 -07:00
2022-02-17 11:20:08 -08:00
2021-05-26 14:18:28 -07:00
2019-08-02 16:51:34 -07:00
2021-04-27 12:01:43 -07:00
2021-01-14 13:42:22 -08:00
2023-01-09 14:49:23 -08:00
2024-06-28 15:09:05 -07:00
2024-07-22 14:08:32 -07:00
2024-06-28 15:09:05 -07:00
2020-12-15 15:13:42 -08:00
2021-09-13 14:41:07 -07:00
2023-10-09 15:35:40 -04:00