public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* fallocate behavior on -ENOSPC for blocks past EOF
@ 2017-12-13 16:16 Carlos Maiolino
  2017-12-13 21:29 ` Dave Chinner
  0 siblings, 1 reply; 4+ messages in thread
From: Carlos Maiolino @ 2017-12-13 16:16 UTC (permalink / raw)
  To: linux-xfs

We have talked a bit about it on irc before but iirc we didn't end on any
conclusion about it.

Current fallocate behavior on XFS in case it hits -ENOSPC in the middle of the
reservation is kind of weird now when these new blocks are allocated past EOF.

We end up not changing the i_size to match the partial blocks allocated even if
fallocate is not called with KEEP_SIZE.

Such behavior is confusing some users of fallocate, and I've been talking to
Eric if wouldn't be better to update the i_size to match the partially allocated
blocks IF KEEP_SIZE has not been used.

I know though that fallocate behavior is kind of undefined in this case, but I
wonder if is there anything we could agree to improve to make it less confusing
for fallocate users, or at least agree if this is the behavior we want in XFS.

Maybe is worth to mention though, that by now, we release any unwritten extent
past EOF at certain points in the code (/me don't remember exactly where by
now).

I didn't have time to come back to this issue before, so, sorry about the lack
of more details, but let me know if anybody needs more specific details about
this and I'll get more data.

Cheers



-- 
Carlos

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-19 20:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-13 16:16 fallocate behavior on -ENOSPC for blocks past EOF Carlos Maiolino
2017-12-13 21:29 ` Dave Chinner
2017-12-19 12:11   ` Carlos Maiolino
2017-12-19 20:44     ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox