All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs-progs: make sure "mkfs --rootdir" copies the xattr for the rootdir
@ 2023-10-09  3:34 Qu Wenruo
  2023-10-09  3:34 ` [PATCH 1/2] btrfs-progs: mkfs/rootdir: add the missing xattr for the rootdir inode Qu Wenruo
  2023-10-09  3:34 ` [PATCH 2/2] btrfs-progs: tests/mkfs: make sure rootdir got its xattr copied Qu Wenruo
  0 siblings, 2 replies; 5+ messages in thread
From: Qu Wenruo @ 2023-10-09  3:34 UTC (permalink / raw)
  To: linux-btrfs

We got a bug report that "mkfs.btrfs --rootdir" copies all the xattr but
the xattr of the source directory.

It turns out that we only do the regular xattr copy for all the child
inodes, not the source directory itself.

Fix it and create a test case for it.

Qu Wenruo (2):
  btrfs-progs: mkfs/rootdir: add the missing xattr for the rootdir inode
  btrfs-progs: tests/mkfs: make sure rootdir got its xattr copied

 mkfs/rootdir.c                             |  8 +++++
 tests/mkfs-tests/027-rootdir-xattr/test.sh | 40 ++++++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 100755 tests/mkfs-tests/027-rootdir-xattr/test.sh

--
2.42.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-10-09 20:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-09  3:34 [PATCH 0/2] btrfs-progs: make sure "mkfs --rootdir" copies the xattr for the rootdir Qu Wenruo
2023-10-09  3:34 ` [PATCH 1/2] btrfs-progs: mkfs/rootdir: add the missing xattr for the rootdir inode Qu Wenruo
2023-10-09  3:34 ` [PATCH 2/2] btrfs-progs: tests/mkfs: make sure rootdir got its xattr copied Qu Wenruo
2023-10-09 13:58   ` David Sterba
2023-10-09 20:40     ` Qu Wenruo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.