Re: Do I have to fsync after aio_write finishes (with fallocate preallocation) ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 21, 2023 at 12:01:27PM -0700, Shawn wrote:
> Hello Dave,
> Thank you for your detailed reply.  That fallocate() thing makes a lot of sense.
> 
> I want to figure out the default extent size in my evn.  But
> "xfs_info" doesn't seem to output it? (See below output)

extent size hints are an inode property, not a filesystem geometry
property.  xfs_info only queries the later, it knows nothing about
the former.

# xfs_io -c 'stat' </path/to/mnt>

will tell you what the default extent size hint that will be
inherited by newly created sub-directories and files
(fsxattr.extsize).

> 
> Also, I want to use this cmd to set the default extent size hint, is
> this correct?
> $ sudo mkfs.xfs -d extszinherit=256    <== the data block is 4KB,  so
> 256 is 1MB.

Yes.

-Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux