[PATCH 1/2] util: Don't lie in virFileGetMount*Subtree's docstrings

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

 



The resulting function virFileGetMountSubtreeImpl() just uses
virStringSortRevCompare or virStringSortCompare which uses strcmp().

Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
 src/util/virfile.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/util/virfile.c b/src/util/virfile.c
index 718dcc4a98a6..99157be162b4 100644
--- a/src/util/virfile.c
+++ b/src/util/virfile.c
@@ -1965,7 +1965,7 @@ virFileGetMountSubtreeImpl(const char *mtabpath ATTRIBUTE_UNUSED,
  * @nmountsret: filled with number of matching mounts, not counting NULL terminator
  *
  * Return the list of mounts from @mtabpath which contain
- * the path @prefix, sorted from shortest to longest path.
+ * the path @prefix, sorted alphabetically.
  *
  * The @mountsret array will be NULL terminated and should
  * be freed with virStringListFree
@@ -1988,8 +1988,7 @@ int virFileGetMountSubtree(const char *mtabpath,
  * @nmountsret: filled with number of matching mounts, not counting NULL terminator
  *
  * Return the list of mounts from @mtabpath which contain
- * the path @prefix, sorted from longest to shortest path.
- * ie opposite order to which they appear in @mtabpath
+ * the path @prefix, reverse-sorted alphabetically.
  *
  * The @mountsret array will be NULL terminated and should
  * be freed with virStringListFree
-- 
2.11.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux