Skip to content

btrfs-progs: stat info for btrfs rescue chunk-recover

Zhao Lei linux-btrfs 3 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 1 replyIn review
  2. v23 patches 0 repliesSuperseded
  3. v13 patches 0 repliesSuperseded

Changes in v3 from the cover letter

Add [PATCH 2/4] to fix a potential invalid memory access of pthread.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4btrfs-progs: use for loop for scan_deviceschunk-recover.c+1 -30 replies
2/4btrfs-progs: Use long type to get thread's return valuechunk-recover.c+2 -20 replies
3/4btrfs-progs: stat info for btrfs rescue chunk-recoverchunk-recover.c+54 -180 replies
4/4btrfs-progs: Fix some spelling typo in chunk-recover.cchunk-recover.c+4 -50 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/4] btrfs-progs: stat info for btrfs rescue chunk-recover

chunk-recover need to use many many time in scan_devices(), and no output in screen:

 # btrfs rescue chunk-recover /dev/sda6
 (no output here, but need long time)

To notice user that "the command is not hang", this patch add dynamic updated stat information in above period:

 # btrfs rescue chunk-recover /dev/sda6
 Scanning: DONE in dev[0], 19998441472 in dev[1], DONE in dev[2]
 (until)
 Scanning: DONE in dev0, DONE in dev1, DONE in dev2
 Check chunks successfully with no orphans
 Recover the chunk tree successfully.

Changelog v2->v3:
Add [PATCH 2/4] to fix a potential invalid memory access of pthread.

Changelog v1->v2:
[PATCH 3/3] in v1 lost a little cleanup, added in v2.

Zhao Lei (4):
btrfs-progs: use for loop for scan_devices
btrfs-progs: Use long type to get thread's return value
btrfs-progs: stat info for btrfs rescue chunk-recover
btrfs-progs: Fix some spelling typo in chunk-recover.c

 chunk-recover.c | 89 +++++++++++++++++++++++++++++++++++++++------------------
 1 file changed, 61 insertions(+), 28 deletions(-)
Signature · 1 line
1.8.5.1