X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fmgs%2Fmgs_internal.h;h=35534d0a7a725b981091a23b3ee61a9fd5a1de17;hb=a0c7416698ee052f50c1bef50193e47bc80930d9;hp=314610e9d0d7d2c6f11cecd1fdd055a70be197e2;hpb=0a859380c36ac24871f221b35042f76c56b04438;p=fs%2Flustre-release.git diff --git a/lustre/mgs/mgs_internal.h b/lustre/mgs/mgs_internal.h index 314610e..35534d0 100644 --- a/lustre/mgs/mgs_internal.h +++ b/lustre/mgs/mgs_internal.h @@ -26,7 +26,7 @@ * GPL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved + * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. */ /* @@ -61,8 +61,13 @@ struct mgs_tgt_srpc_conf { }; #define INDEX_MAP_SIZE 8192 /* covers indicies to FFFF */ -#define FSDB_LOG_EMPTY 0x0001 /* missing client log */ -#define FSDB_OLDLOG14 0x0002 /* log starts in old (1.4) style */ + +#define FSDB_LOG_EMPTY (0) /* missing client log */ +#define FSDB_OLDLOG14 (1) /* log starts in old (1.4) style */ +#define FSDB_REVOKING_LOCK (2) /* DLM lock is being revoked */ +#define FSDB_MGS_SELF (3) /* for '_mgs', used by sptlrpc */ +#define FSDB_OSCNAME18 (4) /* old 1.8 style OSC naming */ +#define FSDB_UDESC (5) /* sptlrpc user desc, will be obsolete */ struct fs_db { @@ -79,17 +84,12 @@ struct fs_db { char *fsdb_mdtlmv; char *fsdb_mdc; /* COMPAT_146 mdc name */ /* end COMPAT_146 */ - __u32 fsdb_flags; + unsigned long fsdb_flags; __u32 fsdb_gen; - __u8 fsdb_revoking_lock; /* lock is being revoked */ - /* in-memory copy of the srpc rules, guarded by fsdb_sem */ struct sptlrpc_rule_set fsdb_srpc_gen; struct mgs_tgt_srpc_conf *fsdb_srpc_tgt; - unsigned int fsdb_fl_udesc:1, - fsdb_fl_mgsself:1, - fsdb_fl_oscname_18:1; }; int mgs_init_fsdb_list(struct obd_device *obd); @@ -114,8 +114,8 @@ int mgs_pool_cmd(struct obd_device *obd, enum lcfg_command_type cmd, void mgs_revoke_lock(struct obd_device *obd, struct fs_db *fsdb); /* mgs_fs.c */ -int mgs_client_add(struct obd_device *obd, struct obd_export *exp, - void *localdata); +int mgs_export_stats_init(struct obd_device *obd, struct obd_export *exp, + int reconnect, void *localdata); int mgs_client_free(struct obd_export *exp); int mgs_fs_setup(struct obd_device *obd, struct vfsmount *mnt); int mgs_fs_cleanup(struct obd_device *obddev);