From: Dave Chinner <david@fromorbit.com>
To: Shawn <neutronsharc@gmail.com>
Cc: linux-xfs@vger.kernel.org
Subject: Re: Do I have to fsync after aio_write finishes (with fallocate preallocation) ?
Date: Mon, 28 Aug 2023 11:01:13 +1000 [thread overview]
Message-ID: <ZOvx2Xg31EbJXPgr@dread.disaster.area> (raw)
In-Reply-To: <CAB-bdyRTKNQeukwjuB=fCT91BDO5uTJzA_Y7msOdEPBDAURbzg@mail.gmail.com>
On Sat, Aug 26, 2023 at 06:09:13PM -0700, Shawn wrote:
> xfs_io shows "extsize" as 0. The data bsize is always 4096. What's
> the implication of a 0 extsize?
>
> $ sudo xfs_io -c 'stat' /mnt/S48BNW0K700192T/
> fd.path = "/mnt/S48BNW0K700192T/"
> fd.flags = non-sync,non-direct,read-write
> stat.ino = 64
> stat.type = directory
> stat.size = 81
> stat.blocks = 0
> fsxattr.xflags = 0x0 [--------------]
> fsxattr.projid = 0
> fsxattr.extsize = 0 <==== 0
> fsxattr.nextents = 0
> fsxattr.naextents = 0
> dioattr.mem = 0x200
> dioattr.miniosz = 512
> dioattr.maxiosz = 2147483136
THere are no xflags set, meaning the XFS_DIFLAG_EXTSZINHERIT is not
set on the directory so nothing will inherit the extsize from the
directory at creation time. An extsize of zero is the default "don't
do any non-default extent size alignment" (i.e. align to stripe
parameters if the filesystem has them set, but nothing else.)
If this is the root directory of a mounted filesystem, it means the
extent size hint was not set by mkfs, and it hasn't been set
manually via xfs_io after mount, either.
-Dave.
--
Dave Chinner
david@fromorbit.com
next prev parent reply other threads:[~2023-08-28 1:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-29 19:20 Do I have to fsync after aio_write finishes (with fallocate preallocation) ? Shawn
2022-11-29 21:17 ` Darrick J. Wong
2022-11-29 21:34 ` Dave Chinner
2023-08-21 19:01 ` Shawn
2023-08-26 3:48 ` Dave Chinner
2023-08-27 1:09 ` Shawn
2023-08-28 1:01 ` Dave Chinner [this message]
2023-09-01 1:06 ` Shawn
2023-09-01 3:47 ` Dave Chinner
2023-09-01 23:50 ` Shawn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZOvx2Xg31EbJXPgr@dread.disaster.area \
--to=david@fromorbit.com \
--cc=linux-xfs@vger.kernel.org \
--cc=neutronsharc@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox