Skip to content

btrfs-progs: Fix logical-resolve

Marcos Paulo de Souza linux-btrfs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 3 repliesIn review
  2. v33 patches 0 repliesSuperseded
  3. v23 patches 6 repliesSuperseded

Changes in v4 from the cover letter

* In patch 0002, do not overwrite full_path variable

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs-progs: Adapt find_mount_root to verify other fields of mntent structcmds/receive.c cmds/send.c common/utils.c +1 more+25 -70 replies
2/3btrfs-progs: inspect: Fix logical-resolve file path lookupcmds/inspect.c common/utils.c common/utils.h+61 -171 reply
3/3btrfs-progs: tests: Add new logical-resolve testtests/misc-tests/042-inspect-internal-logical-resolve/test.sh+81 -00 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJosef BacikQu Wenruo
SeriesR-b
1/3
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] btrfs-progs: Fix logical-resolve

From: Marcos Paulo de Souza <[email protected]>

In this forth iteration, only patch 0002 was changed. Previously the variable full_path, which is passed by the user, was being overwritten in the inode loop. Now we create a temp var to store the mount_point when the lookup is needed.

Please review.

Changes from v3:
* In patch 0002, do not overwrite full_path variable

Changes from v2:
* Make mnt_opts check more strict to avoid bind mounts (Qu)
* Print only inode/subvolume when the subvolume itself is not mounted
* Enhance the test by adding a snapshot (unmounted) to exercise the check above
* Enhance the test by adding a bind mount that would trick logical-resolve

Changes from v1:
* Patches 2 and 3 added
* Test created (David)
* Discard changed on btrfs_list_path_for_root and changing find_mount_root instead

Marcos Paulo de Souza (3):
btrfs-progs: Adapt find_mount_root to verify other fields of mntent
struct
btrfs-progs: inspect: Fix logical-resolve file path lookup
btrfs-progs: tests: Add new logical-resolve test

 cmds/inspect.c                                | 44 +++++++---
 cmds/receive.c                                |  3 +-
 cmds/send.c                                   |  6 +-
 common/utils.c                                | 32 +++++++-
 common/utils.h                                | 11 ++-
 .../test.sh                                   | 81 +++++++++++++++++++
 6 files changed, 160 insertions(+), 17 deletions(-)
 create mode 100755 tests/misc-tests/042-inspect-internal-logical-resolve/test.sh
Signature · 1 line
2.26.2