Thread (13 messages) 13 messages, 3 authors, 2024-08-21

Re: [PATCH 3/6] fs: sort out the fallocate mode vs flag mess

From: Christoph Hellwig <hch@lst.de>
Date: 2024-08-21 13:14:32
Also in: linux-ext4, linux-fsdevel, linux-xfs

On Wed, Aug 21, 2024 at 08:43:14AM -0400, Brian Foster wrote:
quoted
-	if ((mode & ~FALLOC_FL_KEEP_SIZE) && IS_APPEND(inode))
+	if (mode != FALLOC_FL_ALLOCATE_RANGE && IS_APPEND(inode))
 		return -EPERM;
Unless I'm misreading, this changes semantics by enforcing that we
cannot use KEEP_SIZE on append only files. That means one can no longer
do a post-eof prealloc without actually changing the file size, which on
a quick test seems to work today.
No, I think it was me misreading the old code.  And I'm a little worried
that no test cought it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help