Quick question.
On Wed, Jan 24, 2001 at 09:20:43AM -0600, Steve Lord wrote:
> What XFS also has is an ioctl to preallocate disk space, there is very
> little documentation on this (none), but if you look in the file
> cmd/xfstests/src/randholes.c you will see an ioctl like this:
>
> struct flock64 fl;
> fl.l_start = offset;
> fl.l_len = blocksize;
> fl.l_whence = 0;
>
> if (ioctl(fd, XFS_IOC_RESVSP64, &fl) < 0) {
>
> This is preallocating disk blocks for file data. Of course, it only
> works if you know file size in advance. We should also have direct
> I/O in the next month or so.
Does this mean that unwriten extents are supported now in pagebuf? Otherwise
this ioctl would need to prezero the disks blocks to prevent old data
from being leaked, right?
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]