diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-12-19 12:58:56 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:14 -0400 |
commit | 0b847a19d96b66baeb651317d5e22f8bd4368975 (patch) | |
tree | 68885fd23dc80beff780df147c9528a8f5d313f5 /fs/bcachefs/util.h | |
parent | 2fab25cdd70be6868936639dfb03eaa9fa0245c0 (diff) |
bcachefs: Lots of option handling improvements
Add helptext to option definitions - so we can unify the option
handling with the format command
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/util.h')
-rw-r--r-- | fs/bcachefs/util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h index 47afd3955c7a..7d1e6cc6afda 100644 --- a/fs/bcachefs/util.h +++ b/fs/bcachefs/util.h @@ -265,6 +265,7 @@ int bch2_strtoint_h(const char *, int *); int bch2_strtouint_h(const char *, unsigned int *); int bch2_strtoll_h(const char *, long long *); int bch2_strtoull_h(const char *, unsigned long long *); +int bch2_strtou64_h(const char *, u64 *); static inline int bch2_strtol_h(const char *cp, long *res) { @@ -333,7 +334,7 @@ static inline int bch2_strtoul_h(const char *cp, long *res) : type_is(var, char *) ? "%s\n" \ : "%i\n", var) -ssize_t bch2_hprint(char *buf, s64 v); +void bch2_hprint(struct printbuf *, s64); bool bch2_is_zero(const void *, size_t); |