On Sun, Nov 20, 2011 at 01:22:10PM -0800, Hugh Dickins wrote: > First question that springs to mind (to which I shall easily find > an answer): is it actually acceptable for fallocate() to return > -ENOSPC when it has already completed a part of the work?
No, it must undo all allocations if it returns ENOSPC.