diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-13 17:27:56 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-13 22:10:36 +0100 |
commit | c0a087b8236755e95371d5c352c9d29a3ca992c0 (patch) | |
tree | d85c99f1f43fbd29c257ea57037509f742579ef4 /daemon/devsparts.c | |
parent | 4165e28b53d7024c38a171586acfb5c5b2c858b7 (diff) | |
download | libguestfs-c0a087b8236755e95371d5c352c9d29a3ca992c0.tar.gz libguestfs-c0a087b8236755e95371d5c352c9d29a3ca992c0.tar.xz libguestfs-c0a087b8236755e95371d5c352c9d29a3ca992c0.zip |
daemon: Fix order of devices in guestfs_list_devices when > 26 disks.
Sort the device names correctly, not just treating them as
strings. As a result, /dev/sdz < /dev/sdaa.
Diffstat (limited to 'daemon/devsparts.c')
-rw-r--r-- | daemon/devsparts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/devsparts.c b/daemon/devsparts.c index 1848c4f9..b6f755be 100644 --- a/daemon/devsparts.c +++ b/daemon/devsparts.c @@ -1,5 +1,5 @@ /* libguestfs - the guestfsd daemon - * Copyright (C) 2009 Red Hat Inc. + * Copyright (C) 2009-2012 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -106,7 +106,7 @@ foreach_block_device (block_dev_func_t func) /* Sort the devices. */ if (r.size > 0) - sort_strings (r.argv, r.size); + sort_device_names (r.argv, r.size); /* NULL terminate the list */ if (end_stringsbuf (&r) == -1) { |