Re: [PATCH 10/21] block: Add fops atomic write support

From: Bart Van Assche
Date: Fri Sep 29 2023 - 13:51:52 EST


On 9/29/23 03:27, John Garry wrote:
+ if (pos % atomic_write_unit_min_bytes)
+ return false;
+ if (iov_iter_count(iter) % atomic_write_unit_min_bytes)
+ return false;
+ if (!is_power_of_2(iov_iter_count(iter)))
+ return false;
[ ... ]
+ if (pos % iov_iter_count(iter))
+ return false;

Where do these rules come from? Is there any standard that requires
any of the above?

Thanks,

Bart.