[PATCH] xfs_io: actually issue 0 size writes

Christoph Hellwig hch at infradead.org
Wed Aug 26 17:11:06 CDT 2009


On Thu, Aug 13, 2009 at 05:15:50PM -0500, Eric Sandeen wrote:
> While testing some stuff in generic_write_checks() in the
> kernel I realized that you can't actually use xfs_io to send
> a 0-byte write in.  This is actually a condition worth testing:
> 
>        If  count  is zero and fd refers to a regular file,
>        then write() may return a failure status if one  of
>        the  errors  below  is  detected.  If no errors are
>        detected, 0 will be returned  without  causing  any
>        other  effect.
> 
> So fix that up.
> 
> Signed-off-by: Eric Sandeen <sandeen at sandeen.net>

Any reason you didn't put this in despite two positive reviews?




More information about the xfs mailing list