From 7e54db178afde65edea15787f47ee94d2a88f416 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 29 Aug 2019 23:45:45 -0400 Subject: mtab: Rename maybe_mount to might_be_mount --- bftw.c | 2 +- mtab.c | 2 +- mtab.h | 2 +- 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. -- cgit v1.2.3