linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: sort devices by id in fi show
@ 2012-07-17 10:51 David Sterba
  0 siblings, 0 replies; only message in thread
From: David Sterba @ 2012-07-17 10:51 UTC (permalink / raw)
  To: linux-btrfs; +Cc: chris.mason, David Sterba

Devids are printed in descending order now, switch it to ascending.

Signed-off-by: David Sterba <dsterba@suse.cz>
---
 btrfs-show.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/btrfs-show.c b/btrfs-show.c
index 8210fd2..2a85932 100644
--- a/btrfs-show.c
+++ b/btrfs-show.c
@@ -77,7 +77,7 @@ static void print_one_uuid(struct btrfs_fs_devices *fs_devices)
 
 	free(super_bytes_used);
 
-	list_for_each(cur, &fs_devices->devices) {
+	list_for_each_prev(cur, &fs_devices->devices) {
 		char *total_bytes;
 		char *bytes_used;
 		device = list_entry(cur, struct btrfs_device, dev_list);
-- 
1.7.6.233.gd79bc


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-17 10:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-17 10:51 [PATCH] btrfs-progs: sort devices by id in fi show David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).