summaryrefslogtreecommitdiffstats
path: root/libmount/python
diff options
context:
space:
mode:
authorSebastian Rasmussen2016-05-29 23:11:53 +0200
committerSebastian Rasmussen2016-05-31 23:40:21 +0200
commit9e93004171eb0c4c288051b2d7bb37f97a0ae430 (patch)
tree369493906bb3c1c6f2554609c737ada0230f4b2e /libmount/python
parentdocs: Fix various typos (diff)
downloadkernel-qcow2-util-linux-9e93004171eb0c4c288051b2d7bb37f97a0ae430.tar.gz
kernel-qcow2-util-linux-9e93004171eb0c4c288051b2d7bb37f97a0ae430.tar.xz
kernel-qcow2-util-linux-9e93004171eb0c4c288051b2d7bb37f97a0ae430.zip
misc: Fix various typos
Fix various typos in error messages, warnings, debug strings, comments and names of static functions. Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>
Diffstat (limited to 'libmount/python')
-rw-r--r--libmount/python/context.c12
-rw-r--r--libmount/python/fs.c4
-rw-r--r--libmount/python/pylibmount.c2
-rw-r--r--libmount/python/tab.c4
4 files changed, 11 insertions, 11 deletions
diff --git a/libmount/python/context.c b/libmount/python/context.c
index 623239436..8256e87c9 100644
--- a/libmount/python/context.c
+++ b/libmount/python/context.c
@@ -311,10 +311,10 @@ static PyObject *Context_enable_fork(ContextObjext *self, PyObject *args, PyObje
#define Context_disable_canonicalize_HELP "disable_canonicalize(disable)\n\n" \
"Enable/disable paths canonicalization and tags evaluation. The libmount context\n" \
- "canonicalies paths when search in fstab and when prepare source and target paths\n" \
+ "canonicalizes paths when searching fstab and when preparing source and target paths\n" \
"for mount(2) syscall.\n" \
"\n" \
- "This fuction has effect to the private (within context) fstab instance only\n" \
+ "This function has effect to the private (within context) fstab instance only\n" \
"(see Cxt.fstab).\n" \
"Returns self or raises an exception in case of an error."
static PyObject *Context_disable_canonicalize(ContextObjext *self, PyObject *args, PyObject *kwds)
@@ -1074,11 +1074,11 @@ static PyObject *Context_helper_setopt(ContextObjext *self, PyObject *args, PyOb
}
#define Context_init_helper_HELP "init_helper(action, flags)\n\n" \
- "This function infors libmount that used from [u]mount.type helper.\n" \
+ "This function informs libmount that it is used from [u]mount.type helper.\n" \
"\n" \
- "The function also calls Cxt.disable_helpers() to avoid recursive\n" \
- "mount.type helpers calling. It you really want to call another\n" \
- "mount.type helper from your helper than you have to explicitly enable this\n" \
+ "The function also calls Cxt.disable_helpers() to avoid calling\n" \
+ "mount.type helpers recursively. If you really want to call another\n" \
+ "mount.type helper from your helper then you have to explicitly enable this\n" \
"feature by:\n" \
"\n" \
"Cxt.disable_helpers(False);\n" \
diff --git a/libmount/python/fs.c b/libmount/python/fs.c
index 0789d3797..ca1ce2ada 100644
--- a/libmount/python/fs.c
+++ b/libmount/python/fs.c
@@ -609,7 +609,7 @@ static PyMethodDef Fs_methods[] = {
static void Fs_destructor(FsObject *self)
{
- DBG(FS, pymnt_debug_h(self->fs, "destrutor py-obj: %p, py-refcnt=%d",
+ DBG(FS, pymnt_debug_h(self->fs, "destructor py-obj: %p, py-refcnt=%d",
self, (int) ((PyObject *) self)->ob_refcnt));
mnt_unref_fs(self->fs);
PyFree(self);
@@ -748,7 +748,7 @@ PyObject *PyObjectResultFs(struct libmnt_fs *fs)
return (PyObject *) result;
}
- /* Creating an encapsualing object: increment the refcount, so that code
+ /* Creating an encapsulating object: increment the refcount, so that code
* such as tab.next_fs() doesn't call the destructor, which would free
* our fs struct as well
*/
diff --git a/libmount/python/pylibmount.c b/libmount/python/pylibmount.c
index 54d7dfa70..61dace7d4 100644
--- a/libmount/python/pylibmount.c
+++ b/libmount/python/pylibmount.c
@@ -130,7 +130,7 @@ char *pystos(PyObject *pys)
"Please note that none of the classes' attributes may be deleted.\n" \
"This is not a complete mapping to the libmount C API, nor is it\n" \
"attempting to be one.\n" "Iterator functions only allow forward\n" \
- "iteration for now. Contex.get_{user_,}mflags() differs from the C API\n" \
+ "iteration for now. Context.get_{user_,}mflags() differs from the C API\n" \
"and returns the flags directly. Fs.get_tag() differs from the C API\n" \
"and returns a (tag, value) tuple. Every attribute is \"filtered\"" \
"through appropriate getters/setters, no values are set directly."
diff --git a/libmount/python/tab.c b/libmount/python/tab.c
index 6f255aef7..a77c5cb0c 100644
--- a/libmount/python/tab.c
+++ b/libmount/python/tab.c
@@ -546,7 +546,7 @@ void Table_unref(struct libmnt_table *tab)
static void Table_destructor(TableObject *self)
{
- DBG(TAB, pymnt_debug_h(self->tab, "destrutor py-obj: %p, py-refcnt=%d",
+ DBG(TAB, pymnt_debug_h(self->tab, "destructor py-obj: %p, py-refcnt=%d",
self, (int) ((PyObject *) self)->ob_refcnt));
Table_unref(self->tab);
self->tab = NULL;
@@ -686,7 +686,7 @@ PyObject *PyObjectResultTab(struct libmnt_table *tab)
return (PyObject *) result;
}
- /* Creating an encapsualing object: increment the refcount, so that
+ /* Creating an encapsulating object: increment the refcount, so that
* code such as: cxt.get_fstab() doesn't call the destructor, which
* would free our tab struct as well
*/