Skip to content

Btrfs-progs: add the first "inspect-internal" commands

Jan Schmidt linux-btrfs 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v33 patches 1 replySuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches3 repliesSuperseded

Changes in v4 from the cover letter

- bugfix: don't overwrite parent_id after setting it correctly in resolve_root (reported by David Sterba)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Btrfs-progs: btrfs-list: split list_subvolsbtrfs-list.c+68 -350 replies
2/3Btrfs-progs: added ioctls and commands to resolve inodes and logical addrsbtrfs-list.c btrfs.c btrfs_cmds.c +2 more+261 -00 replies
3/3Btrfs-progs: added resolve commands to man pageman/btrfs.8.in+29 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/3] Btrfs-progs: add the first "inspect-internal" commands

This version is still based on Hugo's current integration branch and can also be pulled from git://git.jan-o-sch.net/btrfs-progs-unstable.

Changes v3->v4:
- bugfix: don't overwrite parent_id after setting it correctly in resolve_root (reported by David Sterba)

Changes v2->v3:
- adapted to a change in the ioctl interface in the accompanying kernel patch series v8. we now use bytes_missing and bytes_left (unsigned) instead of size (signed)
- explicit casts added when printing u32 to avoid compiler warnings

Changes v1->v2:
- commands renamed as suggested by Goffredo Baroncelli
- man pages added

The kernel patch series just sent (Subject: "Btrfs: scrub: print path to corrupted files and trigger nodatasum fixup") introduces two new ioctls to do in-kernel filesystem path construction. This series provides the corresponding userspace changes, adding two new commands to the btrfs utility.

Please try them out and report bugs here.

-Jan

Jan Schmidt (3):
Btrfs-progs: btrfs-list: split list_subvols
Btrfs-progs: added ioctls and commands to resolve inodes and logical
addrs
Btrfs-progs: added resolve commands to man page

 btrfs-list.c   |  138 +++++++++++++++++++++++++++++++-----------
 btrfs.c        |   10 +++
 btrfs_cmds.c   |  183 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 btrfs_cmds.h   |    3 +
 ioctl.h        |   30 +++++++++
 man/btrfs.8.in |   29 +++++++++
 6 files changed, 358 insertions(+), 35 deletions(-)
Signature · 1 line
1.7.3.4