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