diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-08-29 23:45:45 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-08-29 23:45:45 -0400 |
commit | 7e54db178afde65edea15787f47ee94d2a88f416 (patch) | |
tree | df7e18b5fc8d5872cc269c48bd9c551a617e2dd4 | |
parent | 41ac289ca572cf0ed5ecfcc1c73ae59eef461a9e (diff) | |
download | bfs-7e54db178afde65edea15787f47ee94d2a88f416.tar.xz |
mtab: Rename maybe_mount to might_be_mount
-rw-r--r-- | bftw.c | 2 | ||||
-rw-r--r-- | mtab.c | 2 | ||||
-rw-r--r-- | mtab.h | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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 @@ -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); } @@ -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. |