On Tue, Dec 24, 2024 at 02:42:08PM +1100, Dave Chinner wrote: > On Mon, Dec 23, 2024 at 10:12:32PM +0530, Sai Chaitanya Mitta wrote: > > Hi Team, > > Is there any method/tool available to explicitly mark XFS > > file extents as written? One approach I > > Writing data to the unwritten extent is the only way to do this. > Allowing uninitialised data extents to be converted to a written > state opens a massive hole in system security. Yes. > Go search for the discussions around FALLOC_FL_NO_HIDE_STALE from > well over a decade ago..... Or look for the old XFS_IOC_ALLOCSP ioctl which did allocation and freeing in one syscall, which we removed quite a while ago.