* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2011, 2013, Intel Corporation.
+ * Copyright (c) 2011, 2014, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
#define QMT_DIR "quota_master"
#define QSD_DIR "quota_slave"
#define HSM_ACTIONS "hsm_actions"
+#define LFSCK_DIR "LFSCK"
+#define LFSCK_BOOKMARK "lfsck_bookmark"
+#define LFSCK_LAYOUT "lfsck_layout"
+#define LFSCK_NAMESPACE "lfsck_namespace"
/****************** persistent mount data *********************/
/* The lmd is only used internally by Lustre; mount simply passes
everything as string options */
-#define LMD_MAGIC 0xbdacbd03
+#define LMD_MAGIC 0xbdacbd03
+#define LMD_PARAMS_MAXLEN 4096
/* gleaned from the mount command - no persistent info here */
struct lustre_mount_data {
#define OBD_COMPAT_20 0x00000008
/** MDS handles LOV_OBJID file */
-#define OBD_ROCOMPAT_LOVOBJID 0x00000001
+#define OBD_ROCOMPAT_LOVOBJID 0x00000001
+/** store OST index in the IDIF */
+#define OBD_ROCOMPAT_IDX_IN_IDIF 0x00000002
/** OST handles group subdirs */
#define OBD_INCOMPAT_GROUPS 0x00000001
static inline void check_lcd(char *obd_name, int index,
struct lsd_client_data *lcd)
{
- int length = sizeof(lcd->lcd_uuid);
+ size_t length = sizeof(lcd->lcd_uuid);
if (strnlen((char*)lcd->lcd_uuid, length) == length) {
lcd->lcd_uuid[length - 1] = '\0';
/****************** mount lookup info *********************/
struct lustre_mount_info {
- char *lmi_name;
- struct super_block *lmi_sb;
- cfs_list_t lmi_list_chain;
+ char *lmi_name;
+ struct super_block *lmi_sb;
+ struct list_head lmi_list_chain;
};
/****************** prototypes *********************/
/* obd_mount_server.c */
int server_fill_super(struct super_block *sb);
struct lustre_mount_info *server_get_mount(const char *name);
-struct lustre_mount_info *server_get_mount_2(const char *name);
-int server_put_mount(const char *name);
-int server_put_mount_2(const char *name, struct vfsmount *mnt);
+int server_put_mount(const char *name, bool dereg_mnt);
struct mgs_target_info;
int server_mti_print(const char *title, struct mgs_target_info *mti);
void server_calc_timeout(struct lustre_sb_info *lsi, struct obd_device *obd);