summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-08-29 23:45:45 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-08-29 23:45:45 -0400
commit7e54db178afde65edea15787f47ee94d2a88f416 (patch)
treedf7e18b5fc8d5872cc269c48bd9c551a617e2dd4
parent41ac289ca572cf0ed5ecfcc1c73ae59eef461a9e (diff)
downloadbfs-7e54db178afde65edea15787f47ee94d2a88f416.tar.xz
mtab: Rename maybe_mount to might_be_mount
-rw-r--r--bftw.c2
-rw-r--r--mtab.c2
-rw-r--r--mtab.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/bftw.c b/bftw.c
index 370ab12..2347b00 100644
--- a/bftw.c
+++ b/bftw.c
@@ -911,7 +911,7 @@ static bool bftw_need_stat(const struct bftw_state *state) {
// need to stat() to get the correct type. We don't need to
// check for directories because they can only be mounted over
// by other directories.
- if (bfs_maybe_mount(state->mtab, ftwbuf->path)) {
+ if (bfs_might_be_mount(state->mtab, ftwbuf->path)) {
return true;
}
#endif
diff --git a/mtab.c b/mtab.c
index 57ea402..fd2d71e 100644
--- a/mtab.c
+++ b/mtab.c
@@ -219,7 +219,7 @@ const char *bfs_fstype(const struct bfs_mtab *mtab, const struct bfs_stat *statb
}
}
-bool bfs_maybe_mount(const struct bfs_mtab *mtab, const char *path) {
+bool bfs_might_be_mount(const struct bfs_mtab *mtab, const char *path) {
const char *name = xbasename(path);
return trie_find_str(&mtab->names, name);
}
diff --git a/mtab.h b/mtab.h
index a12fbaa..57fe11d 100644
--- a/mtab.h
+++ b/mtab.h
@@ -60,7 +60,7 @@ const char *bfs_fstype(const struct bfs_mtab *mtab, const struct bfs_stat *statb
* @return
* Whether the named file could be a mount point.
*/
-bool bfs_maybe_mount(const struct bfs_mtab *mtab, const char *path);
+bool bfs_might_be_mount(const struct bfs_mtab *mtab, const char *path);
/**
* Free a mount table.