All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/2] btrfs-progs: boilerplate code for printing devices.
@ 2023-07-03  7:55 Anand Jain
  2023-07-03  7:55 ` [PATCH RFC 1/2] btrfs-progs: print device list volumes-c api Anand Jain
  2023-07-03  7:55 ` [PATCH RFC 2/2] btrfs-progs: print device list Anand Jain
  0 siblings, 2 replies; 3+ messages in thread
From: Anand Jain @ 2023-07-03  7:55 UTC (permalink / raw)
  To: linux-btrfs

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(-)

-- 
2.31.1


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

end of thread, other threads:[~2023-07-03  7:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-03  7:55 [PATCH RFC 0/2] btrfs-progs: boilerplate code for printing devices Anand Jain
2023-07-03  7:55 ` [PATCH RFC 1/2] btrfs-progs: print device list volumes-c api Anand Jain
2023-07-03  7:55 ` [PATCH RFC 2/2] btrfs-progs: print device list Anand Jain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.