#define OBD_DEV_PATH "/dev/obd"
int ptl_name2nal(char *str);
+int ptl_parse_ipaddr (__u32 *ipaddrp, char *str);
int ptl_parse_nid (ptl_nid_t *nidp, char *str);
char * ptl_nid2str (char *buffer, ptl_nid_t nid);
#define OBD_DEV_PATH "/dev/obd"
int ptl_name2nal(char *str);
+int ptl_parse_ipaddr (__u32 *ipaddrp, char *str);
int ptl_parse_nid (ptl_nid_t *nidp, char *str);
char * ptl_nid2str (char *buffer, ptl_nid_t nid);
obd_str2uuid (&tgtuuid, str);
target = class_uuid2obd(&tgtuuid);
+ if (!target) {
+ target = class_name2obd(str);
+ }
+
if (!target || target->obd_stopping || !target->obd_set_up) {
CERROR("UUID '%s' is not available for connect\n", str);
GOTO(out, rc = -ENODEV);
/* llite/llite_lib.c */
extern struct super_operations ll_super_operations;
+extern struct super_operations lustre_super_operations;
char *ll_read_opt(const char *opt, char *data);
int ll_set_opt(const char *opt, char *data, int fl);
-void ll_options(char *options, char **ost, char **mds, char **zconf,
- char **mds_uuid, char **mds_peer, int *flags);
+void ll_options(char *options, char **ost, char **mds, int *flags);
void ll_lli_init(struct ll_inode_info *lli);
int ll_fill_super(struct super_block *sb, void *data, int silent);
+int lustre_fill_super(struct super_block *sb, void *data, int silent);
+void lustre_put_super(struct super_block *sb);
void ll_put_super(struct super_block *sb);
struct inode *ll_inode_from_lock(struct ldlm_lock *lock);
void ll_clear_inode(struct inode *inode);
#define OBD_DEV_PATH "/dev/obd"
int ptl_name2nal(char *str);
+int ptl_parse_ipaddr (__u32 *ipaddrp, char *str);
int ptl_parse_nid (ptl_nid_t *nidp, char *str);
char * ptl_nid2str (char *buffer, ptl_nid_t nid);
fail mds
fi
- $LCONF --cleanup --zeroconf --mds_uuid mds1_UUID --mds_nid $mds_HOST \
- --local_nid $client_HOST --profile client_facet --mount $MOUNT
+ umount $MOUNT || :
+ rmmod llite || :
+# $LCONF --cleanup --zeroconf --mds_uuid mds1_UUID --mds_nid $mds_HOST \
+# --local_nid $client_HOST --profile client_facet --mount $MOUNT
stop mds ${FORCE} $MDSLCONFARGS
stop ost ${FORCE} --dump cleanup.log
}
start mds $MDSLCONFARGS --reformat
# 0-conf client
-$LCONF --zeroconf --mds_uuid mds1_UUID --mds_nid `h2$NETTYPE $mds_HOST` \
- --local_nid `h2$NETTYPE $client_HOST` --profile client_facet --mount $MOUNT
+[ -d $MOUNT ] || mkdir /mnt/lustre
+insmod ../llite/llite.o || :
+../utils/lctl modules > /r/tmp/ogdb-`hostname`
+cp ../utils/llmount /sbin/mount.lustre
+mount -t lustre $mds_HOST:/mds1/client_facet $MOUNT
+
+#$LCONF --zeroconf --mds_uuid mds1_UUID --mds_nid `h2$NETTYPE $mds_HOST` \
+# --local_nid `h2$NETTYPE $client_HOST` --profile client_facet --mount $MOUNT
echo $TIMEOUT > /proc/sys/lustre/timeout
echo $UPCALL > /proc/sys/lustre/upcall