Re: [PATCH 1/2] btrfs-progs: mkfs: output device list in sorted order

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

 



On Tue, Nov 03, 2015 at 07:03:00PM +0800, Zhao Lei wrote:
> list_for_each_entry_reverse() in current code can not output
> devices in sorted order, because the sequence are broken in
> btrfs_alloc_chunk().
> 
> We can use list_sort() instead.
> 
> Before patch:
>  # mkfs.btrfs -f /dev/vdd /dev/vde /dev/vdf
>  ...
>  Number of devices:  3
>  Devices:
>     ID        SIZE  PATH
>      3     2.60GiB  /dev/vdf
>      1     2.60GiB  /dev/vdd
>      2     2.60GiB  /dev/vde
> 
> After patch:
>  # mkfs.btrfs -f /dev/vdd /dev/vde /dev/vdf
>  ...
>  Number of devices:  3
>  Devices:
>     ID        SIZE  PATH
>      1     2.60GiB  /dev/vdd
>      2     2.60GiB  /dev/vde
>      3     2.60GiB  /dev/vdf
> 
> Signed-off-by: Zhao Lei <zhaolei@xxxxxxxxxxxxxx>

Nice, thanks.
--
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