diff options
author | Karel Zak | 2010-04-15 13:27:47 +0200 |
---|---|---|
committer | Karel Zak | 2010-06-03 15:20:12 +0200 |
commit | 3d73558960025f6bd18fd8b05986e021e5159df2 (patch) | |
tree | 6d39d51d633e129c171daecf4e36eadc4e366dd4 /shlibs/mount/src/utils.c | |
parent | libmount: cleanup docs (diff) | |
download | kernel-qcow2-util-linux-3d73558960025f6bd18fd8b05986e021e5159df2.tar.gz kernel-qcow2-util-linux-3d73558960025f6bd18fd8b05986e021e5159df2.tar.xz kernel-qcow2-util-linux-3d73558960025f6bd18fd8b05986e021e5159df2.zip |
libmount: add docs
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/utils.c')
-rw-r--r-- | shlibs/mount/src/utils.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/shlibs/mount/src/utils.c b/shlibs/mount/src/utils.c index 1f3337f24..ae2945c04 100644 --- a/shlibs/mount/src/utils.c +++ b/shlibs/mount/src/utils.c @@ -140,12 +140,13 @@ int mnt_fstype_is_netfs(const char *type) * * The @pattern list of filesystem can be prefixed with a global * "no" prefix to invert matching of the whole list. The "no" could - * also used for individual items in the @pattern list. + * also used for individual items in the @pattern list. So, + * "nofoo,bar" has the same meaning as "nofoo,nobar". * - * "nofoo,bar" has the same meaning as "nofoo,nobar" + * "bar" : "nofoo,bar" -> False (global "no" prefix) + * + * "bar" : "foo,bar" -> True * - * "bar" : "nofoo,bar" -> False (global "no" prefix) - * "bar" : "foo,bar" -> True * "bar" : "foo,nobar" -> False * * Returns: 1 if type is matching, else 0. This function also returns @@ -225,8 +226,9 @@ static int check_option(const char *haystack, size_t len, * Unlike fs type matching, nonetdev,user and nonetdev,nouser have * DIFFERENT meanings; each option is matched explicitly as specified. * - * xxx,yyy,zzz : nozzz -> False - * xxx,yyy,zzz : xxx,noeee -> True + * "xxx,yyy,zzz" : "nozzz" -> False + * + * "xxx,yyy,zzz" : "xxx,noeee" -> True * * Returns: 1 if pattern is matching, else 0. This function also returns 0 * if @pattern is NULL and @optstr is non-NULL. |