linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Add subcommand that dumps file extents
@ 2021-07-18  6:45 Sidong Yang
  2021-07-18  6:46 ` [PATCH v4 1/2] btrfs-progs: export util functions about file extent items Sidong Yang
  2021-07-18  6:46 ` [PATCH v4 2/2] btrfs-progs: cmds: Add subcommand that dumps file extents Sidong Yang
  0 siblings, 2 replies; 12+ messages in thread
From: Sidong Yang @ 2021-07-18  6:45 UTC (permalink / raw)
  To: linux-btrfs, Qu Wenruo; +Cc: Sidong Yang

This patch series add an subcommand in inspect-internal. It dumps file extents of
the file that user provided. For avoiding duplicated code, the patch that export
functions is in this series.

Sidong Yang (2):
  btrfs-progs: export util functions about file extent items
  btrfs-progs: cmds: Add subcommand that dumps file extents

---
v2:
 - Prints type and compression
 - Use the terms from file_extents_item like disk_bytenr not like
   "physical"
v3:
 - export util functions for removing duplication
 - change the way to loop with search ioctl
v4:
 - export COMPRESS_STR_LEN for using function safely
---

 Makefile                         |   2 +-
 cmds/commands.h                  |   2 +-
 cmds/inspect-dump-file-extents.c | 134 +++++++++++++++++++++++++++++++
 cmds/inspect.c                   |   1 +
 kernel-shared/print-tree.c       |  18 ++---
 kernel-shared/print-tree.h       |   5 ++
 6 files changed, 151 insertions(+), 11 deletions(-)
 create mode 100644 cmds/inspect-dump-file-extents.c

-- 
2.25.1


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

end of thread, other threads:[~2021-08-20 15:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-18  6:45 [PATCH v4 0/2] Add subcommand that dumps file extents Sidong Yang
2021-07-18  6:46 ` [PATCH v4 1/2] btrfs-progs: export util functions about file extent items Sidong Yang
2021-07-18  6:46 ` [PATCH v4 2/2] btrfs-progs: cmds: Add subcommand that dumps file extents Sidong Yang
2021-08-17 13:30   ` David Sterba
2021-08-18  0:38     ` Sidong Yang
2021-08-18 16:59       ` David Sterba
2021-08-19  3:44         ` Sidong Yang
2021-08-19  6:03       ` Qu Wenruo
2021-08-19  6:05         ` Qu Wenruo
2021-08-19 15:27           ` Sidong Yang
2021-08-19 22:16             ` Qu Wenruo
2021-08-20 15:23               ` Sidong Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).