mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-11 13:01:07 +00:00
Make mount options for the size of preallocation and whether or not it should be restricted to extending writes. Disabling the default restriction to streaming writes lets it preallocate in aligned regions of the preallocation size when they contain no extents. Signed-off-by: Zach Brown <zab@versity.com>
26 lines
715 B
C
26 lines
715 B
C
#ifndef _SCOUTFS_OPTIONS_H_
|
|
#define _SCOUTFS_OPTIONS_H_
|
|
|
|
#include <linux/fs.h>
|
|
#include <linux/in.h>
|
|
#include "format.h"
|
|
|
|
struct scoutfs_mount_options {
|
|
u64 data_prealloc_blocks;
|
|
bool data_prealloc_contig_only;
|
|
char *metadev_path;
|
|
unsigned int orphan_scan_delay_ms;
|
|
int quorum_slot_nr;
|
|
|
|
};
|
|
|
|
void scoutfs_options_read(struct super_block *sb, struct scoutfs_mount_options *opts);
|
|
int scoutfs_options_show(struct seq_file *seq, struct dentry *root);
|
|
|
|
int scoutfs_options_early_setup(struct super_block *sb, char *options);
|
|
int scoutfs_options_setup(struct super_block *sb);
|
|
void scoutfs_options_stop(struct super_block *sb);
|
|
void scoutfs_options_destroy(struct super_block *sb);
|
|
|
|
#endif /* _SCOUTFS_OPTIONS_H_ */
|