Before this patchset, 'btrfs fi show' can work with '/mnt/point' but not 
'/mnt/point/',
which is very annoying since tab completion will add '/' to a directory.

This patchset just reuse the find_mount_root function with some small 
modification to
ignore the last '/' only when needed.

Qu Wenruo (3):
  btrfs-progs: move find_mount_root to utils.[ch]
  btrfs-progs: Add path_is_mp option for find_mount_root.
  btrfs-progs: reuse find_mount_root to determine arg type and so on.

 cmds-filesystem.c |  7 +++++
 cmds-receive.c    |  2 +-
 cmds-send.c       | 53 ++-------------------------------
 cmds-subvolume.c  |  2 +-
 commands.h        |  1 -
 utils.c           | 88 +++++++++++++++++++++++++++++++++++++++++++++----------
 utils.h           |  1 +
 7 files changed, 86 insertions(+), 68 deletions(-)

-- 
1.8.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to