]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxfs: use XFS_IGET_CREATE when creating new files
authorDarrick J. Wong <djwong@kernel.org>
Tue, 12 Sep 2023 19:39:52 +0000 (12:39 -0700)
committerCarlos Maiolino <cem@kernel.org>
Thu, 5 Oct 2023 12:57:20 +0000 (14:57 +0200)
commit7f5bbe286e02b0c7df72aba386b56af92b812dc3
treecd913ab97e9870b63f9e8db19026c00d773e3fa7
parent03582d3f3b45e6a6de5dabc30d7ae42baeea3da8
libxfs: use XFS_IGET_CREATE when creating new files

Use this flag to check that newly allocated inodes are, in fact,
unallocated.  This matches the kernel, and prevents userspace programs
from making latent corruptions worse by unintentionally crosslinking
files.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/util.c