Files
scoutfs/kmod/src/options.h
Mark Fasheh e711c15acf scoutfs: use dlm for locking
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>
2017-06-23 15:08:02 -05:00

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_ */