diff options
author | Wang Shilong <wangsl.fnst@cn.fujitsu.com> | 2014-01-09 20:42:12 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-31 08:22:22 -0800 |
commit | 4f5ebb3ef55396ef976d3245e2cdf9860680df74 (patch) | |
tree | e8ef0f10d04bc0de538feefe210243715bbd6e9a /cmds-balance.c | |
parent | 62d02453e40ff1ab8d942853fa4919a54eaf4f90 (diff) |
Btrfs-progs: fix to make list specified directory's subvolumes work
Steps to reproduce:
# mkfs.btrfs -f /dev/sda8
# mount /dev/sda8 /mnt
# mkdir /mnt/subvolumes
# btrfs sub create /mnt/subvolumes/subv1
# btrfs sub create /mnt/subvolumes/subv1/subv1.1
# btrfs sub list -o /mnt/subvolumes/subv1 <----we did not list anything
The problem is that we don't set @top_id right, fix it.
Reported-by: Alex <alex@bpmit.com>
Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'cmds-balance.c')
0 files changed, 0 insertions, 0 deletions