mirror of
https://github.com/versity/scoutfs.git
synced 2026-04-20 13:30:29 +00:00
The quorum code was using the copy of the super block in the sb info for its config. With that going away we make different users more carefully reference the config. The quorum agent has a copy that it reads on setup, the client rarely reads a copy when trying to connect, and the server uses its super. This is about data access isolation and should have no functional effect other than to cause more super reads. Signed-off-by: Zach Brown <zab@versity.com>
18 lines
576 B
C
18 lines
576 B
C
#ifndef _SCOUTFS_QUORUM_H_
|
|
#define _SCOUTFS_QUORUM_H_
|
|
|
|
int scoutfs_quorum_server_sin(struct super_block *sb, struct sockaddr_in *sin);
|
|
|
|
u8 scoutfs_quorum_votes_needed(struct super_block *sb);
|
|
void scoutfs_quorum_slot_sin(struct scoutfs_quorum_config *qconf, int i,
|
|
struct sockaddr_in *sin);
|
|
|
|
int scoutfs_quorum_fence_leaders(struct super_block *sb, struct scoutfs_quorum_config *qconf,
|
|
u64 term);
|
|
|
|
int scoutfs_quorum_setup(struct super_block *sb);
|
|
void scoutfs_quorum_shutdown(struct super_block *sb);
|
|
void scoutfs_quorum_destroy(struct super_block *sb);
|
|
|
|
#endif
|