[PATCH 0/3] make 'btrfs fi show /mnt/point/' works with ending '/' character

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux