mbox series

[0/2] Support removal of ino cache leftover by btrfs check

Message ID 20201203081742.3759528-1-nborisov@suse.com (mailing list archive)
Headers show
Series Support removal of ino cache leftover by btrfs check | expand

Message

Nikolay Borisov Dec. 3, 2020, 8:17 a.m. UTC
Following the removal of ino cache support in the kernel, let's add support
for 'btrfs check --clear-ino-cache'. 2nd patch also adds a test to ensure we
don't regress this functionality in the future.

Nikolay Borisov (2):
  btrfs-progi: check: Add support for ino cache deletion
  btrfs-progs: tests: Test operation of newly added --clear-ino-cache

 Documentation/btrfs-check.asciidoc            |   3 +
 check/main.c                                  | 162 +++++++++++++++++-
 .../ino-cache-enabled.raw.xz                  | Bin 0 -> 160420 bytes
 tests/misc-tests/042-ino-cache-clean/test.sh  |  51 ++++++
 4 files changed, 215 insertions(+), 1 deletion(-)
 create mode 100644 tests/misc-tests/042-ino-cache-clean/ino-cache-enabled.raw.xz
 create mode 100755 tests/misc-tests/042-ino-cache-clean/test.sh

--
2.17.1

Comments

David Sterba Dec. 15, 2020, 7 p.m. UTC | #1
On Thu, Dec 03, 2020 at 10:17:40AM +0200, Nikolay Borisov wrote:
> Following the removal of ino cache support in the kernel, let's add support
> for 'btrfs check --clear-ino-cache'. 2nd patch also adds a test to ensure we
> don't regress this functionality in the future.

Thanks, added to devel with some fixups. The test is really for check so
it should be in fsck-tests and the SUDO_HELPER is not necessary as
there's no mount/umount involved (that failed on my NFS setup), the
dump-tree -t N should not be numeric if it's for a named tree (fs,
csum).