Btrfs-Progs: fix subvolumes's some full_path invaild problems.
authorWang Shilong <wangsl-fnst@cn.fujistu.com>
Thu, 27 Sep 2012 17:04:20 +0000 (01:04 +0800)
committerroot <root@localhost.localdomain>
Thu, 4 Oct 2012 20:26:33 +0000 (16:26 -0400)
commita1e89891eb6af5381539d9875b85c196150171b6
treea6d8ba8fd0874e0fffc8c42593492a37b2b4188e
parent0f53cf81f66f4b62f68661f0d5a1a919b1db2686
Btrfs-Progs: fix subvolumes's some full_path invaild problems.

In the privous way, we list all the subvolumes in the filesystem default.

But if a subvolume mounts on another directory, some result's full_path
may be invaild.

According to this, we try to list subvolumes under directoy only by default.

In this way, all the subvolume can be arrived by the full_path.

Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
btrfs-list.c
btrfs-list.h
cmds-subvolume.c