Skip to content

debugfs implements rdump_tar to write tar using libarchive#266

Open
liulk wants to merge 1 commit into
tytso:masterfrom
liulk:topic/debugfs-rdumptar
Open

debugfs implements rdump_tar to write tar using libarchive#266
liulk wants to merge 1 commit into
tytso:masterfrom
liulk:topic/debugfs-rdumptar

Conversation

@liulk

@liulk liulk commented Jan 15, 2026

Copy link
Copy Markdown
  • debugfs/Makefile.in: build dump_tar.c and dump_tar.o
  • debugfs/debug_cmds.ct: added rdump_tar command
  • debugfs/debugfs.8.in: updated man page
  • debugfs/debugfs.c: do_mknod also makes unix socket
  • debugfs/debugfs.h: added do_rdump_tar declaration
  • debugfs/dump_tar.c: newly implemented
  • lib/ext2fs/Makefile.in: build dump_tar.c and dump_tar.o for testing
  • lib/support/dl_archive_read.h: split dlopen libarchive read logic from misc/create_inode_libarchive.c
  • lib/support/dl_archive_write.h: analogous dlopen libarchive write logic for debugfs/dump_tar.c
  • misc/create_inode_libarchive.c: dlopen libarchive logic moved out
  • tests/d_rdump_tar: added test files for rdump_tar

Test manually verified to be passing:

d_rdump_tar: use debugfs to recursively dump files to a tarball: ok 385 tests succeeded 0 tests failed

  - debugfs/Makefile.in: build dump_tar.c and dump_tar.o
  - debugfs/debug_cmds.ct: added rdump_tar command
  - debugfs/debugfs.8.in: updated man page
  - debugfs/debugfs.c: do_mknod also makes unix socket
  - debugfs/debugfs.h: added do_rdump_tar declaration
  - debugfs/dump_tar.c: newly implemented
  - lib/ext2fs/Makefile.in: build dump_tar.c and dump_tar.o for testing
  - lib/support/dl_archive_read.h: split dlopen libarchive read logic from
    misc/create_inode_libarchive.c
  - lib/support/dl_archive_write.h: analogous dlopen libarchive write logic
    for debugfs/dump_tar.c
  - misc/create_inode_libarchive.c: dlopen libarchive logic moved out
  - tests/d_rdump_tar: added test files for rdump_tar

Test manually verified to be passing:

d_rdump_tar: use debugfs to recursively dump files to a tarball: ok
385 tests succeeded	0 tests failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant