mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-11 04:51:08 +00:00
To actually use it, we first have to copy symbols over from the dlm build into the scoutfs source directory. Make that happen automatically for us in the Makefile. The only users of locking at the moment are mount, unmount and xattr read/write. Adding more locking calls should be a straight-forward endeavor. The LVB based server ip communication didn't work out, and LVBS as they are written don't make sense in a range locking world. So instead, we record the server ip address in the superblock. This is protected by the listen lock, which also arbitrates which node will be the manifest server. We take and drop the dlm lock on each lock/unlock call. Lock caching will come in a future patch. Signed-off-by: Mark Fasheh <mfasheh@versity.com>
18 lines
378 B
C
18 lines
378 B
C
#ifndef _SCOUTFS_OPTIONS_H_
|
|
#define _SCOUTFS_OPTIONS_H_
|
|
|
|
#include <linux/fs.h>
|
|
#include "format.h"
|
|
|
|
#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);
|
|
|
|
#endif /* _SCOUTFS_OPTIONS_H_ */
|