linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Btrfs-progs: commands "resolve inode" and "resolve logical"
@ 2011-07-07 16:01 Jan Schmidt
  2011-07-07 16:01 ` [PATCH v1 1/2] btrfs-list: split list_subvols Jan Schmidt
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jan Schmidt @ 2011-07-07 16:01 UTC (permalink / raw)
  To: chris.mason, linux-btrfs

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:

--
btrfs resolve inode [-v] <inode> <path>
	resolves an <inode> to all filesystem paths local to the fs mounted
	at <path>.
		-v  print count of returned and missed paths

btrfs resolve logical [-v] [-P] <logical> <path>
	resolves a <logical> address to all filesystem paths in the file
	system mounted at <path> and all its subvolumes.
		-v  print count of returned and missed inode/offset/root
		    triples
		-P  do not resolve the path but stop after finding all
		    inodes at this logical address and print them instead
--

These patches are based on Hugo's current integration branch.

Please try them out and report bugs here. I'll send an update to the manpages
later.

-Jan

Jan Schmidt (2):
  btrfs-list: split list_subvols
  added ioctls and commands to resolve inodes and logical addresses

 btrfs-list.c |  139 ++++++++++++++++++++++++++++++++++------------
 btrfs.c      |   10 +++
 btrfs_cmds.c |  177 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 btrfs_cmds.h |    3 +
 ioctl.h      |   29 ++++++++++
 5 files changed, 323 insertions(+), 35 deletions(-)

-- 
1.7.3.4


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

end of thread, other threads:[~2011-07-08 16:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-07 16:01 [PATCH v1 0/2] Btrfs-progs: commands "resolve inode" and "resolve logical" Jan Schmidt
2011-07-07 16:01 ` [PATCH v1 1/2] btrfs-list: split list_subvols Jan Schmidt
2011-07-07 16:01 ` [PATCH v1 2/2] added ioctls and commands to resolve inodes and logical addresses Jan Schmidt
2011-07-07 23:19 ` [PATCH v1 0/2] Btrfs-progs: commands "resolve inode" and "resolve logical" Goffredo Baroncelli
2011-07-08  8:24   ` Jan Schmidt
2011-07-08 16:42     ` Goffredo Baroncelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).