]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: Don't lie in virFileGetMount*Subtree's docstrings
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 5 Jan 2017 15:19:08 +0000 (16:19 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 5 Jan 2017 15:23:25 +0000 (16:23 +0100)
The resulting function virFileGetMountSubtreeImpl() just uses
virStringSortRevCompare or virStringSortCompare which uses strcmp().

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/util/virfile.c

index 718dcc4a98a6f1712504832d3127390bddbe303c..99157be162b4e5d80d4062b0ee2dfbfa55c91171 100644 (file)
@@ -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