summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav Halchenko <debian@onerussian.com>2023-03-29 14:47:13 -0400
committerGitHub <noreply@github.com>2023-03-29 19:47:13 +0100
commit0f8cb2888311868be83c208fef26d2139af41712 (patch)
tree9327f7ae13fc2c6907e8eb21051e94bf0ebeab21
parented9be128370c93b93895bb1bb61cc1e606277613 (diff)
downloadfuse-0f8cb2888311868be83c208fef26d2139af41712.tar.gz
Fix typos and configure spellcheck for PRs
-rw-r--r--.codespellrc11
-rw-r--r--.github/ISSUE_TEMPLATE/issue-report.md2
-rw-r--r--.github/workflows/codespell.yml19
-rw-r--r--ChangeLog.rst2
-rw-r--r--example/passthrough_hp.cc2
-rw-r--r--example/poll.c2
-rw-r--r--include/fuse_lowlevel.h4
-rw-r--r--meson.build2
-rw-r--r--util/fusermount.c2
9 files changed, 38 insertions, 8 deletions
diff --git a/.codespellrc b/.codespellrc
new file mode 100644
index 0000000..6bf9ccc
--- /dev/null
+++ b/.codespellrc
@@ -0,0 +1,11 @@
+[codespell]
+skip = .git,*.pdf,*.svg,AUTHORS
+
+# The following strings shouldn't actually be accepted, but they're wrongly
+# identified as words and there is currently no way to exclude them on
+# a by-line basis (https://github.com/codespell-project/codespell/pull/2400).
+# Therefore, pretend that they are correctly spelled words:
+# - alse: used in regex
+# - siz: wanted short
+# - fiter: variable
+ignore-words-list = alse,siz,fiter
diff --git a/.github/ISSUE_TEMPLATE/issue-report.md b/.github/ISSUE_TEMPLATE/issue-report.md
index 277537e..492ce0a 100644
--- a/.github/ISSUE_TEMPLATE/issue-report.md
+++ b/.github/ISSUE_TEMPLATE/issue-report.md
@@ -11,6 +11,6 @@ PLEASE READ BEFORE REPORTING AN ISSUE
libfuse does not have any active, regular contributors or developers. The current maintainer continues to apply pull requests and tries to make regular releases, but unfortunately has no capacity to do any development beyond addressing high-impact issues. When reporting bugs, please understand that unless you are including a pull request or are reporting a critical issue, you will probably not get a response.
-To prevent the issue tracker from being flooded with issues that no-one is intending to work on, and to give more visibilty to critical issues that users should be aware of and that most urgently need attention, I will also close most bug reports once they've been inactive for a while.
+To prevent the issue tracker from being flooded with issues that no-one is intending to work on, and to give more visibility to critical issues that users should be aware of and that most urgently need attention, I will also close most bug reports once they've been inactive for a while.
Please note that this isn't meant to imply that you haven't found a bug - you most likely have and I'm grateful that you took the time to report it. Unfortunately, libfuse is a purely volunteer driven project, and at the moment there simply aren't any volunteers.
diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml
new file mode 100644
index 0000000..5768d7c
--- /dev/null
+++ b/.github/workflows/codespell.yml
@@ -0,0 +1,19 @@
+---
+name: Codespell
+
+on:
+ push:
+ branches: [master]
+ pull_request:
+ branches: [master]
+
+jobs:
+ codespell:
+ name: Check for spelling errors
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Codespell
+ uses: codespell-project/actions-codespell@v1
diff --git a/ChangeLog.rst b/ChangeLog.rst
index 3e46c7a..0b85567 100644
--- a/ChangeLog.rst
+++ b/ChangeLog.rst
@@ -57,7 +57,7 @@ The following changes apply when using the most recent API (-DFUSE_USE_VERSION=3
see `example/passthrough_hp.cc` for an example for how to usse the new API):
* `struct fuse_loop_config` is now private and has to be constructed using
- *fuse_loop_cfg_create()* and detroyed with *fuse_loop_cfg_destroy()*. Parameters can be
+ *fuse_loop_cfg_create()* and destroyed with *fuse_loop_cfg_destroy()*. Parameters can be
changed using `fuse_loop_cfg_set_*()` functions.
* *fuse_session_loop_mt()* now accepts `struct fuse_loop_config *` as NULL pointer.
diff --git a/example/passthrough_hp.cc b/example/passthrough_hp.cc
index 26fa42e..a0480e5 100644
--- a/example/passthrough_hp.cc
+++ b/example/passthrough_hp.cc
@@ -201,7 +201,7 @@ static void sfs_init(void *userdata, fuse_conn_info *conn) {
// FUSE_CAP_SPLICE_READ is enabled in libfuse3 by default,
// see do_init() in in fuse_lowlevel.c
// Just unset both, in case FUSE_CAP_SPLICE_WRITE would also get enabled
- // by detault.
+ // by default.
conn->want &= ~FUSE_CAP_SPLICE_READ;
conn->want &= ~FUSE_CAP_SPLICE_WRITE;
} else {
diff --git a/example/poll.c b/example/poll.c
index e231b96..f9430a9 100644
--- a/example/poll.c
+++ b/example/poll.c
@@ -44,7 +44,7 @@ static unsigned fsel_open_mask;
static const char fsel_hex_map[] = "0123456789ABCDEF";
static struct fuse *fsel_fuse; /* needed for poll notification */
-#define FSEL_CNT_MAX 10 /* each file can store upto 10 chars */
+#define FSEL_CNT_MAX 10 /* each file can store up to 10 chars */
#define FSEL_FILES 16
static pthread_mutex_t fsel_mutex; /* protects notify_mask and cnt array */
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h
index 31eb452..6500e29 100644
--- a/include/fuse_lowlevel.h
+++ b/include/fuse_lowlevel.h
@@ -1680,7 +1680,7 @@ int fuse_lowlevel_notify_inval_inode(struct fuse_session *se, fuse_ino_t ino,
* parent/name
*
* To avoid a deadlock this function must not be called in the
- * execution path of a related filesytem operation or within any code
+ * execution path of a related filesystem operation or within any code
* that could hold a lock that could be needed to execute such an
* operation. As of kernel 4.18, a "related operation" is a lookup(),
* symlink(), mknod(), mkdir(), unlink(), rename(), link() or create()
@@ -1744,7 +1744,7 @@ int fuse_lowlevel_notify_expire_entry(struct fuse_session *se, fuse_ino_t parent
* that the dentry has been deleted.
*
* To avoid a deadlock this function must not be called while
- * executing a related filesytem operation or while holding a lock
+ * executing a related filesystem operation or while holding a lock
* that could be needed to execute such an operation (see the
* description of fuse_lowlevel_notify_inval_entry() for more
* details).
diff --git a/meson.build b/meson.build
index ac4dfb9..0b3bd68 100644
--- a/meson.build
+++ b/meson.build
@@ -114,7 +114,7 @@ if not cc.compiles(code, args: [ '-O0' ])
versioned_symbols = 0
endif
-# The detection can be overriden, which is useful for other (above unhandled)
+# The detection can be overridden, which is useful for other (above unhandled)
# libcs and also especially useful for testing
if get_option('disable-libc-symbol-version')
versioned_symbols = 0
diff --git a/util/fusermount.c b/util/fusermount.c
index c59da75..f8124cb 100644
--- a/util/fusermount.c
+++ b/util/fusermount.c
@@ -999,7 +999,7 @@ static int check_perm(const char **mntp, struct stat *stbuf, int *mountpoint_fd)
* originally the same list as used by the ecryptfs mount helper
* (https://bazaar.launchpad.net/~ecryptfs/ecryptfs/trunk/view/head:/src/utils/mount.ecryptfs_private.c#L225)
* but got expanded as we found more filesystems that needed to be
- * overlayed. */
+ * overlaid. */
typeof(fs_buf.f_type) f_type_whitelist[] = {
0x61756673 /* AUFS_SUPER_MAGIC */,
0x00000187 /* AUTOFS_SUPER_MAGIC */,