Skip to content

RFC btrfs-progs: boilerplate code for printing devices.

Anand Jain linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs-progs: print device list volumes-c apikernel-shared/volumes.c kernel-shared/volumes.h+6 -10 replies
2/2btrfs-progs: print device listkernel-shared/print-tree.c kernel-shared/print-tree.h+72 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH RFC 0/2] btrfs-progs: boilerplate code for printing devices.

This is a set of boilerplate code to print the whole list of devices wherever in the code, for example:

	#include "kernel-shared/print-tree.h"

	btrfs_print_devlist(NULL);

This code has been helping me to debug and fix certain bugs for some time.

The code is a port from its kernel version and has been roughly optimized but not cleaned. However, I am sending it out to see if it can be integrated. Otherwise, I am fine with maintaining it externally and keeping it updated when needed. Thx.

Anand Jain (2):
btrfs-progs: print device list volumes-c api
btrfs-progs: print device list

 kernel-shared/print-tree.c | 71 ++++++++++++++++++++++++++++++++++++++
 kernel-shared/print-tree.h |  1 +
 kernel-shared/volumes.c    |  5 +++
 kernel-shared/volumes.h    |  2 +-
 4 files changed, 78 insertions(+), 1 deletion(-)
Signature · 1 line
2.31.1