]> www.infradead.org Git - users/hch/xfsprogs.git/commit
libxfs: pass flags2 from parent to child when creating files
authorDarrick J. Wong <djwong@kernel.org>
Wed, 2 Oct 2024 01:11:44 +0000 (18:11 -0700)
committerAndrey Albershteyn <aalbersh@redhat.com>
Fri, 4 Oct 2024 10:42:07 +0000 (12:42 +0200)
commit66ecea3e41d2c0a7ec3ad8ff3e7b7f20e4c48b4c
tree4c372fafabc8777061ca17fd1aecf14c671da96d
parentff9ad30a71493408cbdba36727ad9d998ed03238
libxfs: pass flags2 from parent to child when creating files

When mkfs creates a new file as a child of an existing directory, we
should propagate the flags2 field from parent to child like the kernel
does.  This ensures that mkfs propagates cowextsize hints properly when
protofiles are in use.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/inode.c