mirror of
https://github.com/versity/scoutfs.git
synced 2026-07-30 20:13:17 +00:00
Add a tunable option to force using tiny btree blocks on an active mount. This lets us quickly exercise large btrees. Signed-off-by: Zach Brown <zab@versity.com>
34 lines
814 B
C
34 lines
814 B
C
#ifndef _SCOUTFS_OPTIONS_H_
|
|
#define _SCOUTFS_OPTIONS_H_
|
|
|
|
#include <linux/fs.h>
|
|
#include "format.h"
|
|
|
|
enum {
|
|
Opt_listen = 0,
|
|
Opt_cluster,
|
|
/*
|
|
* For debugging we can quickly create huge trees by limiting
|
|
* the number of items in each block as though the blocks were tiny.
|
|
*/
|
|
Opt_btree_force_tiny_blocks,
|
|
Opt_err,
|
|
};
|
|
|
|
#define MAX_CLUSTER_NAME_LEN 17
|
|
struct mount_options
|
|
{
|
|
struct scoutfs_inet_addr listen_addr;
|
|
char cluster_name[MAX_CLUSTER_NAME_LEN];
|
|
};
|
|
|
|
int scoutfs_parse_options(struct super_block *sb, char *options,
|
|
struct mount_options *parsed);
|
|
int scoutfs_options_setup(struct super_block *sb);
|
|
void scoutfs_options_destroy(struct super_block *sb);
|
|
|
|
u32 scoutfs_option_u32(struct super_block *sb, int token);
|
|
#define scoutfs_option_bool scoutfs_option_u32
|
|
|
|
#endif /* _SCOUTFS_OPTIONS_H_ */
|